eZ\Publish\Core\Persistence\Legacy\Tests\Content\Section\SectionHandlerTest::testDeleteFailure PHP Method

testDeleteFailure() public method

public testDeleteFailure ( )
    public function testDeleteFailure()
    {
        $handler = $this->getSectionHandler();
        $gatewayMock = $this->getGatewayMock();
        $gatewayMock->expects($this->once())->method('countContentObjectsInSection')->with($this->equalTo(23))->will($this->returnValue(2));
        $gatewayMock->expects($this->never())->method('deleteSection');
        $result = $handler->delete(23);
    }