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:
copilot-swe-agent[bot]andabnegate authored and GitHub committed 2026-05-08 06:04:53 +00:00
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,