Drupal 8  8.0.2
AliasManagerTest Class Reference
Inheritance diagram for AliasManagerTest:

Public Member Functions

 testGetPathByAliasNoMatch ()
 
 testGetPathByAliasNatch ()
 
 testGetPathByAliasLangcode ()
 
 testGetAliasByPathWhitelist ()
 
 testGetAliasByPathNoMatch ()
 
 testGetAliasByPathMatch ()
 
 testGetAliasByPathCachedMatch ()
 
 testGetAliasByPathCachedMissLanguage ()
 
 testGetAliasByPathCachedMissNoAlias ()
 
 testGetAliasByPathUncachedMissNoAlias ()
 
 testCacheClear ()
 
 testGetAliasByPathUncachedMissWithAlias ()
 
- Public Member Functions inherited from UnitTestCase
 randomMachineName ($length=8)
 
 getConfigFactoryStub (array $configs=array())
 
 getConfigStorageStub (array $configs)
 
 getStringTranslationStub ()
 

Protected Member Functions

 setUp ()
 
 setUpCurrentLanguage ()
 
- Protected Member Functions inherited from UnitTestCase
 setUp ()
 
 getRandomGenerator ()
 
 assertArrayEquals (array $expected, array $actual, $message=NULL)
 
 getBlockMockWithMachineName ($machine_name)
 
 getContainerWithCacheTagsInvalidator (CacheTagsInvalidatorInterface $cache_tags_validator)
 
 getClassResolverStub ()
 

Protected Attributes

 $aliasManager
 
 $aliasStorage
 
 $aliasWhitelist
 
 $languageManager
 
 $cache
 
 $cacheKey = 'preload-paths:key'
 
 $path = 'key'
 
- Protected Attributes inherited from UnitTestCase
 $randomGenerator
 
 $root
 

Detailed Description

Path

Member Function Documentation

setUp ( )
protected

{}

References Drupal\cache(), and Drupal\languageManager().

Here is the call graph for this function:

setUpCurrentLanguage ( )
protected

Sets up the current language.

Returns
The current language object.

References Drupal\languageManager(), and LanguageInterface\TYPE_URL.

Referenced by AliasManagerTest\testCacheClear(), AliasManagerTest\testGetAliasByPathCachedMatch(), AliasManagerTest\testGetAliasByPathCachedMissLanguage(), AliasManagerTest\testGetAliasByPathCachedMissNoAlias(), AliasManagerTest\testGetAliasByPathMatch(), AliasManagerTest\testGetAliasByPathNoMatch(), AliasManagerTest\testGetAliasByPathUncachedMissNoAlias(), AliasManagerTest\testGetAliasByPathUncachedMissWithAlias(), AliasManagerTest\testGetAliasByPathWhitelist(), and AliasManagerTest\testGetPathByAliasNatch().

Here is the call graph for this function:

Here is the caller graph for this function:

testCacheClear ( )

::cacheClear

References Drupal\cache(), and AliasManagerTest\setUpCurrentLanguage().

Here is the call graph for this function:

testGetAliasByPathCachedMatch ( )

Tests the getAliasByPath method for a path that is preloaded.

::getAliasByPath ::writeCache

References Drupal\cache(), UnitTestCase\randomMachineName(), and AliasManagerTest\setUpCurrentLanguage().

Here is the call graph for this function:

testGetAliasByPathCachedMissLanguage ( )

Tests the getAliasByPath cache when a different language is requested.

::getAliasByPath ::writeCache

References Drupal\cache(), UnitTestCase\randomMachineName(), and AliasManagerTest\setUpCurrentLanguage().

Here is the call graph for this function:

testGetAliasByPathCachedMissNoAlias ( )

Tests the getAliasByPath cache with a preloaded path without alias.

::getAliasByPath ::writeCache

References Drupal\cache(), UnitTestCase\randomMachineName(), and AliasManagerTest\setUpCurrentLanguage().

Here is the call graph for this function:

testGetAliasByPathMatch ( )

Tests the getAliasByPath method for a path that has a matching alias.

::getAliasByPath ::writeCache

References Drupal\cache(), UnitTestCase\randomMachineName(), and AliasManagerTest\setUpCurrentLanguage().

Here is the call graph for this function:

testGetAliasByPathNoMatch ( )

Tests the getAliasByPath method for a path that has no matching alias.

::getAliasByPath

References Drupal\cache(), UnitTestCase\randomMachineName(), and AliasManagerTest\setUpCurrentLanguage().

Here is the call graph for this function:

testGetAliasByPathUncachedMissNoAlias ( )

Tests the getAliasByPath cache with an unpreloaded path without alias.

::getAliasByPath ::writeCache

References Drupal\cache(), UnitTestCase\randomMachineName(), and AliasManagerTest\setUpCurrentLanguage().

Here is the call graph for this function:

testGetAliasByPathUncachedMissWithAlias ( )

Tests the getAliasByPath cache with an unpreloaded path with alias.

::getAliasByPath ::writeCache

References Drupal\cache(), UnitTestCase\randomMachineName(), and AliasManagerTest\setUpCurrentLanguage().

Here is the call graph for this function:

testGetAliasByPathWhitelist ( )

Tests the getAliasByPath method for a path that is not in the whitelist.

::getAliasByPath

References UnitTestCase\randomMachineName(), and AliasManagerTest\setUpCurrentLanguage().

Here is the call graph for this function:

testGetPathByAliasLangcode ( )

Tests the getPathByAlias method when a langcode is passed explicitly.

::getPathByAlias

References Drupal\languageManager(), and UnitTestCase\randomMachineName().

Here is the call graph for this function:

testGetPathByAliasNatch ( )

Tests the getPathByAlias method for an alias that have a matching path.

::getPathByAlias

References UnitTestCase\randomMachineName(), and AliasManagerTest\setUpCurrentLanguage().

Here is the call graph for this function:

testGetPathByAliasNoMatch ( )

Tests the getPathByAlias method for an alias that have no matching path.

::getPathByAlias

References Drupal\languageManager(), UnitTestCase\randomMachineName(), and LanguageInterface\TYPE_URL.

Here is the call graph for this function:


The documentation for this class was generated from the following file: