I prefer to use "almost TDD" in my daily workflow. And a few days ago I've faced this issue.
Imagine a command with such signature.
protected $signature = 'sync:store {--storeId= : Sync stores}';
In my test-suite I've added
$this->artisan('sync:store', [
'--storeId' => [1],
]);
Everything is ok, BUT the next day command was NOT working. I've overlooked the *
in my signature. That's why the test was green, but the option was not working.
Is there a way to verify, that exactly the array notation works as needed? Cause this is a real-life issue I have faced.