Drupal 8  8.0.2
TokenReplaceUnitTest Class Reference
Inheritance diagram for TokenReplaceUnitTest:

Public Member Functions

 testSystemTokenRecognition ()
 
 testClear ()
 
 testSystemSiteTokenReplacement ()
 
 testSystemDateTokenReplacement ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from TokenReplaceUnitTestBase
 setUp ()
 
- Protected Member Functions inherited from EntityUnitTestBase
 setUp ()
 
 createUser ($values=array(), $permissions=array())
 
 reloadEntity (EntityInterface $entity)
 
 getHooksInfo ()
 
 installModule ($module)
 
 uninstallModule ($module)
 
 refreshServices ()
 
 generateRandomEntityId ($string=FALSE)
 

Additional Inherited Members

- Static Public Attributes inherited from TokenReplaceUnitTestBase
static $modules = array('system')
 
- Static Public Attributes inherited from EntityUnitTestBase
static $modules = ['user', 'system', 'field', 'text', 'filter', 'entity_test']
 
- Protected Attributes inherited from TokenReplaceUnitTestBase
 $interfaceLanguage
 
 $tokenService
 
- Protected Attributes inherited from EntityUnitTestBase
 $entityManager
 
 $generatedIds = array()
 
 $state
 

Detailed Description

Generates text using placeholders for dummy content to check token replacement.

system

Member Function Documentation

setUp ( )
protected

{}

References Drupal\config().

Here is the call graph for this function:

testClear ( )

Tests the clear parameter.

References Drupal\config(), and Html\escape().

Here is the call graph for this function:

testSystemDateTokenReplacement ( )

Tests the generation of all system date tokens.

References Xss\filter(), format_string(), and Drupal\service().

Here is the call graph for this function:

testSystemSiteTokenReplacement ( )

Tests the generation of all system site information tokens.

References Drupal\config(), BubbleableMetadata\createFromObject(), Html\escape(), Xss\filterAdmin(), and Drupal\url().

Here is the call graph for this function:

testSystemTokenRecognition ( )

Test whether token-replacement works in various contexts.

References format_string().

Here is the call graph for this function:


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