public function it_strips_the_command_from_the_webhook_text(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('command')->willReturn('foo:'); $command->offsetGet('text')->willReturn('foo: bar'); $this->execute($command)['text']->shouldReturn('<@U12345|crumm> bar'); }