Drupal 8  8.0.2
LocaleStringIsSafeTest Class Reference
Inheritance diagram for LocaleStringIsSafeTest:

Public Member Functions

 testLocaleStringIsSafe ()
 testLocalizedTokenizedString ()

Static Public Attributes

static $modules = ['locale', 'locale_test']

Detailed Description

Tests locale translation safe string handling.


Member Function Documentation

testLocaleStringIsSafe ( )

Tests for locale_string_is_safe().

testLocalizedTokenizedString ( )

Tests if a translated and tokenized string is properly escaped by Twig.

In each assert* call we add a new line at the expected result to match the newline at the end of the template file.

References t(), Drupal\theme(), and Drupal\token().

Here is the call graph for this function:

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