Skip to content

Commit

Permalink
Merge pull request #7 from alldigitalrewards/DS-4133
Browse files Browse the repository at this point in the history
DS-4133 - Removing Puerto Rico as a whitelisted country because it's a state within the United States.
  • Loading branch information
jhoughtelin authored May 24, 2022
2 parents 30ebd03 + c9e6777 commit 6b11149
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/CountryListService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
}

/**
Expand Down
14 changes: 14 additions & 0 deletions tests/CountryListServiceTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

namespace AllDigitalRewards\Tests;

use AllDigitalRewards\CountryMapper\CountryListService;
use PHPUnit\Framework\TestCase;

class CountryListServiceTest extends TestCase
{
public function testPuertoRicoIsBlacklistedCountry()
{
self::assertTrue((new CountryListService())->isCountryBlacklisted('PR'));
}
}

0 comments on commit 6b11149

Please sign in to comment.