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

prepareDeleteMocks() protected method

protected prepareDeleteMocks ( $locationCacheMissed )
$locationCacheMissed
    protected function prepareDeleteMocks($locationCacheMissed)
    {
        $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('locationDeleted')->with(44);
        $this->cacheMock->expects($this->once())->method('getItem')->willReturn($locationCacheMissed);
    }