X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/3625f12abe7c0cc052bd027af961d0214d6fcc7e..refs/pull/3593/head:/tests/Actions/WebhookFormatTesting.php diff --git a/tests/Actions/WebhookFormatTesting.php b/tests/Actions/WebhookFormatTesting.php index 56a569ca9..4e9ba5e47 100644 --- a/tests/Actions/WebhookFormatTesting.php +++ b/tests/Actions/WebhookFormatTesting.php @@ -16,9 +16,9 @@ class WebhookFormatTesting extends TestCase public function test_entity_events_show_related_user_info() { $events = [ - ActivityType::BOOK_UPDATE => Book::query()->first(), + ActivityType::BOOK_UPDATE => Book::query()->first(), ActivityType::CHAPTER_CREATE => Chapter::query()->first(), - ActivityType::PAGE_MOVE => Page::query()->first(), + ActivityType::PAGE_MOVE => Page::query()->first(), ]; foreach ($events as $event => $entity) { @@ -47,6 +47,7 @@ class WebhookFormatTesting extends TestCase $webhook = Webhook::factory()->make(); $user = $this->getEditor(); $formatter = WebhookFormatter::getDefault($event, $webhook, $detail, $user, time()); + return $formatter->format(); } -} \ No newline at end of file +}