Commit dcb4ccaa authored by Jeremy Mikola's avatar Jeremy Mikola

Merge pull request #403

parents 7a6daefb e1aed705
...@@ -9,8 +9,6 @@ use stdClass; ...@@ -9,8 +9,6 @@ use stdClass;
class AggregateFunctionalTest extends FunctionalTestCase class AggregateFunctionalTest extends FunctionalTestCase
{ {
private static $wireVersionForCursor = 2;
public function testDefaultReadConcernIsOmitted() public function testDefaultReadConcernIsOmitted()
{ {
(new CommandObserver)->observe( (new CommandObserver)->observe(
......
...@@ -164,7 +164,7 @@ class CreateIndexesFunctionalTest extends FunctionalTestCase ...@@ -164,7 +164,7 @@ class CreateIndexesFunctionalTest extends FunctionalTestCase
/* Earlier server versions do not support the createIndexes command. Per /* Earlier server versions do not support the createIndexes command. Per
* the Index Management specification, inserts on system.indexes must * the Index Management specification, inserts on system.indexes must
* use the write concern {w:1}. */ * 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'); $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