]> BookStack Code Mirror - bookstack/blobdiff - tests/Commands/ClearActivityCommandTest.php
Added more complexity in an attempt to make ldap host failover fit
[bookstack] / tests / Commands / ClearActivityCommandTest.php
index 71baa0ca667cb0a913074bd1ca95cf4ccb2b809a..cf2fba0d670e8a5e8a8f6a7ce4515a8bd83590dd 100644 (file)
@@ -3,7 +3,6 @@
 namespace Tests\Commands;
 
 use BookStack\Actions\ActivityType;
-use BookStack\Entities\Models\Page;
 use BookStack\Facades\Activity;
 use Illuminate\Support\Facades\Artisan;
 use Illuminate\Support\Facades\DB;
@@ -14,8 +13,7 @@ class ClearActivityCommandTest extends TestCase
     public function test_clear_activity_command()
     {
         $this->asEditor();
-        /** @var Page $page */
-        $page = Page::query()->first();
+        $page = $this->entities->page();
         Activity::add(ActivityType::PAGE_UPDATE, $page);
 
         $this->assertDatabaseHas('activities', [