Drupal 8  8.0.2
TokenTest Class Reference
Inheritance diagram for TokenTest:

Public Member Functions

 testGetInfo ()
 
 testReplaceWithBubbleableMetadataObject ()
 
 testReplaceWithHookTokensWithBubbleableMetadata ()
 
 testReplaceWithHookTokensAlterWithBubbleableMetadata ()
 
 testResetInfo ()
 
 testReplaceEscaping ($string, array $tokens, $expected)
 
 providerTestReplaceEscaping ()
 
- Public Member Functions inherited from UnitTestCase
 randomMachineName ($length=8)
 
 getConfigFactoryStub (array $configs=array())
 
 getConfigStorageStub (array $configs)
 
 getStringTranslationStub ()
 

Protected Member Functions

 setUp ()
 
- 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

 $cache
 
 $languageManager
 
 $moduleHandler
 
 $language
 
 $token
 
 $cacheTagsInvalidator
 
 $cacheContextManager
 
 $renderer
 
- Protected Attributes inherited from UnitTestCase
 $randomGenerator
 
 $root
 

Detailed Description

Utility

Member Function Documentation

setUp ( )
protected

{}

References Drupal\cache(), Drupal\languageManager(), Drupal\moduleHandler(), Drupal\setContainer(), and Drupal\token().

Here is the call graph for this function:

testGetInfo ( )

::getInfo

References Drupal\cache(), Drupal\languageManager(), Drupal\moduleHandler(), UnitTestCase\randomMachineName(), Drupal\token(), and LanguageInterface\TYPE_CONTENT.

Here is the call graph for this function:

testReplaceEscaping (   $string,
array  $tokens,
  $expected 
)

::replace providerTestReplaceEscaping

References Drupal\moduleHandler(), and Drupal\token().

Here is the call graph for this function:

testReplaceWithBubbleableMetadataObject ( )

::replace

References Drupal\moduleHandler(), and Drupal\token().

Here is the call graph for this function:

testReplaceWithHookTokensAlterWithBubbleableMetadata ( )
testReplaceWithHookTokensWithBubbleableMetadata ( )

::replace

References Drupal\moduleHandler(), and Drupal\token().

Here is the call graph for this function:

testResetInfo ( )

::resetInfo

References Drupal\token().

Here is the call graph for this function:


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