Level 50
Hi @s.spaan
Maybe simply log to file from your artisan command and watch the file from command line?
tail -f your_test_log_file
Hi, i'm looking for a way to test is a artisan command was called from a controller.
I know how to test the command itself, but how to test that the command was executed.
Tested with Laravel 9 and you can do this directly:
Artisan::shouldReceive('call')
->once()
->with(
'command:run-command',
[
'some-parameter' => $this->variable,
]
);
Please or to participate in this conversation.