public function ProposedShipmentTest::testMissingProperties in Commerce Shipping 8.2
@covers ::__construct
File
- tests/
src/ Unit/ ProposedShipmentTest.php, line 116
Class
- ProposedShipmentTest
- @coversDefaultClass \Drupal\commerce_shipping\ProposedShipment @group commerce_shipping
Namespace
Drupal\Tests\commerce_shipping\UnitCode
public function testMissingProperties() {
$this
->expectException(\InvalidArgumentException::class);
$this
->expectExceptionMessage('Missing required property "items".');
$proposed_shipment = new ProposedShipment([
'type' => 'default',
'order_id' => 10,
'title' => 'Test shipment',
'package_type_id' => 'default',
]);
}