public function PackageTypeTest::testGetWeight in Commerce Shipping 8.2
@covers ::getWeight
File
- tests/
src/ Unit/ Plugin/ Commerce/ PackageType/ PackageTypeTest.php, line 82
Class
- PackageTypeTest
- @coversDefaultClass \Drupal\commerce_shipping\Plugin\Commerce\PackageType\PackageType @group commerce_shipping
Namespace
Drupal\Tests\commerce_shipping\Unit\Plugin\Commerce\PackageTypeCode
public function testGetWeight() {
$this
->assertEquals(new Weight('4', 'kg'), $this->packageType
->getWeight());
}