mirror of
https://github.com/BushlanovDev/max-bot-api-client-php.git
synced 2026-10-09 05:17:31 +00:00
Added ChatButton & ReplyButtons
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user