You are here

protected function UnitedKingdomVatTest::setUp in Commerce Core 8.2

Overrides EuropeanUnionVatTest::setUp

File

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

Class

UnitedKingdomVatTest
@coversDefaultClass \Drupal\commerce_tax\Plugin\Commerce\TaxType\UnitedKingdomVat @group commerce

Namespace

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

Code

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