Longman\TelegramBot\Tests\Unit\Commands\UserCommands\HelpCommandTest::testHelpCommandExecuteWithParameterValidCommand PHP Method

testHelpCommandExecuteWithParameterValidCommand() public method

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