Alcaeus\MongoDbAdapter\Tests\Mongo\MongoCollectionTest::testUnacknowledgedUpdate PHP Method

testUnacknowledgedUpdate() public method

    public function testUnacknowledgedUpdate()
    {
        $document = ['foo' => 'bar'];
        $this->getCollection()->insert($document);
        unset($document['_id']);
        $this->getCollection()->insert($document);
        $this->assertTrue($this->getCollection()->update($document, ['$set' => ['foo' => 'foo']], ['w' => 0]));
    }
MongoCollectionTest