You are here

public function TemperatureTest::setUp in Physical Fields 8

Overrides UnitTestCase::setUp

File

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

Class

TemperatureTest
Tests the temperature class.

Namespace

Drupal\Tests\physical\Unit

Code

public function setUp() {
  parent::setUp();
  $this->temperatureKelvin = new Temperature('504', 'K');
  $this->temperatureCelsius = new Temperature('0', 'C');
  $this->temperatureFahrenheit = new Temperature('65', 'F');
}