Skip to content

Commit e1aed70

Browse files
committed
Check wireVersionForCommand instead of server version
1 parent b726d9e commit e1aed70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Operation/CreateIndexesFunctionalTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ public function testDefaultWriteConcernIsOmitted()
164164
/* Earlier server versions do not support the createIndexes command. Per
165165
* the Index Management specification, inserts on system.indexes must
166166
* use the write concern {w:1}. */
167-
if (version_compare($this->getServerVersion(), '2.6.0', '<')) {
167+
if ( ! \MongoDB\server_supports_feature($this->getPrimaryServer(), self::$wireVersionForCommand)) {
168168
$this->markTestSkipped('createIndexes command is not supported');
169169
}
170170

0 commit comments

Comments
 (0)