]> BookStack Code Mirror - bookstack/blobdiff - tests/Actions/WebhookFormatTesting.php
Updated code view block line highlighting to only show on focus
[bookstack] / tests / Actions / WebhookFormatTesting.php
index 07341c75b2431a8c2d4fe7a33439b652d92ff6ba..be67d4d522f63184d779808a5b532e94609fec13 100644 (file)
@@ -41,7 +41,7 @@ class WebhookFormatTesting extends TestCase
     protected function getWebhookData(string $event, $detail): array
     {
         $webhook = Webhook::factory()->make();
     protected function getWebhookData(string $event, $detail): array
     {
         $webhook = Webhook::factory()->make();
-        $user = $this->getEditor();
+        $user = $this->users->editor();
         $formatter = WebhookFormatter::getDefault($event, $webhook, $detail, $user, time());
 
         return $formatter->format();
         $formatter = WebhookFormatter::getDefault($event, $webhook, $detail, $user, time());
 
         return $formatter->format();