Skip to content

Commit b03bfb6

Browse files
authored
test: remove dead code from ShowDatabasesTest (#241)
1 parent 099a346 commit b03bfb6

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

tests/Snippet/ShowDatabasesTest.php

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
use PHPUnit\Framework\Attributes\CoversClass;
88
use SimPod\ClickHouseClient\Snippet\ShowDatabases;
9-
use SimPod\ClickHouseClient\Tests\ClickHouseVersion;
109
use SimPod\ClickHouseClient\Tests\TestCaseBase;
1110
use SimPod\ClickHouseClient\Tests\WithClient;
1211

@@ -39,19 +38,13 @@ public function testRun(): void
3938
array_shift($databases);
4039
}
4140

42-
$expected = ClickHouseVersion::get() >= 2111
43-
? [
44-
'INFORMATION_SCHEMA',
45-
self::$currentDbName,
46-
'default',
47-
'information_schema',
48-
'system',
49-
]
50-
: [
51-
self::$currentDbName,
52-
'default',
53-
'system',
54-
];
41+
$expected = [
42+
'INFORMATION_SCHEMA',
43+
self::$currentDbName,
44+
'default',
45+
'information_schema',
46+
'system',
47+
];
5548

5649
self::assertSame($expected, $databases);
5750
}

0 commit comments

Comments
 (0)