Explorar o código

Don't rely on document order when asserting results

Andreas Braun %!s(int64=6) %!d(string=hai) anos
pai
achega
7cb43c9cb6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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()