Skip to content

Commit 2011fbc

Browse files
committed
MC-40562: Stabilize Web-API tests
1 parent 7030df0 commit 2011fbc

File tree

1 file changed

+5
-5
lines changed
  • dev/tests/api-functional/framework/Magento/TestFramework/TestCase/Webapi/Adapter

1 file changed

+5
-5
lines changed

dev/tests/api-functional/framework/Magento/TestFramework/TestCase/Webapi/Adapter/Soap.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Soap implements \Magento\TestFramework\TestCase\Webapi\AdapterInterface
1919
/**
2020
* SOAP client initialized with different WSDLs.
2121
*
22-
* @var \Zend\Soap\Client[]
22+
* @var \Laminas\Soap\Client[]
2323
*/
2424
protected $_soapClients = ['custom' => [], 'default' => []];
2525

@@ -67,15 +67,15 @@ public function call($serviceInfo, $arguments = [], $storeCode = null, $integrat
6767
*
6868
* @param string $serviceInfo PHP service interface name, should include version if present
6969
* @param string|null $storeCode
70-
* @return \Zend\Soap\Client
70+
* @return \Laminas\Soap\Client
7171
*/
7272
protected function _getSoapClient($serviceInfo, $storeCode = null)
7373
{
7474
$wsdlUrl = $this->generateWsdlUrl(
7575
[$this->_getSoapServiceName($serviceInfo) . $this->_getSoapServiceVersion($serviceInfo)],
7676
$storeCode
7777
);
78-
/** @var \Zend\Soap\Client $soapClient */
78+
/** @var \Laminas\Soap\Client $soapClient */
7979
$soapClient = null;
8080
if (isset($serviceInfo['soap']['token'])) {
8181
$token = $serviceInfo['soap']['token'];
@@ -104,7 +104,7 @@ protected function _getSoapClient($serviceInfo, $storeCode = null)
104104
*
105105
* @param string $wsdlUrl
106106
* @param string $token Authentication token
107-
* @return \Zend\Soap\Client
107+
* @return \Laminas\Soap\Client
108108
*/
109109
public function instantiateSoapClient($wsdlUrl, $token = null)
110110
{
@@ -113,7 +113,7 @@ public function instantiateSoapClient($wsdlUrl, $token = null)
113113
: \Magento\TestFramework\Authentication\OauthHelper::getApiAccessCredentials()['key'];
114114
$opts = ['http' => ['header' => "Authorization: Bearer " . $accessCredentials]];
115115
$context = stream_context_create($opts);
116-
$soapClient = new \Zend\Soap\Client($wsdlUrl);
116+
$soapClient = new \Laminas\Soap\Client($wsdlUrl);
117117
$soapClient->setSoapVersion(SOAP_1_2);
118118
$soapClient->setStreamContext($context);
119119
if (TESTS_XDEBUG_ENABLED) {

0 commit comments

Comments
 (0)