spec\Crummy\Phlack\Bot\RepeaterBotSpec::it_does_the_repeater PHP Метод

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

public it_does_the_repeater ( WebHook $command )
$command Crummy\Phlack\WebHook\WebHook
    public function it_does_the_repeater(WebHook $command)
    {
        $command->offsetGet('channel_id')->willReturn('C98765');
        $command->offsetGet('channel_name')->willReturn('group');
        $command->offsetGet('user_id')->willReturn('U12345');
        $command->offsetGet('user_name')->willReturn('crumm');
        $command->offsetGet('text')->willReturn('Would you mind stepping down from there, with your license and registration?');
        $command->offsetGet('command')->willReturn('would:');
        $this->execute($command)['text']->shouldReturn('<@U12345|crumm> Would you mind stepping down from there, with your license and registration?');
    }