/**
* @expectedException \Sokil\Mongo\Exception
* @expectedExceptionMessage Batch insert error
*/
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)));
}