@@ -157,7 +157,7 @@ public function testSaveAddressesIdSetButNotAlreadyExisting(): void
157
157
'No such entity with %fieldName = %fieldValue ' ,
158
158
[
159
159
'fieldName ' => 'addressId ' ,
160
- 'fieldValue ' => 4200
160
+ 'fieldValue ' => 4200 ,
161
161
]
162
162
);
163
163
$ this ->expectException (NoSuchEntityException::class);
@@ -195,7 +195,7 @@ public function testGetAddressByIdBadAddressId(): void
195
195
'No such entity with %fieldName = %fieldValue ' ,
196
196
[
197
197
'fieldName ' => 'addressId ' ,
198
- 'fieldValue ' => 12345
198
+ 'fieldValue ' => 12345 ,
199
199
]
200
200
);
201
201
$ this ->expectException (NoSuchEntityException::class);
@@ -299,7 +299,7 @@ public function testSaveAddressesCustomerIdNotExist(): void
299
299
'No such entity with %fieldName = %fieldValue ' ,
300
300
[
301
301
'fieldName ' => 'customerId ' ,
302
- 'fieldValue ' => 4200
302
+ 'fieldValue ' => 4200 ,
303
303
]
304
304
);
305
305
$ this ->expectException (NoSuchEntityException::class);
@@ -319,7 +319,7 @@ public function testSaveAddressesCustomerIdInvalid(): void
319
319
'No such entity with %fieldName = %fieldValue ' ,
320
320
[
321
321
'fieldName ' => 'customerId ' ,
322
- 'fieldValue ' => 'this_is_not_a_valid_id '
322
+ 'fieldValue ' => 'this_is_not_a_valid_id ' ,
323
323
]
324
324
);
325
325
$ this ->expectException (NoSuchEntityException::class);
@@ -347,7 +347,7 @@ public function testDeleteAddress(): void
347
347
'No such entity with %fieldName = %fieldValue ' ,
348
348
[
349
349
'fieldName ' => 'addressId ' ,
350
- 'fieldValue ' => 1
350
+ 'fieldValue ' => 1 ,
351
351
]
352
352
);
353
353
$ this ->expectException (NoSuchEntityException::class);
@@ -375,7 +375,7 @@ public function testDeleteAddressById(): void
375
375
'No such entity with %fieldName = %fieldValue ' ,
376
376
[
377
377
'fieldName ' => 'addressId ' ,
378
- 'fieldValue ' => 1
378
+ 'fieldValue ' => 1 ,
379
379
]
380
380
);
381
381
$ this ->expectException (NoSuchEntityException::class);
@@ -395,7 +395,7 @@ public function testDeleteAddressFromCustomerBadAddressId(): void
395
395
'No such entity with %fieldName = %fieldValue ' ,
396
396
[
397
397
'fieldName ' => 'addressId ' ,
398
- 'fieldValue ' => 12345
398
+ 'fieldValue ' => 12345 ,
399
399
]
400
400
);
401
401
$ this ->expectException (NoSuchEntityException::class);
@@ -482,7 +482,7 @@ public function searchAddressDataProvider(): array
482
482
null ,
483
483
null ,
484
484
[
485
- ['id ' => 1 , 'city ' => 'CityM ' , 'postcode ' => 75477 , 'firstname ' => 'John ' ],
485
+ ['id ' => 1 , 'city ' => 'CityM ' , 'postcode ' => 75477 , 'firstname ' => 'John ' , ],
486
486
],
487
487
1
488
488
],
@@ -491,7 +491,7 @@ public function searchAddressDataProvider(): array
491
491
null ,
492
492
null ,
493
493
[
494
- ['id ' => 1 , 'city ' => 'CityM ' , 'postcode ' => 75477 , 'firstname ' => 'John ' ],
494
+ ['id ' => 1 , 'city ' => 'CityM ' , 'postcode ' => 75477 , 'firstname ' => 'John ' , ],
495
495
],
496
496
1
497
497
],
@@ -503,8 +503,8 @@ public function searchAddressDataProvider(): array
503
503
$ orderBuilder ->setField ('city ' )->setDirection (SortOrder::SORT_ASC )->create (),
504
504
],
505
505
[
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 ' , ],
508
508
],
509
509
2
510
510
],
@@ -518,8 +518,8 @@ public function searchAddressDataProvider(): array
518
518
$ orderBuilder ->setField ('city ' )->setDirection (SortOrder::SORT_DESC )->create (),
519
519
],
520
520
[
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 ' , ],
523
523
],
524
524
2
525
525
],
@@ -531,8 +531,8 @@ public function searchAddressDataProvider(): array
531
531
$ orderBuilder ->setField ('postcode ' )->setDirection (SortOrder::SORT_ASC )->create (),
532
532
],
533
533
[
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 ' , ],
536
536
],
537
537
2
538
538
],
@@ -662,8 +662,8 @@ public function testUpdateWithAlphanumericZipCode(): void
662
662
$ savedAddress = $ this ->repository ->save ($ customerAddress );
663
663
$ customerData = $ savedAddress ->__toArray ();
664
664
foreach ($ addressData as $ key => $ value ) {
665
- if ($ key === ' region ' ) {
666
- $ this ->assertEquals (' Pinminnoch ' , $ value ->getRegion ());
665
+ if ($ key === AddressInterface:: REGION ) {
666
+ $ this ->assertEquals ($ customerData [ $ key ][AddressInterface:: REGION ] , $ value ->getRegion ());
667
667
} else {
668
668
$ this ->assertEquals ($ value , $ customerData [$ key ]);
669
669
}
0 commit comments