mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Trim apiKey assertion comment
This commit is contained in:
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user