File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -355,6 +355,7 @@ public function getIdentities()
355
355
}
356
356
357
357
foreach ($ this ->_getProductCollection () as $ item ) {
358
+ // phpcs:ignore Magento2.Performance.ForeachArrayMerge
358
359
$ identities = array_merge ($ identities , $ item ->getIdentities ());
359
360
}
360
361
@@ -369,7 +370,7 @@ public function getIdentities()
369
370
*/
370
371
public function getAddToCartPostParams (Product $ product )
371
372
{
372
- $ url = $ this ->getAddToCartUrl ($ product );
373
+ $ url = $ this ->getAddToCartUrl ($ product, [ ' _escape ' => false ] );
373
374
return [
374
375
'action ' => $ url ,
375
376
'data ' => [
Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ public function testGetAddToCartPostParams()
217
217
->will ($ this ->returnValue (true ));
218
218
$ this ->cartHelperMock ->expects ($ this ->any ())
219
219
->method ('getAddUrl ' )
220
- ->with ($ this ->equalTo ($ this ->productMock ), $ this ->equalTo ([]))
220
+ ->with ($ this ->equalTo ($ this ->productMock ), $ this ->equalTo ([' _escape ' => false ]))
221
221
->will ($ this ->returnValue ($ url ));
222
222
$ this ->productMock ->expects ($ this ->once ())
223
223
->method ('getEntityId ' )
You can’t perform that action at this time.
0 commit comments