File tree Expand file tree Collapse file tree 2 files changed +4
-10
lines changed
app/code/Magento/Customer/Model/Address/Validator
dev/tests/integration/testsuite/Magento/Customer/Api Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -56,10 +56,7 @@ private function validateCountry(AbstractAddress $address)
56
56
//Checking if such country exists.
57
57
$ errors [] = __ (
58
58
'Invalid value of "%value" provided for the %fieldName field. ' ,
59
- [
60
- 'fieldName ' => 'countryId ' ,
61
- 'value ' => htmlspecialchars ($ countryId ),
62
- ]
59
+ ['fieldName ' => 'countryId ' , 'value ' => htmlspecialchars ($ countryId )]
63
60
);
64
61
}
65
62
@@ -94,10 +91,7 @@ private function validateRegion(AbstractAddress $address)
94
91
//If a region is selected then checking if it exists.
95
92
$ errors [] = __ (
96
93
'Invalid value of "%value" provided for the %fieldName field. ' ,
97
- [
98
- 'fieldName ' => 'regionId ' ,
99
- 'value ' => htmlspecialchars ($ regionId ),
100
- ]
94
+ ['fieldName ' => 'regionId ' , 'value ' => htmlspecialchars ($ regionId )]
101
95
);
102
96
}
103
97
Original file line number Diff line number Diff line change @@ -230,11 +230,11 @@ public function testSaveNewInvalidAddress()
230
230
$ errors = $ exception ->getErrors ();
231
231
$ this ->assertCount (3 , $ errors );
232
232
$ this ->assertEquals (
233
- 'firstname is a required field . ' ,
233
+ '" firstname" is required. Enter and try again . ' ,
234
234
$ errors [0 ]->getLogMessage ()
235
235
);
236
236
$ this ->assertEquals (
237
- 'lastname is a required field . ' ,
237
+ '" lastname" is required. Enter and try again . ' ,
238
238
$ errors [1 ]->getLogMessage ()
239
239
);
240
240
$ this ->assertEquals (
You can’t perform that action at this time.
0 commit comments