X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/d1a4ff930872fd77dc18fae02870ec057098b36b..refs/pull/2023/head:/tests/Entity/CommentTest.php diff --git a/tests/Entity/CommentTest.php b/tests/Entity/CommentTest.php index 04716c1c2..a2126407b 100644 --- a/tests/Entity/CommentTest.php +++ b/tests/Entity/CommentTest.php @@ -1,7 +1,8 @@ -assertDatabaseHas('comments', [ 'local_id' => 1, 'entity_id' => $page->id, - 'entity_type' => 'BookStack\\Page', + 'entity_type' => Page::newModelInstance()->getMorphClass(), 'text' => $comment->text, 'parent_id' => 2 ]);