Skip to content

Commit

Permalink
Add Test
Browse files Browse the repository at this point in the history
  • Loading branch information
ahjdev committed Nov 1, 2024
1 parent a042d3c commit 2b571fc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/Buttons/InlineButtonsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,16 @@ public function testCallbackData(): void
$this->assertJsonStringEqualsJsonString(\json_encode($button), \json_encode($rawButton));
}

public function testCopyText(): void
{
$button = InlineButton::CopyText('hello', 'hello-copy');
$rawButton = [
'text' => 'hello',
'copy_text' => ['text' => 'hello-copy'],
];
$this->assertJsonStringEqualsJsonString(\json_encode($button), \json_encode($rawButton));
}

public function testLogin(): void
{
$button1 = InlineButton::Login('please-login', 'https://example.com');
Expand Down

0 comments on commit 2b571fc

Please sign in to comment.