File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
app/code/Magento/Catalog/etc
dev/tests/api-functional/testsuite/Magento/Catalog/Api Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 82
82
<resource ref =" Magento_Catalog::attributes_attributes" />
83
83
</resources >
84
84
</route >
85
- <route url =" /V1/products/attributes/:attributeId " method =" PUT" >
85
+ <route url =" /V1/products/attributes/:attributeCode " method =" PUT" >
86
86
<service class =" Magento\Catalog\Api\ProductAttributeRepositoryInterface" method =" save" />
87
87
<resources >
88
88
<resource ref =" Magento_Catalog::attributes_attributes" />
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ public function testUpdate()
111
111
112
112
$ attributeData = [
113
113
'attribute ' => [
114
- 'attribute_code ' => $ attributeCode ,
114
+ 'attribute_id ' => $ attribute [ ' attribute_id ' ] ,
115
115
'frontend_labels ' => [
116
116
['store_id ' => 0 , 'label ' => 'front_lbl_new ' ],
117
117
],
@@ -123,7 +123,7 @@ public function testUpdate()
123
123
124
124
$ serviceInfo = [
125
125
'rest ' => [
126
- 'resourcePath ' => self ::RESOURCE_PATH . '/ ' . $ attribute [ ' attribute_id ' ] ,
126
+ 'resourcePath ' => self ::RESOURCE_PATH . '/ ' . $ attributeCode ,
127
127
'httpMethod ' => \Magento \Framework \Webapi \Rest \Request::HTTP_METHOD_PUT ,
128
128
],
129
129
'soap ' => [
@@ -134,7 +134,7 @@ public function testUpdate()
134
134
];
135
135
136
136
if (TESTS_WEB_API_ADAPTER == self ::ADAPTER_SOAP ) {
137
- $ attributeData ['attribute ' ]['attributeId ' ] = $ attribute [ ' attribute_id ' ] ;
137
+ $ attributeData ['attribute ' ]['attributeCode ' ] = $ attributeCode ;
138
138
}
139
139
$ result = $ this ->_webApiCall ($ serviceInfo , $ attributeData );
140
140
You can’t perform that action at this time.
0 commit comments