Fix tests
This commit is contained in:
parent
d9c6f892c7
commit
2386381d03
1 changed files with 4 additions and 1 deletions
|
@ -42,7 +42,10 @@ abstract class MigrationTest extends TestCase
|
||||||
$this->assertTrue(class_exists('Appwrite\\Migration\\Version\\' . $class));
|
$this->assertTrue(class_exists('Appwrite\\Migration\\Version\\' . $class));
|
||||||
}
|
}
|
||||||
// Test if current version exists
|
// 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
|
public function testHasDifference(): void
|
||||||
|
|
Loading…
Reference in a new issue