From 2e9233b3ea266516a5b7a7817bfcc6e36006ed91 Mon Sep 17 00:00:00 2001 From: Igor Melnikov <imelnikov@magento.com> Date: Tue, 25 Oct 2016 15:54:09 -0500 Subject: [PATCH] MAGETWO-58692: Refactor Module_Webapi, Module_Elasticsearch Refactoring integration tests --- .../testsuite/Magento/Webapi/Model/ServiceMetadataTest.php | 6 +++--- .../testsuite/Magento/Webapi/Model/Soap/ConfigTest.php | 2 +- 2 files changed, 4 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 521e0b6fc7c..78748e84c11 100644 --- a/dev/tests/integration/testsuite/Magento/Webapi/Model/ServiceMetadataTest.php +++ b/dev/tests/integration/testsuite/Magento/Webapi/Model/ServiceMetadataTest.php @@ -11,7 +11,7 @@ use Magento\Customer\Api\AccountManagementInterface; class ServiceMetadataTest extends \PHPUnit_Framework_TestCase { - /** + /**bootstrap.sh * @var ServiceMetadata */ private $serviceMetadata; @@ -68,7 +68,7 @@ class ServiceMetadataTest extends \PHPUnit_Framework_TestCase 'description' => 'Interface for managing customers accounts.', ]; $actual = $this->serviceMetadata->getServiceMetadata('customerAccountManagementV1'); - $this->assertEquals(array_replace_recursive($expected, $actual), $actual); + $this->assertEquals(array_replace_recursive($actual, $expected), $actual); } public function testGetRouteMetadata() @@ -130,6 +130,6 @@ class ServiceMetadataTest extends \PHPUnit_Framework_TestCase ] ]; $actual = $this->serviceMetadata->getRouteMetadata('customerAccountManagementV1'); - $this->assertEquals(array_replace_recursive($expected, $actual), $actual); + $this->assertEquals(array_replace_recursive($actual, $expected), $actual); } } 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 4ab3bccd42d..9625803339f 100644 --- a/dev/tests/integration/testsuite/Magento/Webapi/Model/Soap/ConfigTest.php +++ b/dev/tests/integration/testsuite/Magento/Webapi/Model/Soap/ConfigTest.php @@ -78,7 +78,7 @@ class ConfigTest extends \PHPUnit_Framework_TestCase 'NonExistentService' ] ); - $this->assertEquals(array_replace_recursive($expected, $actual), $actual); + $this->assertEquals(array_replace_recursive($actual, $expected), $actual); } public function testGetServiceMethodInfo() -- GitLab