Skip to content
Snippets Groups Projects
Commit 5b636d0b authored by Igor Melnikov's avatar Igor Melnikov Committed by Olga Kopylova
Browse files

MAGETWO-58692: Refactor Module_Webapi, Module_Elasticsearch

Fixing tests
parent 45d7ddc6
Branches
No related merge requests found
...@@ -7,10 +7,11 @@ namespace Magento\Webapi\Model; ...@@ -7,10 +7,11 @@ namespace Magento\Webapi\Model;
use Magento\TestFramework\Helper\Bootstrap; use Magento\TestFramework\Helper\Bootstrap;
use Magento\Customer\Api\AccountManagementInterface; use Magento\Customer\Api\AccountManagementInterface;
use Magento\Framework\Exception\LocalizedException;
class ServiceMetadataTest extends \PHPUnit_Framework_TestCase class ServiceMetadataTest extends \PHPUnit_Framework_TestCase
{ {
/**bootstrap.sh /**
* @var ServiceMetadata * @var ServiceMetadata
*/ */
private $serviceMetadata; private $serviceMetadata;
...@@ -57,7 +58,7 @@ class ServiceMetadataTest extends \PHPUnit_Framework_TestCase ...@@ -57,7 +58,7 @@ class ServiceMetadataTest extends \PHPUnit_Framework_TestCase
] ]
], ],
'throws' => [ 'throws' => [
"\\Magento\\Framework\\Exception\\LocalizedException" '\\' . LocalizedException::class
] ]
] ]
] ]
...@@ -106,7 +107,7 @@ class ServiceMetadataTest extends \PHPUnit_Framework_TestCase ...@@ -106,7 +107,7 @@ class ServiceMetadataTest extends \PHPUnit_Framework_TestCase
] ]
], ],
'throws' => [ 'throws' => [
"\\Magento\\Framework\\Exception\\LocalizedException" '\\' . LocalizedException::class
] ]
] ]
] ]
......
...@@ -8,6 +8,7 @@ namespace Magento\Webapi\Model\Soap; ...@@ -8,6 +8,7 @@ namespace Magento\Webapi\Model\Soap;
use Magento\TestFramework\Helper\Bootstrap; use Magento\TestFramework\Helper\Bootstrap;
use Magento\Customer\Api\AccountManagementInterface; use Magento\Customer\Api\AccountManagementInterface;
use Magento\Customer\Api\CustomerRepositoryInterface; use Magento\Customer\Api\CustomerRepositoryInterface;
use Magento\Framework\Exception\LocalizedException;
class ConfigTest extends \PHPUnit_Framework_TestCase class ConfigTest extends \PHPUnit_Framework_TestCase
{ {
...@@ -60,7 +61,7 @@ class ConfigTest extends \PHPUnit_Framework_TestCase ...@@ -60,7 +61,7 @@ class ConfigTest extends \PHPUnit_Framework_TestCase
] ]
], ],
'throws' => [ 'throws' => [
"\\Magento\\Framework\\Exception\\LocalizedException" '\\' . LocalizedException::class
] ]
] ]
] ]
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment