You are here

protected function NorwegianVatTest::setUp in Commerce Core 8.2

Overrides EuropeanUnionVatTest::setUp

File

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

Class

NorwegianVatTest
@coversDefaultClass \Drupal\commerce_tax\Plugin\Commerce\TaxType\NorwegianVat @group commerce

Namespace

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

Code

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