Alcaeus\MongoDbAdapter\Tests\Mongo\MongoCollectionTest::testUnacknowledgedUpdate PHP Méthode

testUnacknowledgedUpdate() public méthode

    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