@@ -354,8 +354,6 @@ protected function tearDown(): void
354354 public function testExecuteWithJsonAndAsJsVarnameReturnsDirectly (): void
355355 {
356356 $ renderedContent = '{"sidebar":"test content"} ' ;
357- // Use concatenation to avoid Health Index false positive for inline JS detection
358- $ jsVarName = 'i ' . 'Frame ' . 'Response ' ;
359357
360358 // Setup request parameters: json=true, as_js_varname=true
361359 $ this ->request ->expects ($ this ->any ())
@@ -364,7 +362,7 @@ public function testExecuteWithJsonAndAsJsVarnameReturnsDirectly(): void
364362 ['store_id ' , null , '1 ' ],
365363 ['json ' , null , true ],
366364 ['block ' , null , 'sidebar ' ],
367- ['as_js_varname ' , null , $ jsVarName ]
365+ ['as_js_varname ' , null , ' true ' ]
368366 ]);
369367
370368 // Setup page factory and layout
@@ -422,8 +420,6 @@ public function testExecuteWithJsonAndAsJsVarnameReturnsDirectly(): void
422420 public function testExecuteWithPlainAndAsJsVarnameStoresInSessionAndRedirects (): void
423421 {
424422 $ renderedContent = '<div>test content</div> ' ;
425- // Use concatenation to avoid Health Index false positive for inline JS detection
426- $ jsVarName = 'i ' . 'Frame ' . 'Response ' ;
427423
428424 // Setup request parameters: json=false, as_js_varname=true
429425 $ this ->request ->expects ($ this ->any ())
@@ -432,7 +428,7 @@ public function testExecuteWithPlainAndAsJsVarnameStoresInSessionAndRedirects():
432428 ['store_id ' , null , '1 ' ],
433429 ['json ' , null , false ],
434430 ['block ' , null , 'sidebar ' ],
435- ['as_js_varname ' , null , $ jsVarName ]
431+ ['as_js_varname ' , null , ' true ' ]
436432 ]);
437433
438434 // Setup page factory and layout
0 commit comments