eZ\Publish\Core\Persistence\Cache\Tests\UrlAliasHandlerTest::testLocationMoved PHP Method

testLocationMoved() public method

public testLocationMoved ( )
    public function testLocationMoved()
    {
        $this->loggerMock->expects($this->once())->method('logCall');
        $innerHandler = $this->getMock('eZ\\Publish\\SPI\\Persistence\\Content\\UrlAlias\\Handler');
        $this->persistenceHandlerMock->expects($this->once())->method('urlAliasHandler')->will($this->returnValue($innerHandler));
        $innerHandler->expects($this->once())->method('locationMoved')->with(44, 2, 45);
        $this->cacheMock->expects($this->once())->method('clear')->with('urlAlias')->will($this->returnValue(null));
        $handler = $this->persistenceCacheHandler->urlAliasHandler();
        $handler->locationMoved(44, 2, 45);
    }