]> BookStack Code Mirror - bookstack/blobdiff - tests/ThemeTest.php
Make building of search results work for multi-byte encoded characters
[bookstack] / tests / ThemeTest.php
index f04250bff57a2719e2cfa6d51df6b182f9ba8f15..364bf6900517e65a7e727bb80613fb7e0b61d3ad 100644 (file)
@@ -210,7 +210,7 @@ class ThemeTest extends TestCase
 
     public function test_register_command_allows_provided_command_to_be_usable_via_artisan()
     {
-        Theme::registerCommand(new MyCustomCommand);
+        Theme::registerCommand(new MyCustomCommand());
 
         Artisan::call('bookstack:test-custom-command', []);
         $output = Artisan::output();
@@ -233,9 +233,12 @@ class ThemeTest extends TestCase
     }
 }
 
-class MyCustomCommand extends Command {
+class MyCustomCommand extends Command
+{
     protected $signature = 'bookstack:test-custom-command';
-    public function handle() {
+
+    public function handle()
+    {
         $this->line('Command ran!');
     }
-}
\ No newline at end of file
+}