diff --git a/tests/MongoTest.php b/tests/MongoTest.php index 3f0b7798cf..0bd87af4a0 100644 --- a/tests/MongoTest.php +++ b/tests/MongoTest.php @@ -254,6 +254,7 @@ class MongoTest extends TestCase ], ]); + $documents = $this->getDatabase()->find('movies_upsert')->cursor->firstBatch ?? []; self::assertCount(2, $documents); self::assertEquals(4, $documents[0]->counter);