Longman\TelegramBot\Tests\Unit\Commands\UserCommands\EchoCommandTest::testEchoCommandExecuteWithoutParameter PHP Method

testEchoCommandExecuteWithoutParameter() public method

    public function testEchoCommandExecuteWithoutParameter()
    {
        $text = $this->command->setUpdate(TestHelpers::getFakeUpdateCommandObject('/echo'))->execute()->getResult()->getText();
        $this->assertEquals('Command usage: /echo <text>', $text);
        $text = $this->command->setUpdate(TestHelpers::getFakeUpdateCommandObject('/echo  '))->execute()->getResult()->getText();
        $this->assertEquals('Command usage: /echo <text>', $text);
    }