public function TwigSettingsTest::testTwigInlineWithAutoReload in Drupal 8
Same name and namespace in other branches
- 9 core/modules/system/tests/src/Functional/Theme/TwigSettingsTest.php \Drupal\Tests\system\Functional\Theme\TwigSettingsTest::testTwigInlineWithAutoReload()
Tests twig inline templates with auto_reload.
File
- core/
modules/ system/ tests/ src/ Functional/ Theme/ TwigSettingsTest.php, line 127
Class
- TwigSettingsTest
- Tests overriding Twig engine settings via settings.php.
Namespace
Drupal\Tests\system\Functional\ThemeCode
public function testTwigInlineWithAutoReload() {
$parameters = $this->container
->getParameter('twig.config');
$parameters['auto_reload'] = TRUE;
$parameters['debug'] = TRUE;
$this
->setContainerParameter('twig.config', $parameters);
$this
->rebuildContainer();
$this
->drupalGet('theme-test/inline-template-test');
$this
->assertSession()
->statusCodeEquals(200);
$this
->drupalGet('theme-test/inline-template-test');
$this
->assertSession()
->statusCodeEquals(200);
}