We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
wintercms
Learn more about funding links in repositories.
Report abuse
1 parent f56fb2f commit b58f831Copy full SHA for b58f831
modules/system/tests/twig/SecurityPolicyTest.php
@@ -3,7 +3,6 @@
3
namespace System\Tests\Twig;
4
5
use Cms\Classes\Controller;
6
-use Cms\Classes\Page;
7
use Cms\Classes\Theme;
8
use System\Tests\Bootstrap\TestCase;
9
use Twig\Environment;
@@ -135,11 +134,14 @@ public function testCannotAccessModelQuery()
135
134
{
136
$this->expectException(\Twig\Sandbox\SecurityNotAllowedMethodError::class);
137
138
- $this->renderTwigInCmsController('
139
- {{ dump(model.getQuery) }}
140
- ', [
141
- 'model' => new \Winter\Storm\Database\Model(),
142
- ]);
+ $this->renderTwigInCmsController(
+ '
+ {{ dump(model.getQuery) }}
+ ',
+ [
+ 'model' => new \Winter\Storm\Database\Model(),
143
+ ]
144
+ );
145
}
146
147
public function testCannotFillAModel()
0 commit comments