Added editBotInfo & editChat & getVideoAttachmentDetails

This commit is contained in:
Alex
2025-08-01 08:42:39 +03:00
parent 8fa63fa10b
commit f5acd0ee88
15 changed files with 627 additions and 66 deletions
+29
View File
@@ -0,0 +1,29 @@
<?php
declare(strict_types=1);
namespace BushlanovDev\MaxMessengerBot\Tests\Models;
use BushlanovDev\MaxMessengerBot\Models\VideoUrls;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\Test;
use PHPUnit\Framework\TestCase;
#[CoversClass(VideoUrls::class)]
final class VideoUrlsTest extends TestCase
{
#[Test]
public function canBeCreatedWithAllFields(): void
{
$data = [
'mp4_720' => 'http://example.com/video_720p.mp4',
'mp4_480' => 'http://example.com/video_480p.mp4',
];
$urls = VideoUrls::fromArray($data);
$this->assertInstanceOf(VideoUrls::class, $urls);
$this->assertSame('http://example.com/video_720p.mp4', $urls->mp4_720);
$this->assertNull($urls->mp4_1080);
}
}