浏览代码

Don't rely on document order when asserting results

Andreas Braun 6 年之前
父节点
当前提交
7cb43c9cb6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tests/Alcaeus/MongoDbAdapter/Mongo/MongoCollectionTest.php

+ 1 - 1
tests/Alcaeus/MongoDbAdapter/Mongo/MongoCollectionTest.php

@@ -1912,7 +1912,7 @@ class MongoCollectionTest extends TestCase
             'nIndexesWas' => 1,
             'ok' => 1.0
         ];
-        $this->assertSame($expected, $this->getCollection()->drop());
+        $this->assertEquals($expected, $this->getCollection()->drop());
     }
 
     public function testEmptyCollectionName()