Fix tests

This commit is contained in:
Fabien Potencier
2026-05-29 09:30:54 +02:00
parent 86f3b3a1f2
commit 118938b191
+2 -2
View File
@@ -228,7 +228,7 @@ class SandboxStateChangeTest extends TestCase
$policy = new SecurityPolicy(
allowedTags: ['extends', 'block'],
allowedFilters: [],
allowedFunctions: ['range'],
allowedFunctions: ['parent', 'range'],
);
[$twig, $sandbox] = $this->build($templates, $policy, false);
@@ -250,7 +250,7 @@ class SandboxStateChangeTest extends TestCase
$policy = new SecurityPolicy(
allowedTags: ['extends', 'block'],
allowedFilters: ['first'],
allowedFunctions: [],
allowedFunctions: ['parent'],
);
[$twig, $sandbox] = $this->build($templates, $policy, false);