File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
app/code/Magento/Webapi/Model/Rest/Swagger
dev/tests/api-functional/testsuite/Magento/Webapi Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -204,7 +204,10 @@ protected function getGeneralInfo()
204204 protected function generatePathInfo ($ methodName , $ httpMethodData , $ tagName )
205205 {
206206 $ methodData = $ httpMethodData [Converter::KEY_METHOD ];
207- $ operationId = $ this ->typeProcessor ->getOperationName ($ tagName , $ methodData [Converter::KEY_METHOD ]) . ucfirst ($ methodName );
207+
208+ $ operationId = $ this ->typeProcessor ->getOperationName ($ tagName , $ methodData [Converter::KEY_METHOD ]);
209+ $ operationId .= ucfirst ($ methodName );
210+
208211 $ pathInfo = [
209212 'tags ' => [$ tagName ],
210213 'description ' => $ methodData ['documentation ' ],
Original file line number Diff line number Diff line change 1010
1111use Magento \TestFramework \Helper \Bootstrap ;
1212use Magento \Framework \App \ProductMetadataInterface ;
13+ use Magento \Store \Model \StoreManagerInterface ;
1314
1415/**
1516 * Test REST schema generation mechanisms.
@@ -34,10 +35,10 @@ protected function setUp()
3435 {
3536 $ this ->_markTestAsRestOnly ("JSON generation tests are intended to be executed for REST adapter only. " );
3637
37- $ this ->storeCode = Bootstrap::getObjectManager ()->get (\ Magento \ Store \ Model \ StoreManagerInterface::class)
38+ $ this ->storeCode = Bootstrap::getObjectManager ()->get (StoreManagerInterface::class)
3839 ->getStore ()->getCode ();
3940
40- $ this ->productMetadata = Bootstrap::getObjectManager ()->get (\ Magento \ Framework \ App \ ProductMetadataInterface::class);
41+ $ this ->productMetadata = Bootstrap::getObjectManager ()->get (ProductMetadataInterface::class);
4142
4243 parent ::setUp ();
4344 }
@@ -197,7 +198,7 @@ public function getExpectedMultiServiceData()
197198 'required ' => true
198199 ],
199200 [
200- 'name ' => '$body ' ,
201+ 'name ' => 'testModule5AllSoapAndRestV1NestedUpdatePutBody ' ,
201202 'in ' => 'body ' ,
202203 'schema ' => [
203204 'required ' => [
You can’t perform that action at this time.
0 commit comments