Populate wont throw an exception in this test
This commit is contained in:
parent
d03d494d30
commit
af70cf779a
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue