diff --git a/core/modules/system/src/Tests/Theme/TwigEnvironmentTest.php b/core/modules/system/src/Tests/Theme/TwigEnvironmentTest.php
index 3f90e8d..e555f73 100644
--- a/core/modules/system/src/Tests/Theme/TwigEnvironmentTest.php
+++ b/core/modules/system/src/Tests/Theme/TwigEnvironmentTest.php
@@ -40,7 +40,12 @@ public function testInlineTemplate() {
       '#context' => array('lama' => 'muuh'),
     );
     $this->assertEqual(drupal_render($element), 'test-with-context muuh');
+
+    // Enable twig_auto_reload and twig_cache.
+    $this->settingsSet('twig_auto_reload', TRUE);
+
+    // Ensure to call it twice that twig caching is triggered.
+    $this->assertEqual(drupal_render($element), 'test-with-context muuh');
   }
 
 }
-
