Assert statusCounters contains only apiKey for fresh-fixture smoke test

This commit is contained in:
Prem Palanisamy
2026-05-26 10:59:42 +01:00
parent 00f7cff1e7
commit 8ca2bac6b1
@@ -224,6 +224,13 @@ trait MigrationsBase
$this->assertEquals(Appwrite::getSupportedResources(), $response['resources']);
$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.
// So apiKey should be the only entry, successfully migrated with no errors.
$this->assertEquals([Resource::TYPE_API_KEY], array_keys($response['statusCounters']));
$this->assertEquals(0, $response['statusCounters'][Resource::TYPE_API_KEY]['error']);
$this->assertGreaterThan(0, $response['statusCounters'][Resource::TYPE_API_KEY]['success']);
}
/**