spec\MGDigital\BusQue\Handler\ScheduledCommandHandlerSpec::it_can_schedule_a_command PHP Method

it_can_schedule_a_command() public method

    public function it_can_schedule_a_command()
    {
        $dateTime = new \DateTimeImmutable();
        $scheduledCommand = new ScheduledCommand('test_command', $dateTime);
        $this->schedulerDriver->scheduleCommand('test_queue', 'test_generated_id', 'serialized', $dateTime)->shouldBeCalled();
        $this->handleScheduledCommand($scheduledCommand);
    }