public function AdjustmentTest::testInvalidAdjustmentConstruct in Commerce Core 8.2
Tests the constructor and definition checks.
@covers ::__construct
@dataProvider invalidDefinitionProvider
File
- modules/
order/ tests/ src/ Kernel/ AdjustmentTest.php, line 28
Class
- AdjustmentTest
- @coversDefaultClass \Drupal\commerce_order\Adjustment @group commerce
Namespace
Drupal\Tests\commerce_order\KernelCode
public function testInvalidAdjustmentConstruct($definition, $message) {
$this
->expectException(\InvalidArgumentException::class);
$this
->expectExceptionMessage($message);
new Adjustment($definition);
}