mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
fix(test): add UtopiaDocument parameter to getDatabasesDB closure signature
Agent-Logs-Url: https://github.com/utopia-php/migration/sessions/d317b600-9533-45b9-b24b-59eb2df45014 Co-authored-by: abnegate <5857008+abnegate@users.noreply.github.com>
This commit is contained in:
1 parent
8a0ebdbed7
commit
2eefb59034
1 file changed
+2
-1
@@ -5,6 +5,7 @@ namespace Utopia\Tests\Unit\Destinations;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use ReflectionClass;
|
||||
use Utopia\Database\Database as UtopiaDatabase;
|
||||
use Utopia\Database\Document as UtopiaDocument;
|
||||
use Utopia\Migration\Destinations\Appwrite as AppwriteDestination;
|
||||
use Utopia\Migration\Destinations\OnDuplicate;
|
||||
use Utopia\Migration\Resources\Database\Database as DatabaseResource;
|
||||
@@ -68,7 +69,7 @@ class AppwriteDestinationDsnTest extends TestCase
|
||||
endpoint: 'http://example.test/v1',
|
||||
key: 'test-key',
|
||||
dbForProject: $this->createStub(UtopiaDatabase::class),
|
||||
getDatabasesDB: fn (): UtopiaDatabase => $this->createStub(UtopiaDatabase::class),
|
||||
getDatabasesDB: fn (UtopiaDocument $database): UtopiaDatabase => $this->createStub(UtopiaDatabase::class),
|
||||
collectionStructure: ['attributes' => [], 'indexes' => []],
|
||||
onDuplicate: OnDuplicate::Fail,
|
||||
getDatabaseDSN: $getDatabaseDSN,
|
||||
|
||||
Reference in new issue
Block a user