Drupal 8  8.0.2
NodeTokenReplaceTest Class Reference
Inheritance diagram for NodeTokenReplaceTest:

Public Member Functions

 testNodeTokenReplacement ()
 

Static Public Attributes

static $modules = array('node', 'filter')
 
- 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 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

- 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 node token replacement.

node

Member Function Documentation

setUp ( )
protected

{}

testNodeTokenReplacement ( )

Creates a node, then tests the tokens generated from it.

References BubbleableMetadata\createFromObject(), EntityUnitTestBase\createUser(), Html\escape(), format_string(), and Drupal\service().

Here is the call graph for this function:


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