diff --git a/core/modules/system/src/Tests/Theme/TwigEnvironmentTest.php b/core/modules/system/src/Tests/Theme/TwigEnvironmentTest.php index 6ecabec..cee6116 100644 --- a/core/modules/system/src/Tests/Theme/TwigEnvironmentTest.php +++ b/core/modules/system/src/Tests/Theme/TwigEnvironmentTest.php @@ -43,26 +43,6 @@ public function testInlineTemplate() { '#context' => array('unsafe_content' => $unsafe_string), ); $this->assertEqual(drupal_render($element), 'test-with-context ' . String::checkPlain($unsafe_string)); - - // Enable twig_auto_reload and twig_debug. - $settings = Settings::getAll(); - $settings['twig_debug'] = TRUE; - $settings['twig_auto_reload'] = TRUE; - - new Settings($settings); - $this->container = $this->kernel->rebuildContainer(); - \Drupal::setContainer($this->container); - - $element = array(); - $element['test'] = array( - '#type' => 'inline_template', - '#template' => 'test-with-context {{ lama }}', - '#context' => array('lama' => 'muuh'), - ); - $element_copy = $element; - // Render it twice so that twig caching is triggered. - $this->assertEqual(drupal_render($element), 'test-with-context muuh'); - $this->assertEqual(drupal_render($element_copy), 'test-with-context muuh'); } }