public function testFindAndUpdate_NoDocumentsFound() { $document = $this->collection->find()->where('param1', 1)->findAndUpdate($this->collection->operator()->set('newParam', '777')); $this->assertNull($document); }