class RunSingleScheduledTaskCommandTest extends TestCase
{ public function testRunSingleTask(): void
{ $taskRunner =
$this->
createMock(TaskRunner::
class);
$taskRunner ->
expects(static::
once()) ->
method('runSingleTask'
) ->
with('TestTask.ID'
);
$command =
new RunSingleScheduledTaskCommand($taskRunner);
$tester =
new CommandTester($command);
$tester->
execute(['taskName' => 'TestTask.ID'
]);
$tester->
assertCommandIsSuccessful();
}}