File tree Expand file tree Collapse file tree 2 files changed +21
-2
lines changed
dev/tests/integration/testsuite/Magento/PageBuilder Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ protected function setUp()
37
37
* @magentoDataFixture Magento/PageBuilder/_files/product_totals/configurable_products.php
38
38
* @magentoDataFixture Magento/PageBuilder/_files/product_totals/bundle_product.php
39
39
* @magentoDataFixture Magento/GroupedProduct/_files/product_grouped_with_simple_out_of_stock.php
40
- * @magentoDataFixture Magento/GiftCard/_files/gift_card.php
41
40
* @param array condition
42
41
* @param int $expectedTotals
43
42
* @dataProvider productDataProvider
@@ -88,7 +87,7 @@ public function productDataProvider()
88
87
'attribute ' => 'category_ids ' ,
89
88
'value ' => '3 '
90
89
]
91
- ], [12 , 3 , 1 , 1 ]
90
+ ], [13 , 3 , 1 , 1 ]
92
91
],
93
92
[ // #2 sku with no matches
94
93
['1 ' => [
Original file line number Diff line number Diff line change @@ -263,3 +263,23 @@ function (Product $product) {
263
263
$ categoryLinkManagement ,
264
264
$ productRepository
265
265
);
266
+
267
+ // Create a gift card product
268
+ createTestProduct (
269
+ 'Simple Gift Card ' ,
270
+ 'gift-card ' ,
271
+ function (Product $ product ) {
272
+ $ product ->setPrice (10 );
273
+ $ product ->setTypeId (\Magento \GiftCard \Model \Catalog \Product \Type \Giftcard::TYPE_GIFTCARD );
274
+ $ product ->setStockData (['use_config_manage_stock ' => 0 ]);
275
+ $ product ->setCanSaveCustomOptions (true );
276
+ $ product ->setHasOptions (true );
277
+ $ product ->setAllowOpenAmount (1 );
278
+ $ product ->setGiftcardType (\Magento \GiftCard \Model \Giftcard::TYPE_VIRTUAL );
279
+ return $ product ;
280
+ },
281
+ $ objectManager ,
282
+ $ defaultAttributeSet ,
283
+ $ categoryLinkManagement ,
284
+ $ productRepository
285
+ );
You can’t perform that action at this time.
0 commit comments