mirror of
https://github.com/BushlanovDev/max-bot-api-client-php.git
synced 2026-08-17 15:02:41 +00:00
Added MessageButton & ChatAdminPermission::EditLink & alias in ChatAdmin & participants in Chat & first_name in BotPatch
This commit is contained in:
@@ -58,4 +58,11 @@ final class BotPatchTest extends TestCase
|
||||
$patch = new BotPatch();
|
||||
$this->assertEmpty($patch->toArray());
|
||||
}
|
||||
|
||||
#[Test]
|
||||
public function toArrayFirstAndLastName(): void
|
||||
{
|
||||
$patch = new BotPatch(first_name: 'New Name', last_name: null);
|
||||
$this->assertEquals(['first_name' => 'New Name', 'last_name' => null], $patch->toArray());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user