mirror of
https://github.com/BushlanovDev/max-bot-api-client-php.git
synced 2026-08-19 00:53:02 +00:00
Replacing the User object with UserWithPhoto #22
This commit is contained in:
@@ -16,15 +16,15 @@ final class UserWithPhotoTest extends TestCase
|
||||
public function canBeCreatedFromArray(): void
|
||||
{
|
||||
$data = [
|
||||
'description' => 'Description',
|
||||
'avatar_url' => 'https://example.com/avatar.jpg',
|
||||
'full_avatar_url' => 'https://example.com/full_avatar.jpg',
|
||||
'user_id' => 123,
|
||||
'first_name' => 'John',
|
||||
'last_name' => 'Doe',
|
||||
'username' => 'johndoe',
|
||||
'is_bot' => false,
|
||||
'last_activity_time' => 1678886400000,
|
||||
'description' => 'Description',
|
||||
'avatar_url' => 'https://example.com/avatar.jpg',
|
||||
'full_avatar_url' => 'https://example.com/full_avatar.jpg',
|
||||
];
|
||||
|
||||
$user = UserWithPhoto::fromArray($data);
|
||||
|
||||
Reference in New Issue
Block a user