public function VolumeTest::testInvalidUnit in Physical Fields 8
::covers __construct.
File
- tests/
src/ Unit/ VolumeTest.php, line 35
Class
- VolumeTest
- Tests the volume class.
Namespace
Drupal\Tests\physical\UnitCode
public function testInvalidUnit() {
$this
->expectException(\InvalidArgumentException::class);
$volume = new Volume('1', 'kg');
}