Skip to content

Commit 6c1de59

Browse files
committed
MC-32201: Reorder functionality (test coverage)
1 parent 4e70c4d commit 6c1de59

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

dev/tests/integration/testsuite/Magento/Sales/_files/order_with_different_types_of_product.php

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@
3939
$payment->setMethod('checkmo');
4040
$customerIdFromFixture = 1;
4141

42-
// simple product item
42+
/**
43+
* simple product
44+
*/
4345
$simpleProductItem = $objectManager->create(\Magento\Sales\Model\Order\Item::class);
4446
$requestInfo = [
4547
'qty' => 1
@@ -55,8 +57,9 @@
5557
->setStoreId(0)
5658
->setProductOptions(['info_buyRequest' => $requestInfo]);
5759

58-
// configurable product
59-
60+
/**
61+
* configurable product
62+
*/
6063
/** @var \Magento\Eav\Model\Config $eavConfig */
6164
$eavConfig = $objectManager->get(\Magento\Eav\Model\Config::class);
6265
/** @var $attribute \Magento\Catalog\Model\ResourceModel\Eav\Attribute */
@@ -95,7 +98,9 @@
9598
$orderConfigurableItem->setProductOptions(['info_buyRequest' => $requestInfo]);
9699
}
97100

98-
// virtual product
101+
/**
102+
* virtual product
103+
*/
99104
$virtualProductItem = $objectManager->create(\Magento\Sales\Model\Order\Item::class);
100105
$requestInfo = [
101106
'qty' => 1
@@ -110,8 +115,9 @@
110115
->setSku($virtualProduct->getSku())
111116
->setStoreId(0)
112117
->setProductOptions(['info_buyRequest' => $requestInfo]);
113-
114-
// downloadable product
118+
/**
119+
* downloadable product
120+
*/
115121
/** @var $linkCollection \Magento\Downloadable\Model\ResourceModel\Link\Collection */
116122
$linkCollection = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create(
117123
\Magento\Downloadable\Model\Link::class
@@ -142,7 +148,9 @@
142148
->setStoreId($downloadableProduct->getStoreId())
143149
->setProductOptions(['info_buyRequest' => $requestInfo]);
144150

145-
// bundle product
151+
/**
152+
* bundle product
153+
*/
146154
/** @var $typeInstance \Magento\Bundle\Model\Product\Type */
147155
$typeInstance = $bundleProduct->getTypeInstance();
148156
$typeInstance->setStoreFilter($bundleProduct->getStoreId(), $bundleProduct);

dev/tests/integration/testsuite/Magento/Sales/_files/order_with_different_types_of_product_rollback.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
require 'default_rollback.php';
87
require __DIR__ . '/../../../Magento/Customer/_files/customer_rollback.php';
8+
require __DIR__ . '/../../../Magento/Downloadable/_files/product_downloadable_rollback.php';
9+
require 'default_rollback.php';

0 commit comments

Comments
 (0)