diff --git a/tests/CommandTest.php b/tests/CommandTest.php index 630eee8d..a42ee2ff 100644 --- a/tests/CommandTest.php +++ b/tests/CommandTest.php @@ -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 */