protected function PackageTypeTest::setUp in Commerce Shipping 8.2
Overrides UnitTestCase::setUp
File
- tests/
src/ Unit/ Plugin/ Commerce/ PackageType/ PackageTypeTest.php, line 26
Class
- PackageTypeTest
- @coversDefaultClass \Drupal\commerce_shipping\Plugin\Commerce\PackageType\PackageType @group commerce_shipping
Namespace
Drupal\Tests\commerce_shipping\Unit\Plugin\Commerce\PackageTypeCode
protected function setUp() : void {
parent::setUp();
$plugin_definition = [
'id' => 'test id',
'remote_id' => 'test remote id',
'label' => 'test label',
'dimensions' => [
'length' => '1',
'width' => '2',
'height' => '3',
'unit' => 'mm',
],
'weight' => [
'number' => '4',
'unit' => 'kg',
],
];
$this->packageType = new PackageType([], 'test', $plugin_definition);
}