Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed Nov 3, 2023
1 parent f7e7627 commit da522cb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions tests/Common/AbstractMigratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -118,5 +120,7 @@ public function testZeroMaxSqlOutputLength(): void
'Execute SQL: [... hidden] ... Done',
$informer->getOutput(),
);

$migrator->down(new M231015155500ExecuteSql());
}
}
5 changes: 3 additions & 2 deletions tests/Common/Command/AbstractDownCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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
Expand Down

0 comments on commit da522cb

Please sign in to comment.