Skip to content

Commit 388b0d9

Browse files
committed
AC-15893: Admin Order Creation: Session Size Overflow When Adding 20+ Products (Session size exceeded 256KB limit)
Fix magento health index failure
1 parent 93a942e commit 388b0d9

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

app/code/Magento/Sales/Test/Unit/Controller/Adminhtml/Order/Create/LoadBlockTest.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)