Skip to content

Commit db25778

Browse files
author
miroslav
committed
BUG: Fix general test
1 parent b3da0e0 commit db25778

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Unit/AIModels/GeneralTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace Unit\AIModels;
44

55
use Illuminate\Contracts\Container\BindingResolutionException;
6+
use Illuminate\Support\Collection;
67
use Itsimiro\OpenAI\Services\AIModels\General;
78
use Itsimiro\OpenAI\Services\API\ApiService;
89
use Itsimiro\OpenAI\Services\API\Results\ModelResult;
@@ -24,9 +25,8 @@ public function testGetModels(): void
2425

2526
$expectedModel = $this->getMockModel();
2627

27-
$dataCollection = $this->getMockBuilder(DataCollection::class)
28+
$dataCollection = $this->getMockBuilder(Collection::class)
2829
->setConstructorArgs([
29-
'dataClass' => ModelResult::class,
3030
'items' => []
3131
])->getMock();
3232

0 commit comments

Comments
 (0)