Ensures Twig template auto reload setting can be overridden.
function testTwigAutoReloadOverride() {
// Enable auto reload and rebuild the service container.
$this
->settingsSet('twig_auto_reload', TRUE);
$this
->rebuildContainer();
// Check isAutoReload() via the Twig service container.
$this
->assertTrue(drupal_container()
->get('twig')
->isAutoReload(), 'Automatic reloading of Twig templates enabled.');
// Disable auto reload and check the service container again.
$this
->settingsSet('twig_auto_reload', FALSE);
$this
->rebuildContainer();
$this
->assertFalse(drupal_container()
->get('twig')
->isAutoReload(), 'Automatic reloading of Twig templates disabled.');
}