]> BookStack Code Mirror - bookstack/blobdiff - tests/Entity/CommentTest.php
Update settings.php
[bookstack] / tests / Entity / CommentTest.php
index 04716c1c29d389cae945b493d0397d49a513dd96..a2126407b43d121b10f6c55cad07eda7d0455b25 100644 (file)
@@ -1,7 +1,8 @@
-<?php namespace Tests;
+<?php namespace Tests\Entity;
 
-use BookStack\Page;
-use BookStack\Comment;
+use BookStack\Entities\Page;
+use BookStack\Actions\Comment;
+use Tests\TestCase;
 
 class CommentTest extends TestCase
 {
@@ -23,7 +24,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
         ]);