Skip to content

Commit

Permalink
MAGETWO-61725: [GITHUB] Improve address save flow to allow to use cus…
Browse files Browse the repository at this point in the history
…tom validators #7552
  • Loading branch information
Aleksandr Osadchyi committed Dec 6, 2016
1 parent 042ae5f commit 31dc6ea
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
}
Expand Down

0 comments on commit 31dc6ea

Please sign in to comment.