diff options
| author | Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> | 2023-08-18 09:59:48 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2023-08-18 09:59:48 +0000 |
| commit | 75cedc6df4797f2e2f90f06222ec5e5018fc0826 (patch) | |
| tree | 4384ee0e9b0fc7a66f7feae544a472cb607971cc /tests | |
| parent | 3bee81d9cb87eda39843435a8ceea40454154731 (diff) | |
add a new API to count pending migrations, fixes #3069
Closes #3069 and #3022
Merge request studip/studip!2046
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/unit/lib/classes/MigrationTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/lib/classes/MigrationTest.php b/tests/unit/lib/classes/MigrationTest.php index 0aabbcd..dd78ac7 100644 --- a/tests/unit/lib/classes/MigrationTest.php +++ b/tests/unit/lib/classes/MigrationTest.php @@ -95,7 +95,7 @@ class MigrationTest extends \Codeception\Test\Unit $migrator = $this->getMigrator($schema_version); $migrator->migrateTo(null); $this->assertSame(10, $schema_version->get()); - $this->assertSame(0, count($migrator->relevantMigrations(null))); + $this->assertSame(0, $migrator->pendingMigrations()); return $schema_version; } @@ -108,7 +108,7 @@ class MigrationTest extends \Codeception\Test\Unit $migrator = $this->getMigrator($schema_version); $migrator->migrateTo(0); $this->assertSame(0, $schema_version->get()); - $this->assertSame(4, count($migrator->relevantMigrations(null))); + $this->assertSame(4, $migrator->pendingMigrations()); } public function testGaps() |
