8000 fix test · symfony/symfony@2c8c394 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2c8c394

Browse files
committed
fix test
1 parent 3b3fd5f commit 2c8c394

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Bundle/WebProfilerBundle/Tests/Controller/ProfilerControllerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,8 @@ public function testSearchResultsAction($withCsp)
285285
'limit' => 2,
286286
'panel' => null,
287287
'request' => $request,
288-
'csp_script_nonce' => 'dummy_nonce',
289-
'csp_style_nonce' => 'dummy_nonce',
288+
'csp_script_nonce' => $withCsp ? 'dummy_nonce' : null,
289+
'csp_style_nonce' => $withCsp ? 'dummy_nonce' : null,
290290
]));
291291

292292
$response = $controller->searchResultsAction($request, 'empty');

0 commit comments

Comments
 (0)
0