]> BookStack Code Mirror - bookstack/blobdiff - tests/Activity/WatchTest.php
Merge branch 'Man-in-Black-patch-1' into development
[bookstack] / tests / Activity / WatchTest.php
index 42216a37960239c655c7e156e9199236e84f9b8e..2bf74c814d72fa9d7b0578e8debc419465452f46 100644 (file)
@@ -338,7 +338,10 @@ class WatchTest extends TestCase
         $activities = [
             ActivityType::PAGE_CREATE => $entities['page'],
             ActivityType::PAGE_UPDATE => $entities['page'],
-            ActivityType::COMMENT_CREATE => (new Comment([]))->forceFill(['entity_id' => $entities['page']->id, 'entity_type' => $entities['page']->getMorphClass()]),
+            ActivityType::COMMENT_CREATE => Comment::factory()->make([
+                'entity_id' => $entities['page']->id,
+                'entity_type' => $entities['page']->getMorphClass(),
+            ]),
         ];
 
         $notifications = Notification::fake();