File tree Expand file tree Collapse file tree 9 files changed +23
-39
lines changed
dev/tests/acceptance/tests/functional/Magento/FunctionalTest Expand file tree Collapse file tree 9 files changed +23
-39
lines changed Original file line number Diff line number Diff line change 12
12
<data key =" attribute_code" >url_key</data >
13
13
<data key =" value" unique =" suffix" >category</data >
14
14
</entity >
15
+ <entity name =" CustomAttributeProductUrlKey" type =" custom_attribute" >
16
+ <data key =" attribute_code" >url_key</data >
17
+ <data key =" value" unique =" suffix" >product</data >
18
+ </entity >
19
+ <entity name =" CustomAttributeCategoryIds" type =" custom_attribute_array" >
20
+ <data key =" attribute_code" >category_ids</data >
21
+ <var key =" value" entityType =" category" entityKey =" id" />
22
+ </entity >
15
23
</config >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 19
19
<data key =" status" >1</data >
20
20
<data key =" quantity" >100</data >
21
21
<required-entity type =" product_extension_attribute" >EavStockItem</required-entity >
22
+ <required-entity type =" custom_attribute_array" >CustomAttributeCategoryIds</required-entity >
22
23
</entity >
23
24
<entity name =" SimpleProduct" type =" product" >
24
25
<data key =" sku" unique =" suffix" >SimpleProduct</data >
29
30
<data key =" visibility" >4</data >
30
31
<data key =" status" >1</data >
31
32
<required-entity type =" product_extension_attribute" >EavStockItem</required-entity >
33
+ <required-entity type =" custom_attribute_array" >CustomAttributeCategoryIds</required-entity >
32
34
<!-- required-entity type="custom_attribute">CustomAttributeProductUrlKey</required-entity-->
33
35
</entity >
34
36
</config >
Original file line number Diff line number Diff line change 26
26
<value >product_link</value >
27
27
</array >
28
28
<array key =" custom_attributes" >
29
- <value >custom_attribute </value >
29
+ <value >custom_attribute_array </value >
30
30
</array >
31
31
<array key =" options" >
32
32
<value >product_option</value >
52
52
<value >product_link</value >
53
53
</array >
54
54
<array key =" custom_attributes" >
55
- <value >custom_attribute </value >
55
+ <value >custom_attribute_array </value >
56
56
</array >
57
57
<array key =" options" >
58
58
<value >product_option</value >
Original file line number Diff line number Diff line change 19
19
</annotations >
20
20
<before >
21
21
<createData entity =" SimpleSubCategory" mergeKey =" simplecategory" />
22
- <entity name =" categoryLink" type =" custom_attribute" mergeKey =" categoryLink" >
23
- <data key =" attribute_code" >category_ids</data >
24
- <data key =" value" >$$simplecategory.id$$</data >
25
- </entity >
26
22
<createData entity =" SimpleProduct" mergeKey =" simpleproduct1" >
27
- <required-entity name = " categoryLink " />
23
+ <required-entity persistedKey = " simplecategory " />
28
24
</createData >
29
25
<createData entity =" Simple_US_Customer" mergeKey =" simpleuscustomer" />
30
26
</before >
Original file line number Diff line number Diff line change 19
19
</annotations >
20
20
<before >
21
21
<createData entity =" _defaultCategory" mergeKey =" createCategory" />
22
- <entity name =" categoryLink" type =" custom_attribute" mergeKey =" categoryLink" >
23
- <data key =" attribute_code" >category_ids</data >
24
- <data key =" value" >$$createCategory.id$$</data >
25
- </entity >
26
22
<createData entity =" _defaultProduct" mergeKey =" createProduct" >
27
- <required-entity name = " categoryLink " />
23
+ <required-entity persistedKey = " createCategory " />
28
24
</createData >
29
25
</before >
30
26
<after >
Original file line number Diff line number Diff line change 12
12
<field key =" attribute_code" >string</field >
13
13
<field key =" value" >string</field >
14
14
</operation >
15
+ <operation name =" CreateCustomAttributeArray" dataType =" custom_attribute_array" type =" create" >
16
+ <field key =" attribute_code" >string</field >
17
+ <array key =" value" >
18
+ <value >string</value >
19
+ </array >
20
+ </operation >
15
21
<operation name =" UpdateCustomAttribute" dataType =" custom_attribute" type =" update" >
16
22
<field key =" attribute_code" >string</field >
17
23
<field key =" value" >string</field >
Original file line number Diff line number Diff line change 19
19
</annotations >
20
20
<before >
21
21
<createData entity =" _defaultCategory" mergeKey =" createCategory" />
22
- <entity name =" categoryLink" type =" custom_attribute" mergeKey =" categoryLink" >
23
- <data key =" attribute_code" >category_ids</data >
24
- <data key =" value" >$$createCategory.id$$</data >
25
- </entity >
26
22
<createData entity =" _defaultProduct" mergeKey =" createProduct" >
27
- <required-entity name = " categoryLink " />
23
+ <required-entity persistedKey = " createCategory " />
28
24
</createData >
29
25
</before >
30
26
Original file line number Diff line number Diff line change 15
15
</annotations >
16
16
<before >
17
17
<createData entity =" simplesubcategory" mergeKey =" simplecategory" />
18
- <entity name =" categoryLink" type =" custom_attribute" mergeKey =" categoryLink" >
19
- <data key =" attribute_code" >category_ids</data >
20
- <data key =" value" >$$simplecategory.id$$</data >
21
- </entity >
22
-
23
18
<createData entity =" simpleproduct" mergeKey =" simpleproduct1" >
24
- <required-entity name = " categoryLink " />
19
+ <required-entity persistedKey = " simplecategory " />
25
20
</createData >
26
21
<createData entity =" simpleproduct" mergeKey =" simpleproduct2" >
27
- <required-entity name =" categoryLink" />
22
+ <required-entity persistedKey =" categoryLink" />
28
23
</createData >
29
24
</before >
30
25
<after >
You can’t perform that action at this time.
0 commit comments