public function TaxZoneTest::testInvalidRates in Commerce Core 8.2
@covers ::__construct
File
- modules/
tax/ tests/ src/ Kernel/ TaxZoneTest.php, line 43
Class
- TaxZoneTest
- @coversDefaultClass \Drupal\commerce_tax\TaxZone @group commerce
Namespace
Drupal\Tests\commerce_tax\KernelCode
public function testInvalidRates() {
$this
->expectException(\InvalidArgumentException::class);
$definition = [
'id' => 'test',
'label' => 'Test',
'display_label' => 'VAT',
'territories' => [
[
'country_code' => 'RS',
],
],
'rates' => 'WRONG',
];
new TaxZone($definition);
}