Skip to content

Commit 58a05ec

Browse files
committed
B2B-1653: Add MFTF test for MC-38408
- Moving MFTF entities to correct modules - Updating import grouped product test
1 parent 16c1f58 commit 58a05ec

File tree

5 files changed

+131
-114
lines changed

5 files changed

+131
-114
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<entities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:DataGenerator/etc/dataProfileSchema.xsd">
11+
<entity name="AdobeBaseContentExportImport" extends="AdobeBaseContent" type="ImageContent">
12+
<data key="name">adobe-base.jpg</data>
13+
</entity>
14+
<entity name="ApiProductAttributeMediaGalleryForExportImport3" extends="ApiProductAttributeMediaGalleryEntryTestImage2" type="ProductAttributeMediaGalleryEntry">
15+
<data key="label">Adobe Base</data>
16+
<requiredEntity type="ImageContent">AdobeBaseContentExportImport</requiredEntity>
17+
</entity>
18+
</entities>

app/code/Magento/GroupedImportExport/Test/Mftf/Data/ImportData.xml

Lines changed: 28 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -9,78 +9,84 @@
99
<entities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:DataGenerator/etc/dataProfileSchema.xsd">
1111
<!-- Categories -->
12-
<entity name="Import_Grouped" type="category">
13-
<data key="name">import-grouped</data>
14-
<data key="name_lwr">import-grouped</data>
12+
<entity name="ImportCategory_Grouped" type="category">
13+
<data key="name">import-category-grouped</data>
14+
<data key="name_lwr">import-category-grouped</data>
1515
<data key="is_active">true</data>
1616
<data key="include_in_menu">true</data>
17-
<data key="urlKey">import-grouped</data>
17+
<data key="urlKey">import-category-grouped</data>
1818
</entity>
1919

2020
<!-- Products -->
21-
<entity name="ImportSimple1_Grouped" type="product">
22-
<data key="name">import-simple1-grouped</data>
23-
<data key="sku">import-simple1-grouped</data>
21+
<entity name="ImportProductSimple1_Grouped" type="product">
22+
<data key="name">import-product-simple1-grouped</data>
23+
<data key="sku">import-product-simple1-grouped</data>
2424
<data key="type_id">simple</data>
2525
<data key="attribute_set_id">4</data>
26+
<data key="attributeSetText">Default</data>
2627
<data key="price">11.00</data>
2728
<data key="visibility">4</data>
2829
<data key="status">1</data>
30+
<data key="statusText">Enabled</data>
2931
<data key="quantity">101</data>
3032
<data key="groupedDefaultQuantity">3</data>
3133
<data key="groupedPosition">1</data>
32-
<data key="urlKey">import-simple1-grouped</data>
34+
<data key="urlKey">import-product-simple1-grouped</data>
3335
<data key="weight">1</data>
34-
<data key="thumbnailImage">/m/a/magento-logo.png</data>
36+
<data key="thumbnailImage">/m/a/magento-logo</data>
3537
<requiredEntity type="product_extension_attribute">EavStockItem</requiredEntity>
3638
<requiredEntity type="custom_attribute_array">CustomAttributeCategoryIds</requiredEntity>
3739
</entity>
38-
<entity name="ImportSimple2_Grouped" type="product">
39-
<data key="name">import-simple2-grouped</data>
40-
<data key="sku">import-simple2-grouped</data>
40+
<entity name="ImportProductSimple2_Grouped" type="product">
41+
<data key="name">import-product-simple2-grouped</data>
42+
<data key="sku">import-product-simple2-grouped</data>
4143
<data key="type_id">simple</data>
4244
<data key="attribute_set_id">4</data>
45+
<data key="attributeSetText">Default</data>
4346
<data key="price">12.00</data>
4447
<data key="visibility">4</data>
4548
<data key="status">1</data>
49+
<data key="statusText">Enabled</data>
4650
<data key="quantity">102</data>
4751
<data key="groupedDefaultQuantity">2</data>
4852
<data key="groupedPosition">0</data>
49-
<data key="urlKey">import-simple2-grouped</data>
53+
<data key="urlKey">import-product-simple2-grouped</data>
5054
<data key="weight">2</data>
51-
<data key="thumbnailImage">/t/e/test_image.jpg</data>
55+
<data key="thumbnailImage">/t/e/test_image</data>
5256
<requiredEntity type="product_extension_attribute">EavStockItem</requiredEntity>
5357
<requiredEntity type="custom_attribute_array">CustomAttributeCategoryIds</requiredEntity>
5458
</entity>
55-
<entity name="ImportSimple3_Grouped" type="product">
56-
<data key="name">import-simple3-grouped</data>
57-
<data key="sku">import-simple3-grouped</data>
59+
<entity name="ImportProductSimple3_Grouped" type="product">
60+
<data key="name">import-product-simple3-grouped</data>
61+
<data key="sku">import-product-simple3-grouped</data>
5862
<data key="type_id">simple</data>
5963
<data key="attribute_set_id">4</data>
64+
<data key="attributeSetText">Default</data>
6065
<data key="price">13.00</data>
6166
<data key="visibility">4</data>
6267
<data key="status">1</data>
68+
<data key="statusText">Enabled</data>
6369
<data key="quantity">103</data>
6470
<data key="groupedDefaultQuantity">1</data>
6571
<data key="groupedPosition">2</data>
66-
<data key="urlKey">import-simple3-grouped</data>
72+
<data key="urlKey">import-product-simple3-grouped</data>
6773
<data key="weight">3</data>
68-
<data key="thumbnailImage">/a/d/adobe-base.jpg</data>
74+
<data key="thumbnailImage">/a/d/adobe-base</data>
6975
<requiredEntity type="product_extension_attribute">EavStockItem</requiredEntity>
7076
<requiredEntity type="custom_attribute_array">CustomAttributeCategoryIds</requiredEntity>
7177
</entity>
7278
<entity name="ImportProduct_Grouped" type="product">
7379
<data key="fileName">import_grouped_product.csv</data>
7480
<data key="importSummary">Created: 4, Updated: 0, Deleted: 0</data>
75-
<data key="name">import-grouped-product</data>
76-
<data key="sku">import-grouped-product</data>
81+
<data key="name">import-product-grouped</data>
82+
<data key="sku">import-product-grouped</data>
7783
<data key="type_id">grouped</data>
7884
<data key="attribute_set_id">4</data>
7985
<data key="price"/>
8086
<data key="visibility">4</data>
8187
<data key="status">1</data>
8288
<data key="quantity">0</data>
8389
<data key="weight">1</data>
84-
<data key="urlKey">import-grouped-product</data>
90+
<data key="urlKey">import-product-grouped</data>
8591
</entity>
8692
</entities>

0 commit comments

Comments
 (0)