spec\MGDigital\BusQue\BusQueSpec::it_can_read_a_command_from_the_queue PHP Метод

it_can_read_a_command_from_the_queue() публичный Метод

    public function it_can_read_a_command_from_the_queue()
    {
        $this->queueDriver->readCommand('test_queue', 'test_command_id')->willReturn('serialized');
        $this->commandSerializer->unserialize('serialized')->willReturn('test_command');
        $this->queueDriver->readCommand('test_queue', 'test_command_id')->shouldBeCalled();
        $this->commandSerializer->unserialize('serialized')->shouldBeCalled();
        $this->getCommand('test_queue', 'test_command_id')->shouldReturn('test_command');
        $this->getCommand('test_queue', 'test_command_id');
    }