Skip to content

Commit 7ee9fef

Browse files
author
Aleksandr Osadchyi
committed
MAGETWO-61725: [GITHUB] Improve address save flow to allow to use custom validators #7552
1 parent 3858455 commit 7ee9fef

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

app/code/Magento/Customer/Test/Unit/Model/Address/AbstractAddressTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -336,31 +336,31 @@ public function validateDataProvider()
336336
return [
337337
'firstname' => [
338338
array_merge(array_diff_key($data, ['firstname' => '']), ['country_id' => $countryId++]),
339-
['Please enter the first name.'],
339+
['firstname is a required field.'],
340340
],
341341
'lastname' => [
342342
array_merge(array_diff_key($data, ['lastname' => '']), ['country_id' => $countryId++]),
343-
['Please enter the last name.'],
343+
['lastname is a required field.'],
344344
],
345345
'street' => [
346346
array_merge(array_diff_key($data, ['street' => '']), ['country_id' => $countryId++]),
347-
['Please enter the street.'],
347+
['street is a required field.'],
348348
],
349349
'city' => [
350350
array_merge(array_diff_key($data, ['city' => '']), ['country_id' => $countryId++]),
351-
['Please enter the city.'],
351+
['city is a required field.'],
352352
],
353353
'telephone' => [
354354
array_merge(array_diff_key($data, ['telephone' => '']), ['country_id' => $countryId++]),
355-
['Please enter the phone number.'],
355+
['telephone is a required field.'],
356356
],
357357
'postcode' => [
358358
array_merge(array_diff_key($data, ['postcode' => '']), ['country_id' => $countryId++]),
359-
['Please enter the zip/postal code.'],
359+
['postcode is a required field.'],
360360
],
361361
'country_id' => [
362362
array_diff_key($data, ['country_id' => '']),
363-
['Please enter the country.'],
363+
['countryId is a required field.'],
364364
],
365365
'validated' => [array_merge($data, ['country_id' => $countryId++]), true],
366366
];

0 commit comments

Comments
 (0)