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