You are here

public function TemperatureTest::testInvalidUnit in Physical Fields 8

::covers __construct.

File

tests/src/Unit/TemperatureTest.php, line 51

Class

TemperatureTest
Tests the temperature class.

Namespace

Drupal\Tests\physical\Unit

Code

public function testInvalidUnit() {
  $this
    ->expectException(\InvalidArgumentException::class);
  $temperature = new Temperature('10', 'mm');
}