Alcaeus\MongoDbAdapter\Tests\Mongo\MongoCollectionTest::testUpdateWriteConcern PHP 메소드

testUpdateWriteConcern() 공개 메소드

    public function testUpdateWriteConcern()
    {
        $this->setExpectedException('MongoWriteConcernException', "cannot use 'w' > 1 when a host is not replicated");
        $this->getCollection()->update([], ['$set' => ['foo' => 'bar']], ['w' => 2]);
    }
MongoCollectionTest