We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2621e60 commit bc5b9b0Copy full SHA for bc5b9b0
dev/tests/integration/testsuite/Magento/Catalog/Model/Product/Type/AbstractTypeTest.php
@@ -255,8 +255,7 @@ public function testGetOrderOptions()
255
256
$product->load(1);
257
// fixture
258
- $customOption = new \Magento\Framework\DataObject(['qty' => 2]);
259
- $product->addCustomOption('info_buyRequest', json_encode($customOption->getData()));
+ $product->addCustomOption('info_buyRequest', json_encode(['qty' => 2]));
260
foreach ($product->getOptions() as $option) {
261
if ('field' == $option->getType()) {
262
$product->addCustomOption('option_ids', $option->getId());
0 commit comments