]> BookStack Code Mirror - bookstack/blobdiff - tests/Entity/CommentTest.php
Update Dutch password_hint translation to correspond with validation rule
[bookstack] / tests / Entity / CommentTest.php
index 04716c1c29d389cae945b493d0397d49a513dd96..2b943f96f18c853dfd36f805110f7eb0715b0666 100644 (file)
@@ -1,7 +1,7 @@
 <?php namespace Tests;
 
-use BookStack\Page;
-use BookStack\Comment;
+use BookStack\Entities\Page;
+use BookStack\Actions\Comment;
 
 class CommentTest extends TestCase
 {
@@ -23,7 +23,7 @@ class CommentTest extends TestCase
         $this->assertDatabaseHas('comments', [
             'local_id' => 1,
             'entity_id' => $page->id,
-            'entity_type' => 'BookStack\\Page',
+            'entity_type' => Page::newModelInstance()->getMorphClass(),
             'text' => $comment->text,
             'parent_id' => 2
         ]);