Sokil\Mongo\CollectionTest::testInsertMultiple_ErrorInsertingWithUnacknowledgeWrite PHP Method

testInsertMultiple_ErrorInsertingWithUnacknowledgeWrite() public method

    public function testInsertMultiple_ErrorInsertingWithUnacknowledgeWrite()
    {
        $this->collectionMock = $this->getMock('\\MongoCollection', array('batchInsert'), array($this->database->getMongoDB(), 'phpmongo_test_collection'));
        $this->collectionMock->expects($this->once())->method('batchInsert')->will($this->returnValue(false));
        $this->collection = new Collection($this->database, $this->collectionMock);
        // insert multiple
        $this->collection->insertMultiple(array(array('a' => 1, 'b' => 2), array('a' => 3, 'b' => 4)));
    }
CollectionTest