-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1143 from magento-okapis/MAGETWO-55200-public_wsd…
…l-2.1 Magetwo 55200 public wsdl 2.1
- Loading branch information
Showing
3 changed files
with
64 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
dev/tests/integration/testsuite/Magento/Webapi/Controller/SoapTest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php | ||
/** | ||
* Copyright © 2013-2017 Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
|
||
namespace Magento\Webapi\Controller; | ||
|
||
class SoapTest extends \PHPUnit_Framework_TestCase | ||
{ | ||
/** | ||
* @var \Magento\Webapi\Controller\Soap | ||
*/ | ||
protected $soapController; | ||
|
||
/** | ||
* @var \Magento\Framework\ObjectManagerInterface | ||
*/ | ||
protected $objectManager; | ||
|
||
protected function setUp() | ||
{ | ||
$this->objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager(); | ||
$this->soapController = $this->objectManager->get(\Magento\Webapi\Controller\Soap::class); | ||
} | ||
|
||
/* | ||
* Get the public wsdl with anonymous credentials | ||
*/ | ||
public function testDispatchWsdlRequest() | ||
{ | ||
$request = $this->objectManager->get(\Magento\Framework\Webapi\Request::class); | ||
$request->setParam(\Magento\Webapi\Model\Soap\Server::REQUEST_PARAM_LIST_WSDL, true); | ||
$response = $this->soapController->dispatch($request); | ||
$decodedWsdl = json_decode($response->getContent(), true); | ||
$this->assertArrayHasKey("customerAccountManagementV1", $decodedWsdl); | ||
$this->assertArrayHasKey("integrationAdminTokenServiceV1", $decodedWsdl); | ||
} | ||
} |