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

storeMatchExtractsUuidsAndTheHashedUriPathToCacheTags() public method

    public function storeMatchExtractsUuidsAndTheHashedUriPathToCacheTags()
    {
        $uuid1 = '550e8400-e29b-11d4-a716-446655440000';
        $uuid2 = '302abe9c-7d07-4200-a868-478586019290';
        $matchResults = ['some' => ['matchResults' => ['uuid', $uuid1]], 'foo' => $uuid2];
        /** @var RouterCachingService|\PHPUnit_Framework_MockObject_MockObject $routerCachingService */
        $routerCachingService = $this->getAccessibleMock(RouterCachingService::class, ['buildRouteCacheIdentifier']);
        $routerCachingService->expects($this->atLeastOnce())->method('buildRouteCacheIdentifier')->with($this->mockHttpRequest)->will($this->returnValue('cacheIdentifier'));
        $this->inject($routerCachingService, 'routeCache', $this->mockRouteCache);
        $this->mockRouteCache->expects($this->once())->method('set')->with('cacheIdentifier', $matchResults, [$uuid1, $uuid2, md5('some'), md5('some/route'), md5('some/route/path')]);
        $routerCachingService->storeMatchResults($this->mockHttpRequest, $matchResults);
    }