From c9e6777f743bc8be5b0b7447fb9ec07978f04317 Mon Sep 17 00:00:00 2001 From: Josh Houghtelin Date: Tue, 24 May 2022 09:59:24 -0400 Subject: [PATCH] DS-4133 - Removing Puerto Rico as a whitelisted country because it's a state within the United States. --- src/CountryListService.php | 2 +- tests/CountryListServiceTest.php | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 tests/CountryListServiceTest.php diff --git a/src/CountryListService.php b/src/CountryListService.php index 92be01b..f774b81 100644 --- a/src/CountryListService.php +++ b/src/CountryListService.php @@ -9,7 +9,7 @@ class CountryListService */ public function blacklistedCountries(): array { - return ['AL','BY','BA','BI','CF','HR','CU','KP','CD','IR','IQ','QZ','LA','LB','LY','MK','ME','NI','RS','SO','SS','SD','SY','UA','VE','YE','ZW','BS','BB','BJ','BF','KH','KY','TD','CO','KM','CG','DO','GQ','ER','GN','GW','HT','LS','LR','MG','MM','PA','UG']; + return ['AL','BY','BA','BI','CF','HR','CU','KP','CD','IR','IQ','QZ','LA','LB','LY','MK','ME','NI','RS','SO','SS','SD','SY','UA','VE','YE','ZW','BS','BB','BJ','BF','KH','KY','TD','CO','KM','CG','DO','GQ','ER','GN','GW','HT','LS','LR','MG','MM','PA','UG','PR']; } /** diff --git a/tests/CountryListServiceTest.php b/tests/CountryListServiceTest.php new file mode 100644 index 0000000..344d828 --- /dev/null +++ b/tests/CountryListServiceTest.php @@ -0,0 +1,14 @@ +isCountryBlacklisted('PR')); + } +}