public testDeleteContentWithoutLocations ( ) |
public function testDeleteContentWithoutLocations()
{
$handlerMock = $this->getPartlyMockedHandler(array('removeRawContent'));
$gatewayMock = $this->getGatewayMock();
$gatewayMock->expects($this->once())->method('getAllLocationIds')->with($this->equalTo(23))->will($this->returnValue(array()));
$handlerMock->expects($this->once())->method('removeRawContent')->with($this->equalTo(23));
$handlerMock->deleteContent(23);
}