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

testHide() public method

public testHide ( )
    public function testHide()
    {
        $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('hide')->with(33)->will($this->returnValue(true));
        $handler = $this->persistenceCacheHandler->locationHandler();
        $handler->hide(33);
    }