protected function SensorDataApiTest::setUp in farmOS 2.x
Overrides FarmBrowserTestBase::setUp
File
- modules/
asset/ sensor/ tests/ src/ Functional/ SensorDataApiTest.php, line 36
Class
- SensorDataApiTest
- Test the Sensor data API.
Namespace
Drupal\Tests\farm_sensor\FunctionalCode
protected function setUp() : void {
parent::setUp();
$this->asset = Asset::create([
'type' => 'sensor',
'name' => $this
->randomMachineName(),
]);
$this->asset
->save();
}