浏览代码

Skip test relying on removed group command

Andreas Braun 6 年之前
父节点
当前提交
09cd0725d8
共有 1 个文件被更改,包括 2 次插入0 次删除
  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];