PHP Class Neos\Flow\Tests\Unit\Mvc\Routing\RouterCachingServiceTest

Inheritance: extends Neos\Flow\Tests\UnitTestCase
Show file Open project: neos/flow-development-collection

Protected Properties

Property Type Description
$mockApplicationContext Neos\Flow\Core\ApplicationContext | PHPUnit_Framework_MockObject_MockObject
$mockHttpRequest Neos\Flow\Http\Request | PHPUnit_Framework_MockObject_MockObject
$mockObjectManager Neos\Flow\ObjectManagement\ObjectManagerInterface | PHPUnit_Framework_MockObject_MockObject
$mockPersistenceManager Neos\Flow\Persistence\PersistenceManagerInterface | PHPUnit_Framework_MockObject_MockObject
$mockResolveCache Neos\Cache\Frontend\StringFrontend | PHPUnit_Framework_MockObject_MockObject
$mockRouteCache Neos\Cache\Frontend\VariableFrontend | PHPUnit_Framework_MockObject_MockObject
$mockSystemLogger Neos\Flow\Log\SystemLoggerInterface | PHPUnit_Framework_MockObject_MockObject
$mockUri Neos\Flow\Http\Uri | PHPUnit_Framework_MockObject_MockObject
$routerCachingService Neos\Flow\Mvc\Routing\RouterCachingService

Public Methods

Method Description
containsObjectDetectsObjectsInVariousSituations ( $expectedResult, $subject )
containsObjectDetectsObjectsInVariousSituationsDataProvider ( ) Data provider for containsObjectDetectsObjectsInVariousSituations()
flushCachesResetsBothRoutingCaches ( )
getCachedMatchResultsReturnsCachedMatchResultsIfFoundInCache ( )
getCachedMatchResultsReturnsFalseIfNotFoundInCache ( )
getCachedResolvedUriPathReturnsCachedResolvedUriPathIfFoundInCache ( )
getCachedResolvedUriPathSkipsCacheIfRouteValuesContainObjectsThatCantBeConvertedToHashes ( )
initializeDoesNotFlushCachesInDevelopmentContextIfRoutingSettingsHaveNotChanged ( )
initializeFlushesCachesInDevelopmentContextIfRoutingSettingsHaveChanged ( )
initializeFlushesCachesInDevelopmentContextIfRoutingSettingsWhereNotStoredPreviously ( )
initializeObjectDoesNotFlushCachesInProductionContext ( )
setUp ( ) Sets up this test case
storeMatchExtractsUuidsAndTheHashedUriPathToCacheTags ( )
storeMatchResultsDoesNotStoreMatchResultsInCacheIfTheyContainObjects ( )
storeResolvedUriPathConvertsObjectsImplementingCacheAwareInterfaceToCacheEntryIdentifier ( )
storeResolvedUriPathConvertsObjectsToHashesToGenerateCacheIdentifier ( )
storeResolvedUriPathExtractsUuidsToCacheTags ( )

Method Details

containsObjectDetectsObjectsInVariousSituations() public method

public containsObjectDetectsObjectsInVariousSituations ( $expectedResult, $subject )

containsObjectDetectsObjectsInVariousSituationsDataProvider() public method

Data provider for containsObjectDetectsObjectsInVariousSituations()

flushCachesResetsBothRoutingCaches() public method

getCachedMatchResultsReturnsCachedMatchResultsIfFoundInCache() public method

getCachedMatchResultsReturnsFalseIfNotFoundInCache() public method

getCachedResolvedUriPathReturnsCachedResolvedUriPathIfFoundInCache() public method

getCachedResolvedUriPathSkipsCacheIfRouteValuesContainObjectsThatCantBeConvertedToHashes() public method

initializeDoesNotFlushCachesInDevelopmentContextIfRoutingSettingsHaveNotChanged() public method

initializeFlushesCachesInDevelopmentContextIfRoutingSettingsHaveChanged() public method

initializeFlushesCachesInDevelopmentContextIfRoutingSettingsWhereNotStoredPreviously() public method

initializeObjectDoesNotFlushCachesInProductionContext() public method

setUp() public method

Sets up this test case
public setUp ( )

storeMatchExtractsUuidsAndTheHashedUriPathToCacheTags() public method

storeMatchResultsDoesNotStoreMatchResultsInCacheIfTheyContainObjects() public method

storeResolvedUriPathConvertsObjectsImplementingCacheAwareInterfaceToCacheEntryIdentifier() public method

storeResolvedUriPathConvertsObjectsToHashesToGenerateCacheIdentifier() public method

storeResolvedUriPathExtractsUuidsToCacheTags() public method

Property Details

$mockApplicationContext protected property

protected ApplicationContext,Neos\Flow\Core|PHPUnit_Framework_MockObject_MockObject $mockApplicationContext
return Neos\Flow\Core\ApplicationContext | PHPUnit_Framework_MockObject_MockObject

$mockHttpRequest protected property

protected Request,Neos\Flow\Http|PHPUnit_Framework_MockObject_MockObject $mockHttpRequest
return Neos\Flow\Http\Request | PHPUnit_Framework_MockObject_MockObject

$mockObjectManager protected property

protected ObjectManagerInterface,Neos\Flow\ObjectManagement|PHPUnit_Framework_MockObject_MockObject $mockObjectManager
return Neos\Flow\ObjectManagement\ObjectManagerInterface | PHPUnit_Framework_MockObject_MockObject

$mockPersistenceManager protected property

protected PersistenceManagerInterface,Neos\Flow\Persistence|PHPUnit_Framework_MockObject_MockObject $mockPersistenceManager
return Neos\Flow\Persistence\PersistenceManagerInterface | PHPUnit_Framework_MockObject_MockObject

$mockResolveCache protected property

protected StringFrontend,Neos\Cache\Frontend|PHPUnit_Framework_MockObject_MockObject $mockResolveCache
return Neos\Cache\Frontend\StringFrontend | PHPUnit_Framework_MockObject_MockObject

$mockRouteCache protected property

protected VariableFrontend,Neos\Cache\Frontend|PHPUnit_Framework_MockObject_MockObject $mockRouteCache
return Neos\Cache\Frontend\VariableFrontend | PHPUnit_Framework_MockObject_MockObject

$mockSystemLogger protected property

protected SystemLoggerInterface,Neos\Flow\Log|PHPUnit_Framework_MockObject_MockObject $mockSystemLogger
return Neos\Flow\Log\SystemLoggerInterface | PHPUnit_Framework_MockObject_MockObject

$mockUri protected property

protected Uri,Neos\Flow\Http|PHPUnit_Framework_MockObject_MockObject $mockUri
return Neos\Flow\Http\Uri | PHPUnit_Framework_MockObject_MockObject

$routerCachingService protected property

protected RouterCachingService,Neos\Flow\Mvc\Routing $routerCachingService
return Neos\Flow\Mvc\Routing\RouterCachingService