From 685085450c29c95a1aaae4870f836a8ac397ffa6 Mon Sep 17 00:00:00 2001 From: Alexey Rogachev Date: Thu, 21 Nov 2024 19:45:54 +0500 Subject: [PATCH] WIP --- tests/CommandTest.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 */