You are here

protected function SwissVatTest::setUp in Commerce Core 8.2

Overrides EuropeanUnionVatTest::setUp

File

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

Class

SwissVatTest
@coversDefaultClass \Drupal\commerce_tax\Plugin\Commerce\TaxType\SwissVat @group commerce

Namespace

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

Code

protected function setUp() : void {
  parent::setUp();
  $this->taxType = TaxType::create([
    'id' => 'swiss_vat',
    'label' => 'Swiss VAT',
    'plugin' => 'swiss_vat',
    'configuration' => [
      'display_inclusive' => TRUE,
    ],
    // Don't allow the tax type to apply automatically.
    'status' => FALSE,
  ]);
  $this->taxType
    ->save();
}