Skip to content

Commit 2db8223

Browse files
Igor MelnikovJoan He
authored andcommitted
MAGETWO-58692: Refactor Module_Webapi, Module_Elasticsearch
Fixing tests (cherry picked from commit 5b636d0)
1 parent 7439d1d commit 2db8223

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

dev/tests/integration/testsuite/Magento/Webapi/Model/ServiceMetadataTest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@
77

88
use Magento\TestFramework\Helper\Bootstrap;
99
use Magento\Customer\Api\AccountManagementInterface;
10+
use Magento\Framework\Exception\LocalizedException;
1011

1112
class ServiceMetadataTest extends \PHPUnit_Framework_TestCase
1213
{
13-
/**bootstrap.sh
14+
/**
1415
* @var ServiceMetadata
1516
*/
1617
private $serviceMetadata;
@@ -57,7 +58,7 @@ public function testGetServiceMetadata()
5758
]
5859
],
5960
'throws' => [
60-
"\\Magento\\Framework\\Exception\\LocalizedException"
61+
'\\' . LocalizedException::class
6162
]
6263
]
6364
]
@@ -106,7 +107,7 @@ public function testGetRouteMetadata()
106107
]
107108
],
108109
'throws' => [
109-
"\\Magento\\Framework\\Exception\\LocalizedException"
110+
'\\' . LocalizedException::class
110111
]
111112
]
112113
]

dev/tests/integration/testsuite/Magento/Webapi/Model/Soap/ConfigTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use Magento\TestFramework\Helper\Bootstrap;
99
use Magento\Customer\Api\AccountManagementInterface;
1010
use Magento\Customer\Api\CustomerRepositoryInterface;
11+
use Magento\Framework\Exception\LocalizedException;
1112

1213
class ConfigTest extends \PHPUnit_Framework_TestCase
1314
{
@@ -60,7 +61,7 @@ public function testGetRequestedSoapServices()
6061
]
6162
],
6263
'throws' => [
63-
"\\Magento\\Framework\\Exception\\LocalizedException"
64+
'\\' . LocalizedException::class
6465
]
6566
]
6667
]

0 commit comments

Comments
 (0)