From 83ce15deec9e710c540120ed0bc046fa865bb67b Mon Sep 17 00:00:00 2001 From: Prem Palanisamy Date: Tue, 26 May 2026 09:08:58 +0100 Subject: [PATCH] Assert apiKey resource specifically in testCreateAppwriteMigration --- tests/e2e/Services/Migrations/MigrationsBase.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/e2e/Services/Migrations/MigrationsBase.php b/tests/e2e/Services/Migrations/MigrationsBase.php index 1081e7a7a2..7f97278f76 100644 --- a/tests/e2e/Services/Migrations/MigrationsBase.php +++ b/tests/e2e/Services/Migrations/MigrationsBase.php @@ -224,7 +224,9 @@ trait MigrationsBase $this->assertEquals(Appwrite::getSupportedResources(), $response['resources']); $this->assertEquals('Appwrite', $response['source']); $this->assertEquals('Appwrite', $response['destination']); - $this->assertNotEmpty($response['statusCounters']); + $this->assertArrayHasKey(Resource::TYPE_API_KEY, $response['statusCounters']); + $this->assertGreaterThan(0, $response['statusCounters'][Resource::TYPE_API_KEY]['success']); + $this->assertEquals(0, $response['statusCounters'][Resource::TYPE_API_KEY]['error']); } /**