Neos\Flow\Tests\Unit\Mvc\Routing\RouterCachingServiceTest::getCachedResolvedUriPathReturnsCachedResolvedUriPathIfFoundInCache PHP Method

getCachedResolvedUriPathReturnsCachedResolvedUriPathIfFoundInCache() public method

    public function getCachedResolvedUriPathReturnsCachedResolvedUriPathIfFoundInCache()
    {
        $routeValues = ['b' => 'route values', 'a' => 'Some more values'];
        $cacheIdentifier = '88a1c4366ca37b55e53905d61e184d08';
        $expectedResult = 'cached/matching/uri';
        $this->mockResolveCache->expects($this->once())->method('get')->with($cacheIdentifier)->will($this->returnValue($expectedResult));
        $actualResult = $this->routerCachingService->getCachedResolvedUriPath($routeValues);
        $this->assertEquals($expectedResult, $actualResult);
    }