8000 [Tests] Update delete validation test expected error · CodingSeo/laravel-json-api@52a4848 · GitHub
[go: up one dir, main page]

Skip to content

Commit 52a4848

Browse files
committed
[Tests] Update delete validation test expected error
1 parent 32b781d commit 52a4848

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/lib/Integration/Eloquent/ResourceTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,11 +659,12 @@ public function testCannotDeletePostHasComments()
659659
$post = factory(Comment::class)->states('post')->create()->commentable;
660660

661661
$expected = [
662+
'title' => 'Not Deletable',
662663
'status' => '422',
663664
'detail' => 'Cannot delete a post with comments.',
664665
];
665666

666-
$this->doDelete($post)->assertErrorStatus($expected);
667+
$this->doDelete($post)->assertExactErrorStatus($expected);
667668
}
668669

669670
/**

0 commit comments

Comments
 (0)
0