]> BookStack Code Mirror - bookstack/blobdiff - tests/ThemeTest.php
Added additional testing for editor switching permissions
[bookstack] / tests / ThemeTest.php
index fe816255997b638d0233c6c175ba642734083e6a..cad2369f8bec50825e626052d52947d3b8b33b05 100644 (file)
@@ -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);