Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
arogachev committed Nov 21, 2024
1 parent 6216a66 commit 6850854
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/CommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,14 @@ public function testDropDefaultValueSql(): void

public function testShowDatabases(): void
{
$this->assertSame([self::getDatabaseName()], self::getDb()->createCommand()->showDatabases());
$expectedDatabases = [];
if (self::getDatabaseName() !== 'tempdb') {
$expectedDatabases[] = self::getDatabaseName();
}

$actualDatabases = self::getDb()->createCommand()->showDatabases();

$this->assertSame($expectedDatabases, $actualDatabases);
}

/** @link https://github.com/yiisoft/db-migration/issues/11 */
Expand Down

0 comments on commit 6850854

Please sign in to comment.