You are here

public function TaxTypePluginTest::testPluginConfiguration in Drupal Commerce Connector for AvaTax 8

Tests the default configuration assertions.

Need to ensure DEFAULT is the company code.

File

tests/src/Kernel/TaxTypePluginTest.php, line 148

Class

TaxTypePluginTest
Tests the tax type plugin.

Namespace

Drupal\Tests\commerce_avatax\Kernel

Code

public function testPluginConfiguration() {
  $config = $this
    ->config(self::CONFIG_NAME)
    ->get();
  unset($config['_core']);
  $this
    ->assertEquals([
    'account_id' => '',
    'api_mode' => 'development',
    'company_code' => 'DEFAULT',
    'customer_code_field' => 'mail',
    'disable_commit' => FALSE,
    'disable_tax_calculation' => FALSE,
    'license_key' => '',
    'logging' => FALSE,
    'shipping_tax_code' => 'FR020100',
    'address_validation' => [
      'enable' => FALSE,
      'countries' => [],
      'postal_code_match' => FALSE,
    ],
  ], $config);
}