Sokil\Mongo\CollectionTest::testInsert_Unacknowledged PHP Method

testInsert_Unacknowledged() public method

    public function testInsert_Unacknowledged()
    {
        $this->collection->setUnacknowledgedWriteConcern();
        $this->collection->insert(array('a' => 1, 'b' => 2));
        $document = $this->collection->find()->where('a', 1)->findOne();
        $this->assertNotEmpty($document);
        $this->assertEquals(2, $document->b);
    }
CollectionTest