Replacing the User object with UserWithPhoto #22

This commit is contained in:
Alex
2025-12-19 13:30:36 +03:00
parent 3c6da8e8f6
commit 67463a6b64
44 changed files with 168 additions and 134 deletions
+3 -3
View File
@@ -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);