You are here

public function CanadianSalesTaxTest::testGetZones in Commerce Core 8.2

@covers ::getZones

File

modules/tax/tests/src/Kernel/Plugin/Commerce/TaxType/CanadianSalesTaxTest.php, line 125

Class

CanadianSalesTaxTest
@coversDefaultClass \Drupal\commerce_tax\Plugin\Commerce\TaxType\CanadianSalesTax @group commerce

Namespace

Drupal\Tests\commerce_tax\Kernel\Plugin\Commerce\TaxType

Code

public function testGetZones() {

  /** @var \Drupal\commerce_tax\Plugin\Commerce\TaxType\LocalTaxTypeInterface $plugin */
  $plugin = $this->taxType
    ->getPlugin();
  $zones = $plugin
    ->getZones();
  $this
    ->assertArrayHasKey('ca', $zones);
  $this
    ->assertArrayHasKey('bc', $zones);
  $this
    ->assertArrayHasKey('mb', $zones);
  $this
    ->assertArrayHasKey('nb', $zones);
}