Skip to content

Commit a1cc185

Browse files
author
Serhii Bohomaz
committed
MC-37099: Create automated test for "Update Customer Address, with Alphanumeric Zip Code"
1 parent c287f03 commit a1cc185

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

dev/tests/integration/testsuite/Magento/Customer/Model/ResourceModel/AddressRepositoryTest.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ public function searchAddressDataProvider(): array
482482
null,
483483
null,
484484
[
485-
['id' => 1, 'city' => 'CityM', 'postcode' => 75477, 'firstname' => 'John',],
485+
['id' => 1, 'city' => 'CityM', 'postcode' => 75477, 'firstname' => 'John'],
486486
],
487487
1
488488
],
@@ -491,7 +491,7 @@ public function searchAddressDataProvider(): array
491491
null,
492492
null,
493493
[
494-
['id' => 1, 'city' => 'CityM', 'postcode' => 75477, 'firstname' => 'John',],
494+
['id' => 1, 'city' => 'CityM', 'postcode' => 75477, 'firstname' => 'John'],
495495
],
496496
1
497497
],
@@ -503,8 +503,8 @@ public function searchAddressDataProvider(): array
503503
$orderBuilder->setField('city')->setDirection(SortOrder::SORT_ASC)->create(),
504504
],
505505
[
506-
['id' => 1, 'city' => 'CityM', 'postcode' => 75477, 'firstname' => 'John',],
507-
['id' => 2, 'city' => 'CityX', 'postcode' => 47676, 'firstname' => 'John',],
506+
['id' => 1, 'city' => 'CityM', 'postcode' => 75477, 'firstname' => 'John'],
507+
['id' => 2, 'city' => 'CityX', 'postcode' => 47676, 'firstname' => 'John'],
508508
],
509509
2
510510
],
@@ -518,8 +518,8 @@ public function searchAddressDataProvider(): array
518518
$orderBuilder->setField('city')->setDirection(SortOrder::SORT_DESC)->create(),
519519
],
520520
[
521-
['id' => 2, 'city' => 'CityX', 'postcode' => 47676, 'firstname' => 'John',],
522-
['id' => 1, 'city' => 'CityM', 'postcode' => 75477, 'firstname' => 'John',],
521+
['id' => 2, 'city' => 'CityX', 'postcode' => 47676, 'firstname' => 'John'],
522+
['id' => 1, 'city' => 'CityM', 'postcode' => 75477, 'firstname' => 'John'],
523523
],
524524
2
525525
],
@@ -531,8 +531,8 @@ public function searchAddressDataProvider(): array
531531
$orderBuilder->setField('postcode')->setDirection(SortOrder::SORT_ASC)->create(),
532532
],
533533
[
534-
['id' => 2, 'city' => 'CityX', 'postcode' => 47676, 'firstname' => 'John',],
535-
['id' => 1, 'city' => 'CityM', 'postcode' => 75477, 'firstname' => 'John',],
534+
['id' => 2, 'city' => 'CityX', 'postcode' => 47676, 'firstname' => 'John'],
535+
['id' => 1, 'city' => 'CityM', 'postcode' => 75477, 'firstname' => 'John'],
536536
],
537537
2
538538
],
@@ -562,7 +562,7 @@ public function testSaveAddressWithRestrictedCountries(): void
562562
'country_id' => 'US',
563563
'region' => $region,
564564
'postcode' => 90230,
565-
'telephone' => '555655431'
565+
'telephone' => '555655431',
566566
];
567567
$address = $this->addressFactory->create(['data' => $addressData]);
568568
$saved = $this->repository->save($address);
@@ -653,7 +653,7 @@ public function testUpdateWithAlphanumericZipCode(): void
653653
AddressInterface::REGION => $region,
654654
AddressInterface::POSTCODE => 'KA26 1PF',
655655
AddressInterface::TELEPHONE => '999-777-111-2345',
656-
AddressInterface::VAT_ID => '987654321'
656+
AddressInterface::VAT_ID => '987654321',
657657
];
658658
$customerAddress = $this->repository->getById((int)$defaultBillingAddress);
659659
foreach ($addressData as $key => $value) {

0 commit comments

Comments
 (0)