Commit e1aed705 authored by Jeremy Mikola's avatar Jeremy Mikola

Check wireVersionForCommand instead of server version

parent b726d9ee
......@@ -164,7 +164,7 @@ class CreateIndexesFunctionalTest extends FunctionalTestCase
/* Earlier server versions do not support the createIndexes command. Per
* the Index Management specification, inserts on system.indexes must
* use the write concern {w:1}. */
if (version_compare($this->getServerVersion(), '2.6.0', '<')) {
if ( ! \MongoDB\server_supports_feature($this->getPrimaryServer(), self::$wireVersionForCommand)) {
$this->markTestSkipped('createIndexes command is not supported');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment