Browse Source

Fix deprecated autoescape option

Using "true" as the default strategy is deprecated. Use "html" instead
Sullivan SENECHAL 9 years ago
parent
commit
fa3cd64fd9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Tests/Twig/Extension/SonataAdminExtensionTest.php

+ 1 - 1
Tests/Twig/Extension/SonataAdminExtensionTest.php

@@ -93,7 +93,7 @@ class SonataAdminExtensionTest extends \PHPUnit_Framework_TestCase
             __DIR__.'/../../../Resources/views/CRUD',
         ));
 
-        $this->environment = new \Twig_Environment($loader, array('strict_variables' => true, 'cache' => false, 'autoescape' => true, 'optimizations' => 0));
+        $this->environment = new \Twig_Environment($loader, array('strict_variables' => true, 'cache' => false, 'autoescape' => 'html', 'optimizations' => 0));
         $this->environment->addExtension($this->twigExtension);
 
         // translation extension