diff --git a/tests/Common/AbstractMigratorTest.php b/tests/Common/AbstractMigratorTest.php index 195e819..2b1551f 100644 --- a/tests/Common/AbstractMigratorTest.php +++ b/tests/Common/AbstractMigratorTest.php @@ -100,6 +100,8 @@ public function testMaxSqlOutputLength(): void 'Execute SQL: CREATE TABLE person [... hidden] ... Done', $informer->getOutput(), ); + + $migrator->down(new M231015155500ExecuteSql()); } public function testZeroMaxSqlOutputLength(): void @@ -118,5 +120,7 @@ public function testZeroMaxSqlOutputLength(): void 'Execute SQL: [... hidden] ... Done', $informer->getOutput(), ); + + $migrator->down(new M231015155500ExecuteSql()); } } diff --git a/tests/Common/Command/AbstractDownCommandTest.php b/tests/Common/Command/AbstractDownCommandTest.php index 7be60c0..ab745da 100644 --- a/tests/Common/Command/AbstractDownCommandTest.php +++ b/tests/Common/Command/AbstractDownCommandTest.php @@ -352,8 +352,7 @@ public function testOptionsNamespaceAndPath(): void $migrationService = $this->container->get(MigrationService::class); $migrator = $this->container->get(Migrator::class); - $migration = $migrationService->makeMigration(M231015155500ExecuteSql::class); - $migrator->up($migration); + $migrator->up(new M231015155500ExecuteSql()); MigrationHelper::useMigrationsNamespace($this->container); @@ -380,6 +379,8 @@ public function testOptionsNamespaceAndPath(): void $this->assertStringContainsString('Total 1 migration to be reverted:', $output); $this->assertStringContainsString('1. ' . M231015155500ExecuteSql::class, $output); } + + $migrator->down(new M231015155500ExecuteSql()); } public function testOptionsNamespaceAndPathWithoutMigrations(): void