spec\Crummy\Phlack\Common\Formatter\SequencerSpec::it_sequences_a_command PHP Метод

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

public it_sequences_a_command ( Crummy\Phlack\WebHook\CommandInterface $command )
$command Crummy\Phlack\WebHook\CommandInterface
    public function it_sequences_a_command(CommandInterface $command)
    {
        $command->offsetGet('user_id')->willReturn('U8686');
        $command->offsetGet('user_name')->willReturn('agent');
        $command->offsetGet('channel_id')->willReturn('C0001');
        $command->offsetGet('channel_name')->willReturn('cone');
        $this->command($command)->shouldReturn(['channel' => '<#C0001|cone>', 'user' => '<@U8686|agent>']);
    }