X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/fe54c7f27ad2c2111020b2f28c58d889794ea1c5..refs/pull/3365/head:/tests/ThemeTest.php diff --git a/tests/ThemeTest.php b/tests/ThemeTest.php index fe8162559..cad2369f8 100644 --- a/tests/ThemeTest.php +++ b/tests/ThemeTest.php @@ -170,6 +170,7 @@ class ThemeTest extends TestCase $args = []; $callback = function (...$eventArgs) use (&$args) { $args = $eventArgs; + return ['test' => 'hello!']; }; Theme::listen(ThemeEvents::WEBHOOK_CALL_BEFORE, $callback); @@ -185,7 +186,7 @@ class ThemeTest extends TestCase dispatch((new DispatchWebhookJob($webhook, $event, $detail))); - $this->assertCount(3, $args); + $this->assertCount(5, $args); $this->assertEquals($event, $args[0]); $this->assertEquals($webhook->id, $args[1]->id); $this->assertEquals($detail->id, $args[2]->id);