Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
abbasudo committed Oct 19, 2023
1 parent 74e1794 commit 5102df4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Feature/TelegramMessageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,21 +139,21 @@
expect($message->getPayloadValue('disable_web_page_preview'))->toBeTrue();
});

test('an normal keyboard button can be added to the message', function () {
test('a normal keyboard button can be added to the message', function () {
$message = TelegramMessage::create()->keyboard('Laravel');
expect($message->getPayloadValue('reply_markup'))->toEqual(
'{"keyboard":[[{"text":"Laravel","request_contact":false,"request_location":false}]],"one_time_keyboard":true,"resize_keyboard":true}'
);
});

test('an request phone keyboard button can be added to the message', function () {
test('a request phone keyboard button can be added to the message', function () {
$message = TelegramMessage::create()->keyboard('Laravel', request_contact: true);
expect($message->getPayloadValue('reply_markup'))->toEqual(
'{"keyboard":[[{"text":"Laravel","request_contact":true,"request_location":false}]],"one_time_keyboard":true,"resize_keyboard":true}'
);
});

test('an request location keyboard button can be added to the message', function () {
test('a request location keyboard button can be added to the message', function () {
$message = TelegramMessage::create()->keyboard('Laravel', request_location: true);
expect($message->getPayloadValue('reply_markup'))->toEqual(
'{"keyboard":[[{"text":"Laravel","request_contact":false,"request_location":true}]],"one_time_keyboard":true,"resize_keyboard":true}'
Expand Down

0 comments on commit 5102df4

Please sign in to comment.