1
0
Fork 0
mirror of synced 2024-06-29 11:40:45 +12:00

Fix tests

This commit is contained in:
Matej Bačo 2022-09-01 05:26:16 +00:00
parent d9c6f892c7
commit 2386381d03

View file

@ -42,7 +42,10 @@ abstract class MigrationTest extends TestCase
$this->assertTrue(class_exists('Appwrite\\Migration\\Version\\' . $class));
}
// Test if current version exists
$this->assertArrayHasKey(APP_VERSION_STABLE, Migration::$versions);
// Only test official releases - skip if latest is release candidate
if(!(\str_contains(APP_VERSION_STABLE, 'RC'))) {
$this->assertArrayHasKey(APP_VERSION_STABLE, Migration::$versions);
}
}
public function testHasDifference(): void