From 2eefb590346ce4d1667cf979a8345f516cd3af6e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 8 May 2026 06:04:53 +0000 Subject: [PATCH] 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> --- .../Migration/Unit/Destinations/AppwriteDestinationDsnTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Migration/Unit/Destinations/AppwriteDestinationDsnTest.php b/tests/Migration/Unit/Destinations/AppwriteDestinationDsnTest.php index 892868db96..e6e9e4d8f9 100644 --- a/tests/Migration/Unit/Destinations/AppwriteDestinationDsnTest.php +++ b/tests/Migration/Unit/Destinations/AppwriteDestinationDsnTest.php @@ -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,