You are here

public function SwissVatTest::testGetZones in Commerce Core 8.2

@covers ::getZones

Overrides EuropeanUnionVatTest::testGetZones

File

modules/tax/tests/src/Kernel/Plugin/Commerce/TaxType/SwissVatTest.php, line 67

Class

SwissVatTest
@coversDefaultClass \Drupal\commerce_tax\Plugin\Commerce\TaxType\SwissVat @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('ch', $zones);
}