diff --git a/tests/App/AppKernel.php b/tests/App/AppKernel.php
index <HASH>..<HASH> 100644
--- a/tests/App/AppKernel.php
+++ b/tests/App/AppKernel.php
@@ -120,7 +120,7 @@ final class AppKernel extends Kernel
 
         $containerBuilder->loadFromExtension('twig', [
             'default_path' => sprintf('%s/templates', $this->getProjectDir()),
-            'strict_variables' => '%kernel.debug%',
+            'strict_variables' => true,
             'exception_controller' => null,
             'form_themes' => ['@SonataAdmin/Form/form_admin_fields.html.twig'],
         ]);
Use strict_variables in tests (#<I>)