public function TaxRateTest::testInvalidPercentages in Commerce Core 8.2
@covers ::__construct
File
- modules/
tax/ tests/ src/ Kernel/ TaxRateTest.php, line 29
Class
- TaxRateTest
- @coversDefaultClass \Drupal\commerce_tax\TaxRate @group commerce
Namespace
Drupal\Tests\commerce_tax\KernelCode
public function testInvalidPercentages() {
$this
->expectException(\InvalidArgumentException::class);
$definition = [
'id' => 'test',
'label' => 'Test',
'percentages' => 'WRONG',
];
new TaxRate($definition);
}