Bläddra i källkod

Skip test relying on removed group command

Andreas Braun 6 år sedan
förälder
incheckning
09cd0725d8
1 ändrade filer med 2 tillägg och 0 borttagningar
  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()
     public function testGroup()
     {
     {
+        $this->skipTestIf(version_compare($this->getServerVersion(), '4.2.0', '>='), 'Test does not apply to MongoDB >= 4.2.');
+
         $collection = $this->getCollection();
         $collection = $this->getCollection();
 
 
         $document1 = ['a' => 2];
         $document1 = ['a' => 2];