Parcourir la source

Don't rely on document order when asserting results

Andreas Braun il y a 6 ans
Parent
commit
7cb43c9cb6
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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()