Skip to content
Snippets Groups Projects
Commit ebd96ef6 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2409395 by Cheet, DamienMcKenna, penyaskito, mglaman: Fix typo 'lama' => 'llama'

parent dac288ec
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,7 @@ public function testInlineTemplate() {
/** @var \Drupal\Core\Template\TwigEnvironment $environment */
$environment = \Drupal::service('twig');
$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();
$unsafe_string = '<script>alert(\'Danger! High voltage!\');</script>';
......@@ -56,8 +56,8 @@ public function testInlineTemplate() {
$element = array();
$element['test'] = array(
'#type' => 'inline_template',
'#template' => 'test-with-context {{ lama }}',
'#context' => array('lama' => 'muuh'),
'#template' => 'test-with-context {{ llama }}',
'#context' => array('llama' => 'muuh'),
);
$element_copy = $element;
// Render it twice so that twig caching is triggered.
......
......@@ -63,8 +63,8 @@ public function testInlineTemplate() {
$element = array();
$element['test'] = array(
'#type' => 'inline_template',
'#template' => 'test-with-context {{ lama }}',
'#context' => array('lama' => 'muuh'),
'#template' => 'test-with-context {{ llama }}',
'#context' => array('llama' => 'muuh'),
);
return $element;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment