You are here

protected function ChainTaxCodeResolverTest::setUp in Drupal Commerce Connector for AvaTax 8

Overrides CommerceKernelTestBase::setUp

File

tests/src/Kernel/ChainTaxCodeResolverTest.php, line 37

Class

ChainTaxCodeResolverTest
Tests the chain tax code resolver.

Namespace

Drupal\Tests\commerce_avatax\Kernel

Code

protected function setUp() : void {
  parent::setUp();
  $this
    ->installConfig('commerce_product');

  // Turn off title generation to allow explicit values to be used.
  $variation_type = ProductVariationType::load('default');
  $variation_type
    ->setGenerateTitle(FALSE);
  $variation_type
    ->save();
}