Level 80
@gianmarx It’s covered in the docs: https://laravel.com/docs/8.x/console-tests
how can i test a command i have created with a feature test?
i created this command: pruneTask
protected $signature = 'prune:task {x} {y} ';
public function handle()
{
$x = $this->argument('x');
$y = $this->argument('y');
Task::where('instance',$x)->where('job',$y)->delete();
}
the command does what it has to do I was wondering how to test it with feature Test?
like how could I make the mock?
Please or to participate in this conversation.