From 31dc6ea3ab64f7a48c9672447fa687b12d7bd791 Mon Sep 17 00:00:00 2001 From: Aleksandr Osadchyi Date: Tue, 6 Dec 2016 12:08:27 +0200 Subject: [PATCH] MAGETWO-61725: [GITHUB] Improve address save flow to allow to use custom validators #7552 --- .../Magento/Customer/Api/CustomerRepositoryTest.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dev/tests/api-functional/testsuite/Magento/Customer/Api/CustomerRepositoryTest.php b/dev/tests/api-functional/testsuite/Magento/Customer/Api/CustomerRepositoryTest.php index f74c3e565e010..be79a9ecbbc81 100644 --- a/dev/tests/api-functional/testsuite/Magento/Customer/Api/CustomerRepositoryTest.php +++ b/dev/tests/api-functional/testsuite/Magento/Customer/Api/CustomerRepositoryTest.php @@ -432,8 +432,7 @@ public function testCreateCustomerWithoutAddressRequiresException() $expectedException = new InputException(); $expectedException->addError( __( - '%fieldName is a required field.', - ['fieldName' => Address::FIRSTNAME] + 'Please enter the first name.' ) ); $this->assertInstanceOf('SoapFault', $e); @@ -447,8 +446,7 @@ public function testCreateCustomerWithoutAddressRequiresException() $this->assertEquals(HTTPExceptionCodes::HTTP_BAD_REQUEST, $e->getCode()); $exceptionData = $this->processRestExceptionResult($e); $expectedExceptionData = [ - 'message' => '%fieldName is a required field.', - 'parameters' => ['fieldName' => Address::FIRSTNAME], + 'message' => 'Please enter the first name.', ]; $this->assertEquals($expectedExceptionData, $exceptionData); }