Added ChatButton & ReplyButtons

This commit is contained in:
Alex
2025-08-02 09:24:11 +03:00
parent f5acd0ee88
commit 51b105b847
35 changed files with 625 additions and 92 deletions
@@ -0,0 +1,27 @@
<?php
declare(strict_types=1);
namespace BushlanovDev\MaxMessengerBot\Tests\Models\Attachments\Buttons\Reply;
use BushlanovDev\MaxMessengerBot\Models\Attachments\Buttons\Reply\SendContactButton;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\Test;
use PHPUnit\Framework\TestCase;
#[CoversClass(SendContactButton::class)]
final class SendContactButtonTest extends TestCase
{
#[Test]
public function toArray(): void
{
$button = new SendContactButton('Share My Contact');
$expected = [
'type' => 'user_contact',
'text' => 'Share My Contact',
];
$this->assertEquals($expected, $button->toArray());
}
}