You are here

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\Unit

Code

public function testInvalidUnit() {
  $this
    ->expectException(\InvalidArgumentException::class);
  $volume = new Volume('1', 'kg');
}