Populate wont throw an exception in this test

This commit is contained in:
Tim Nagel 2014-02-19 13:52:43 +11:00
parent d03d494d30
commit af70cf779a

View file

@ -150,10 +150,6 @@ class AbstractProviderTest extends \PHPUnit_Framework_TestCase
->method('fetchSlice')
->will($this->returnValue($objects));
$this->objectPersister->expects($this->any())
->method('insertMany')
->will($this->throwException($this->getMockBulkResponseException()));
$provider->populate(null, array('no-stop-on-error' => true));
}
@ -170,16 +166,6 @@ class AbstractProviderTest extends \PHPUnit_Framework_TestCase
));
}
/**
* @return \Elastica\Exception\Bulk\ResponseException
*/
private function getMockBulkResponseException()
{
return $this->getMockBuilder('Elastica\Exception\Bulk\ResponseException')
->disableOriginalConstructor()
->getMock();
}
/**
* @return \Doctrine\Common\Persistence\ManagerRegistry|\PHPUnit_Framework_MockObject_MockObject
*/