Trim apiKey assertion comment

This commit is contained in:
Prem Palanisamy
2026-05-26 11:26:54 +01:00
parent dee95c740a
commit edb32d04fe
@@ -225,12 +225,7 @@ trait MigrationsBase
$this->assertEquals('Appwrite', $response['source']);
$this->assertEquals('Appwrite', $response['destination']);
// A fresh test project only intrinsically has its auth apiKey — every other
// supported resource type has zero data and gets pruned by Transfer::getStatusCounters.
// The auth apiKey itself is name-matched against the destination's auth apiKey on
// import (createApiKey in the destination handler), so it ends up skipped rather
// than successfully created. Either outcome means the resource was processed; an
// error is not.
// Auth apiKey name-collides with destination's own and gets skipped — treat success or skip as processed.
$counts = $response['statusCounters'][Resource::TYPE_API_KEY];
$this->assertEquals([Resource::TYPE_API_KEY], array_keys($response['statusCounters']));
$this->assertEquals(0, $counts['error']);