spec\MGDigital\BusQue\Handler\ScheduledCommandHandlerSpec::it_can_schedule_a_command PHP 메소드

it_can_schedule_a_command() 공개 메소드

    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);
    }