Skip to content

Commit b58f831

Browse files
authoredMar 14, 2025··
Update SecurityPolicyTest.php
1 parent f56fb2f commit b58f831

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed
 

‎modules/system/tests/twig/SecurityPolicyTest.php

+8-6
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace System\Tests\Twig;
44

55
use Cms\Classes\Controller;
6-
use Cms\Classes\Page;
76
use Cms\Classes\Theme;
87
use System\Tests\Bootstrap\TestCase;
98
use Twig\Environment;
@@ -135,11 +134,14 @@ public function testCannotAccessModelQuery()
135134
{
136135
$this->expectException(\Twig\Sandbox\SecurityNotAllowedMethodError::class);
137136

138-
$this->renderTwigInCmsController('
139-
{{ dump(model.getQuery) }}
140-
', [
141-
'model' => new \Winter\Storm\Database\Model(),
142-
]);
137+
$this->renderTwigInCmsController(
138+
'
139+
{{ dump(model.getQuery) }}
140+
',
141+
[
142+
'model' => new \Winter\Storm\Database\Model(),
143+
]
144+
);
143145
}
144146

145147
public function testCannotFillAModel()

0 commit comments

Comments
 (0)