public function TaxRatePercentageTest::testInvalidNumber in Commerce Core 8.2
@covers ::__construct
File
- modules/
tax/ tests/ src/ Kernel/ TaxRatePercentageTest.php, line 30
Class
- TaxRatePercentageTest
- @coversDefaultClass \Drupal\commerce_tax\TaxRatePercentage @group commerce
Namespace
Drupal\Tests\commerce_tax\KernelCode
public function testInvalidNumber() {
$this
->expectException(\InvalidArgumentException::class);
$definition = [
'number' => 'INVALID',
'start_date' => '2012-01-01',
];
new TaxRatePercentage($definition);
}