You are here

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

Test that the email is sent as the customerCode by default.

File

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

Class

TaxTypePluginTest
Tests the tax type plugin.

Namespace

Drupal\Tests\commerce_avatax\Kernel

Code

public function testCustomerCodeEmail() {
  $avatax_lib = $this->container
    ->get('commerce_avatax.avatax_lib');
  $request_body = $avatax_lib
    ->prepareTransactionsCreate($this->order);
  $this
    ->assertEquals($this->order
    ->getEmail(), $request_body['customerCode']);
}