Longman\TelegramBot\Tests\Unit\InlineKeyboardTest::testInlineKeyboardMultipleButtonsMultipleRows PHP 메소드

testInlineKeyboardMultipleButtonsMultipleRows() 공개 메소드

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