Skip to content

Commit

Permalink
Try to switch to simpler country code
Browse files Browse the repository at this point in the history
  • Loading branch information
mlewis-everley committed Aug 14, 2023
1 parent 1f5ca96 commit 56561b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
13 changes: 0 additions & 13 deletions tests/LineItemFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,19 +125,6 @@ public function testFindBestTaxRate()

$rate = $factory->findBestTaxRate();

$zones = Zone::get();

$all_rates = TaxRate::get();
$rates = TaxRate::get()
->filterAny([
'Global' => 1,
"Zones.Regions.CountryCode" => 'GB'
])->filter("Zones.Regions.Code", 'BIR');

var_dump($zones->toArray());
var_dump($all_rates->toArray());
var_dump($rates->toArray());

$this->assertEquals(0, $item->TaxPercentage);
$this->assertEquals(20, $rate->Rate);

Expand Down
6 changes: 3 additions & 3 deletions tests/OrdersScaffold.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ SilverCommerce\GeoZones\Model\Region:

SilverCommerce\GeoZones\Model\Zone:
uk:
Country: '["GB"]'
Country: 'GB'
AllRegions: 1
Enabled: 1
nz:
Country: '["NZ"]'
Country: 'NZ'
AllRegions: 1
Enabled: 1
us:
Country: '["US"]'
Country: 'US'
AllRegions: 1
Enabled: 1

Expand Down

0 comments on commit 56561b0

Please sign in to comment.