]> BookStack Code Mirror - bookstack/blobdiff - tests/Actions/WebhookCallTest.php
Added more complexity in an attempt to make ldap host failover fit
[bookstack] / tests / Actions / WebhookCallTest.php
index d9f9ddad591cd61ea26f5953e22f0bf827b003ae..7ca190200eb9286aad40fd34d2ecc2f77ada71cb 100644 (file)
@@ -7,7 +7,6 @@ use BookStack\Actions\ActivityType;
 use BookStack\Actions\DispatchWebhookJob;
 use BookStack\Actions\Webhook;
 use BookStack\Auth\User;
-use BookStack\Entities\Models\Page;
 use Illuminate\Http\Client\Request;
 use Illuminate\Support\Facades\Bus;
 use Illuminate\Support\Facades\Http;
@@ -88,8 +87,7 @@ class WebhookCallTest extends TestCase
             '*' => Http::response('', 200),
         ]);
         $webhook = $this->newWebhook(['active' => true, 'endpoint' => 'https://wh.example.com'], ['all']);
-        /** @var Page $page */
-        $page = Page::query()->first();
+        $page = $this->entities->page();
         $editor = $this->getEditor();
 
         $this->runEvent(ActivityType::PAGE_UPDATE, $page, $editor);