eZ\Publish\Core\Persistence\Cache\Tests\LocationHandlerTest::testUnhide PHP Method

testUnhide() public method

public testUnhide ( )
    public function testUnhide()
    {
        $this->loggerMock->expects($this->once())->method('logCall');
        $this->cacheMock->expects($this->once())->method('clear')->with('location')->will($this->returnValue(true));
        $innerHandlerMock = $this->getMock('eZ\\Publish\\SPI\\Persistence\\Content\\Location\\Handler');
        $this->persistenceHandlerMock->expects($this->once())->method('locationHandler')->will($this->returnValue($innerHandlerMock));
        $innerHandlerMock->expects($this->once())->method('unhide')->with(33)->will($this->returnValue(true));
        $handler = $this->persistenceCacheHandler->locationHandler();
        $handler->unhide(33);
    }