Explorar o código

Skip test relying on removed group command

Andreas Braun %!s(int64=6) %!d(string=hai) anos
pai
achega
09cd0725d8
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      tests/Alcaeus/MongoDbAdapter/Mongo/MongoCollectionTest.php

+ 2 - 0
tests/Alcaeus/MongoDbAdapter/Mongo/MongoCollectionTest.php

@@ -1730,6 +1730,8 @@ class MongoCollectionTest extends TestCase
 
     public function testGroup()
     {
+        $this->skipTestIf(version_compare($this->getServerVersion(), '4.2.0', '>='), 'Test does not apply to MongoDB >= 4.2.');
+
         $collection = $this->getCollection();
 
         $document1 = ['a' => 2];