protected function SensorDataApiTest::buildPath in farmOS 2.x
Helper function to build the path to the sensor API.
Parameters
\Drupal\asset\Entity\AssetInterface $asset: The asset.
Return value
string The path.
2 calls to SensorDataApiTest::buildPath()
- SensorDataApiTest::testApiGet in modules/
asset/ sensor/ tests/ src/ Functional/ SensorDataApiTest.php - Test API GET requests.
- SensorDataApiTest::testApiPost in modules/
asset/ sensor/ tests/ src/ Functional/ SensorDataApiTest.php - Test API POST requests.
1 method overrides SensorDataApiTest::buildPath()
- SensorListenerApiTest::buildPath in modules/
asset/ sensor/ modules/ listener/ tests/ src/ Functional/ SensorListenerApiTest.php - Helper function to build the path to the sensor API.
File
- modules/
asset/ sensor/ tests/ src/ Functional/ SensorDataApiTest.php, line 149
Class
- SensorDataApiTest
- Test the Sensor data API.
Namespace
Drupal\Tests\farm_sensor\FunctionalCode
protected function buildPath(AssetInterface $asset) {
return "base://asset/{$asset->uuid()}/data/basic";
}