Issue #2409395 by Cheet, DamienMcKenna, penyaskito, mglaman: Fix typo 'lama' => 'llama'
parent
dac288ec55
commit
ebd96ef613
|
@ -33,7 +33,7 @@ class TwigEnvironmentTest extends KernelTestBase {
|
||||||
/** @var \Drupal\Core\Template\TwigEnvironment $environment */
|
/** @var \Drupal\Core\Template\TwigEnvironment $environment */
|
||||||
$environment = \Drupal::service('twig');
|
$environment = \Drupal::service('twig');
|
||||||
$this->assertEqual($environment->renderInline('test-no-context'), 'test-no-context');
|
$this->assertEqual($environment->renderInline('test-no-context'), 'test-no-context');
|
||||||
$this->assertEqual($environment->renderInline('test-with-context {{ lama }}', array('lama' => 'muuh')), 'test-with-context muuh');
|
$this->assertEqual($environment->renderInline('test-with-context {{ llama }}', array('llama' => 'muuh')), 'test-with-context muuh');
|
||||||
|
|
||||||
$element = array();
|
$element = array();
|
||||||
$unsafe_string = '<script>alert(\'Danger! High voltage!\');</script>';
|
$unsafe_string = '<script>alert(\'Danger! High voltage!\');</script>';
|
||||||
|
@ -56,8 +56,8 @@ class TwigEnvironmentTest extends KernelTestBase {
|
||||||
$element = array();
|
$element = array();
|
||||||
$element['test'] = array(
|
$element['test'] = array(
|
||||||
'#type' => 'inline_template',
|
'#type' => 'inline_template',
|
||||||
'#template' => 'test-with-context {{ lama }}',
|
'#template' => 'test-with-context {{ llama }}',
|
||||||
'#context' => array('lama' => 'muuh'),
|
'#context' => array('llama' => 'muuh'),
|
||||||
);
|
);
|
||||||
$element_copy = $element;
|
$element_copy = $element;
|
||||||
// Render it twice so that twig caching is triggered.
|
// Render it twice so that twig caching is triggered.
|
||||||
|
|
|
@ -63,8 +63,8 @@ class ThemeTestController extends ControllerBase {
|
||||||
$element = array();
|
$element = array();
|
||||||
$element['test'] = array(
|
$element['test'] = array(
|
||||||
'#type' => 'inline_template',
|
'#type' => 'inline_template',
|
||||||
'#template' => 'test-with-context {{ lama }}',
|
'#template' => 'test-with-context {{ llama }}',
|
||||||
'#context' => array('lama' => 'muuh'),
|
'#context' => array('llama' => 'muuh'),
|
||||||
);
|
);
|
||||||
return $element;
|
return $element;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue