public function testHelpCommandExecuteWithParameterValidCommand() { $text = $this->command->setUpdate(TestHelpers::getFakeUpdateCommandObject('/help echo'))->execute()->getResult()->getText(); $this->assertContains("Description: Show text\nUsage: /echo <text>", $text); }
public function testEchoCommandExecuteWithParameter() { $text = $this->command->setUpdate(TestHelpers::getFakeUpdateCommandObject('/echo Message!'))->execute()->getResult()->getText(); $this->assertEquals('Message!', $text); }