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();
}
}
-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
+}