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

testLocationDeletedWithoutCachedLocation() public method

    public function testLocationDeletedWithoutCachedLocation()
    {
        $locationNotCached = $this->getMock('Stash\\Interfaces\\ItemInterface');
        $locationNotCached->expects($this->once())->method('isMiss')->willReturn(true);
        $locationNotCached->expects($this->never())->method('clear');
        $this->prepareDeleteMocks($locationNotCached);
        $this->cacheMock->expects($this->once())->method('clear')->with('urlAlias');
        $handler = $this->persistenceCacheHandler->urlAliasHandler();
        $handler->locationDeleted(44);
    }