eZ\Publish\Core\Persistence\Cache\Tests\SectionHandlerTest::testDelete PHP Method

testDelete() public method

public testDelete ( )
    public function testDelete()
    {
        $this->loggerMock->expects($this->once())->method('logCall');
        $innerHandlerMock = $this->getMock('eZ\\Publish\\SPI\\Persistence\\Content\\Section\\Handler');
        $this->persistenceHandlerMock->expects($this->once())->method('sectionHandler')->will($this->returnValue($innerHandlerMock));
        $innerHandlerMock->expects($this->once())->method('delete')->with(33)->will($this->returnValue(true));
        $this->cacheMock->expects($this->once())->method('clear')->with('section', 33)->will($this->returnValue(true));
        $handler = $this->persistenceCacheHandler->sectionHandler();
        $handler->delete(33);
    }