Skip to content

Commit 6475b25

Browse files
committed
Fix: Test uses ImagePart instead of FilePart
1 parent a408659 commit 6475b25

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/Unit/Resources/ContentTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use GeminiAPI\Enums\MimeType;
88
use GeminiAPI\Enums\Role;
99
use GeminiAPI\Resources\Content;
10+
use GeminiAPI\Resources\Parts\FilePart;
1011
use GeminiAPI\Resources\Parts\ImagePart;
1112
use GeminiAPI\Resources\Parts\TextPart;
1213
use PHPUnit\Framework\TestCase;
@@ -105,7 +106,7 @@ public function testFromArrayWithParts()
105106
]);
106107
$parts = [
107108
new TextPart('this is a text'),
108-
new ImagePart(MimeType::IMAGE_JPEG, 'this is an image'),
109+
new FilePart(MimeType::IMAGE_JPEG, 'this is an image'),
109110
];
110111
self::assertInstanceOf(Content::class, $content);
111112
self::assertEquals($parts, $content->parts);

0 commit comments

Comments
 (0)