@@ -64,24 +64,6 @@ protected function getProduct($sku)
64
64
return $ response ;
65
65
}
66
66
67
- protected function getProduct ($ sku )
68
- {
69
- $ serviceInfo = [
70
- 'rest ' => [
71
- 'resourcePath ' => self ::RESOURCE_PATH . '/ ' . $ sku ,
72
- 'httpMethod ' => \Magento \Framework \Webapi \Rest \Request::HTTP_METHOD_GET ,
73
- ],
74
- 'soap ' => [
75
- 'service ' => self ::SERVICE_NAME ,
76
- 'serviceVersion ' => self ::SERVICE_VERSION ,
77
- 'operation ' => self ::SERVICE_NAME . 'Get ' ,
78
- ],
79
- ];
80
-
81
- $ response = $ this ->_webApiCall ($ serviceInfo , ['sku ' => $ sku ]);
82
- return $ response ;
83
- }
84
-
85
67
public function testGetNoSuchEntityException ()
86
68
{
87
69
$ invalidSku = '(nonExistingSku) ' ;
@@ -468,30 +450,6 @@ protected function updateProduct($product)
468
450
return $ response ;
469
451
}
470
452
471
- protected function updateProduct ($ product )
472
- {
473
- $ sku = $ product [ProductInterface::SKU ];
474
- if (TESTS_WEB_API_ADAPTER == self ::ADAPTER_REST ) {
475
- $ product [ProductInterface::SKU ] = null ;
476
- }
477
-
478
- $ serviceInfo = [
479
- 'rest ' => [
480
- 'resourcePath ' => self ::RESOURCE_PATH . '/ ' . $ sku ,
481
- 'httpMethod ' => \Magento \Framework \Webapi \Rest \Request::HTTP_METHOD_PUT ,
482
- ],
483
- 'soap ' => [
484
- 'service ' => self ::SERVICE_NAME ,
485
- 'serviceVersion ' => self ::SERVICE_VERSION ,
486
- 'operation ' => self ::SERVICE_NAME . 'Save ' ,
487
- ],
488
- ];
489
- $ requestData = ['product ' => $ product ];
490
- $ response = $ this ->_webApiCall ($ serviceInfo , $ requestData );
491
- return $ response ;
492
- }
493
-
494
-
495
453
/**
496
454
* @magentoApiDataFixture Magento/Catalog/_files/product_simple.php
497
455
*/
0 commit comments