mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-16 20:36:33 +00:00
Fix tests
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user