Longman\TelegramBot\Tests\Unit\InlineKeyboardTest::testInlineKeyboardMultipleButtonsSingleRow PHP Method

testInlineKeyboardMultipleButtonsSingleRow() public method

    public function testInlineKeyboardMultipleButtonsSingleRow()
    {
        $keyboard = (new InlineKeyboard([$this->getRandomButton('Button Text 1'), $this->getRandomButton('Button Text 2')]))->getProperty('inline_keyboard');
        self::assertSame('Button Text 1', $keyboard[0][0]->getText());
        self::assertSame('Button Text 2', $keyboard[0][1]->getText());
    }