From 5b636d0b7dd63e64c9ff0a980ef0ffe2a16fe8aa Mon Sep 17 00:00:00 2001
From: Igor Melnikov <imelnikov@magento.com>
Date: Thu, 27 Oct 2016 17:50:41 -0500
Subject: [PATCH] MAGETWO-58692: Refactor Module_Webapi, Module_Elasticsearch

Fixing tests
---
 .../testsuite/Magento/Webapi/Model/ServiceMetadataTest.php | 7 ++++---
 .../testsuite/Magento/Webapi/Model/Soap/ConfigTest.php     | 3 ++-
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/dev/tests/integration/testsuite/Magento/Webapi/Model/ServiceMetadataTest.php b/dev/tests/integration/testsuite/Magento/Webapi/Model/ServiceMetadataTest.php
index 7bfbe08a34a..8fac1c9b0e7 100644
--- a/dev/tests/integration/testsuite/Magento/Webapi/Model/ServiceMetadataTest.php
+++ b/dev/tests/integration/testsuite/Magento/Webapi/Model/ServiceMetadataTest.php
@@ -7,10 +7,11 @@ namespace Magento\Webapi\Model;
 
 use Magento\TestFramework\Helper\Bootstrap;
 use Magento\Customer\Api\AccountManagementInterface;
+use Magento\Framework\Exception\LocalizedException;
 
 class ServiceMetadataTest extends \PHPUnit_Framework_TestCase
 {
-    /**bootstrap.sh
+    /**
      * @var ServiceMetadata
      */
     private $serviceMetadata;
@@ -57,7 +58,7 @@ class ServiceMetadataTest extends \PHPUnit_Framework_TestCase
                                 ]
                             ],
                             'throws' => [
-                                "\\Magento\\Framework\\Exception\\LocalizedException"
+                                '\\' . LocalizedException::class
                             ]
                         ]
                     ]
@@ -106,7 +107,7 @@ class ServiceMetadataTest extends \PHPUnit_Framework_TestCase
                                 ]
                             ],
                             'throws' => [
-                                "\\Magento\\Framework\\Exception\\LocalizedException"
+                                '\\' . LocalizedException::class
                             ]
                         ]
                     ]
diff --git a/dev/tests/integration/testsuite/Magento/Webapi/Model/Soap/ConfigTest.php b/dev/tests/integration/testsuite/Magento/Webapi/Model/Soap/ConfigTest.php
index 95743e9e105..ff1634c6078 100644
--- a/dev/tests/integration/testsuite/Magento/Webapi/Model/Soap/ConfigTest.php
+++ b/dev/tests/integration/testsuite/Magento/Webapi/Model/Soap/ConfigTest.php
@@ -8,6 +8,7 @@ namespace Magento\Webapi\Model\Soap;
 use Magento\TestFramework\Helper\Bootstrap;
 use Magento\Customer\Api\AccountManagementInterface;
 use Magento\Customer\Api\CustomerRepositoryInterface;
+use Magento\Framework\Exception\LocalizedException;
 
 class ConfigTest extends \PHPUnit_Framework_TestCase
 {
@@ -60,7 +61,7 @@ class ConfigTest extends \PHPUnit_Framework_TestCase
                                     ]
                                 ],
                                 'throws' => [
-                                    "\\Magento\\Framework\\Exception\\LocalizedException"
+                                    '\\' . LocalizedException::class
                                 ]
                             ]
                         ]
-- 
GitLab