Skip to content

Commit 6905d52

Browse files
author
Robert He
committed
MAGETWO-55200: Allowing Web API listing to be public
- fix static code failures
1 parent b43e20e commit 6905d52

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

app/code/Magento/Webapi/Model/Rest/Swagger/Generator.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@
1313
use Magento\Webapi\Model\Rest\SwaggerFactory;
1414
use Magento\Framework\Webapi\Authorization;
1515
use Magento\Framework\Webapi\Exception as WebapiException;
16-
use Magento\Framework\Exception\AuthenticationException;
17-
use Magento\Framework\Exception\AuthorizationException;
18-
use Magento\Framework\Exception\LocalizedException;
19-
use Magento\Framework\Exception\NoSuchEntityException;
20-
use Magento\Framework\Phrase;
2116
use Magento\Framework\App\ProductMetadataInterface;
2217
use \Magento\Framework\Api\SimpleDataObjectConverter;
2318
use Magento\Webapi\Model\ServiceMetadata;

dev/tests/integration/testsuite/Magento/Webapi/Controller/SoapTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ public function testDispatchWsdlRequest()
3232
$request = $this->objectManager->get(\Magento\Framework\Webapi\Request::class);
3333
$request->setParam(\Magento\Webapi\Model\Soap\Server::REQUEST_PARAM_LIST_WSDL, true);
3434
$response = $this->soapController->dispatch($request);
35-
$decoded_wsdl = json_decode($response->getContent(), true);
36-
$this->assertArrayHasKey("customerAccountManagementV1", $decoded_wsdl);
37-
$this->assertArrayHasKey("integrationAdminTokenServiceV1", $decoded_wsdl);
35+
$decodedWsdl = json_decode($response->getContent(), true);
36+
$this->assertArrayHasKey("customerAccountManagementV1", $decodedWsdl);
37+
$this->assertArrayHasKey("integrationAdminTokenServiceV1", $decodedWsdl);
3838
}
39-
}
39+
}

0 commit comments

Comments
 (0)