eZ\Publish\Core\Persistence\Legacy\Tests\Content\ContentHandlerTest::testDeleteContentWithoutLocations PHP Method

testDeleteContentWithoutLocations() public method

Test for the deleteContent() method.
    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);
    }