Skip to content

Commit dcb4cca

Browse files
committed
Merge pull request #403
2 parents 7a6daef + e1aed70 commit dcb4cca

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

tests/Operation/AggregateFunctionalTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99

1010
class AggregateFunctionalTest extends FunctionalTestCase
1111
{
12-
private static $wireVersionForCursor = 2;
13-
1412
public function testDefaultReadConcernIsOmitted()
1513
{
1614
(new CommandObserver)->observe(

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)