public function CustomerProfileAlterTest::alterDataProvider in Drupal Commerce Connector for AvaTax 8
Data provider for `alter`.
Return value
\Generator The test data.
File
- tests/
src/ Unit/ CustomerProfileAlterTest.php, line 145
Class
- CustomerProfileAlterTest
- @group commerce_avatax @coversDefaultClass \Drupal\commerce_avatax\CustomerProfileAlter
Namespace
Drupal\Tests\commerce_avatax\UnitCode
public function alterDataProvider() : \Generator {
(yield [
FALSE,
[
'country_code' => 'US',
],
0,
FALSE,
]);
(yield [
TRUE,
[
'country_code' => 'US',
'administrative_area' => 'WI',
],
FALSE,
]);
(yield [
TRUE,
[
'country_code' => 'US',
'administrative_area' => 'WI',
],
TRUE,
]);
}