File tree Expand file tree Collapse file tree 2 files changed +17
-8
lines changed
dev/tests/integration/testsuite/Magento/Sales/_files Expand file tree Collapse file tree 2 files changed +17
-8
lines changed Original file line number Diff line number Diff line change 39
39
$ payment ->setMethod ('checkmo ' );
40
40
$ customerIdFromFixture = 1 ;
41
41
42
- // simple product item
42
+ /**
43
+ * simple product
44
+ */
43
45
$ simpleProductItem = $ objectManager ->create (\Magento \Sales \Model \Order \Item::class);
44
46
$ requestInfo = [
45
47
'qty ' => 1
55
57
->setStoreId (0 )
56
58
->setProductOptions (['info_buyRequest ' => $ requestInfo ]);
57
59
58
- // configurable product
59
-
60
+ /**
61
+ * configurable product
62
+ */
60
63
/** @var \Magento\Eav\Model\Config $eavConfig */
61
64
$ eavConfig = $ objectManager ->get (\Magento \Eav \Model \Config::class);
62
65
/** @var $attribute \Magento\Catalog\Model\ResourceModel\Eav\Attribute */
95
98
$ orderConfigurableItem ->setProductOptions (['info_buyRequest ' => $ requestInfo ]);
96
99
}
97
100
98
- // virtual product
101
+ /**
102
+ * virtual product
103
+ */
99
104
$ virtualProductItem = $ objectManager ->create (\Magento \Sales \Model \Order \Item::class);
100
105
$ requestInfo = [
101
106
'qty ' => 1
110
115
->setSku ($ virtualProduct ->getSku ())
111
116
->setStoreId (0 )
112
117
->setProductOptions (['info_buyRequest ' => $ requestInfo ]);
113
-
114
- // downloadable product
118
+ /**
119
+ * downloadable product
120
+ */
115
121
/** @var $linkCollection \Magento\Downloadable\Model\ResourceModel\Link\Collection */
116
122
$ linkCollection = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ()->create (
117
123
\Magento \Downloadable \Model \Link::class
142
148
->setStoreId ($ downloadableProduct ->getStoreId ())
143
149
->setProductOptions (['info_buyRequest ' => $ requestInfo ]);
144
150
145
- // bundle product
151
+ /**
152
+ * bundle product
153
+ */
146
154
/** @var $typeInstance \Magento\Bundle\Model\Product\Type */
147
155
$ typeInstance = $ bundleProduct ->getTypeInstance ();
148
156
$ typeInstance ->setStoreFilter ($ bundleProduct ->getStoreId (), $ bundleProduct );
Original file line number Diff line number Diff line change 4
4
* See COPYING.txt for license details.
5
5
*/
6
6
7
- require 'default_rollback.php ' ;
8
7
require __DIR__ . '/../../../Magento/Customer/_files/customer_rollback.php ' ;
8
+ require __DIR__ . '/../../../Magento/Downloadable/_files/product_downloadable_rollback.php ' ;
9
+ require 'default_rollback.php ' ;
You can’t perform that action at this time.
0 commit comments