Skip to content

Commit bc5b9b0

Browse files
committed
MAGETWO-66064: Remove usages of unserialize in module Magento/Catalog
1 parent 2621e60 commit bc5b9b0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

dev/tests/integration/testsuite/Magento/Catalog/Model/Product/Type/AbstractTypeTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,7 @@ public function testGetOrderOptions()
255255

256256
$product->load(1);
257257
// fixture
258-
$customOption = new \Magento\Framework\DataObject(['qty' => 2]);
259-
$product->addCustomOption('info_buyRequest', json_encode($customOption->getData()));
258+
$product->addCustomOption('info_buyRequest', json_encode(['qty' => 2]));
260259
foreach ($product->getOptions() as $option) {
261260
if ('field' == $option->getType()) {
262261
$product->addCustomOption('option_ids', $option->getId());

0 commit comments

Comments
 (0)