protected static function KernelTestBase::getDrupalRoot in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/KernelTests/KernelTestBase.php \Drupal\KernelTests\KernelTestBase::getDrupalRoot()
Returns the drupal root directory.
Return value
string
2 calls to KernelTestBase::getDrupalRoot()
- KernelTestBase::setUp in core/
tests/ Drupal/ KernelTests/ KernelTestBase.php - KernelTestBase::setUpBeforeClass in core/
tests/ Drupal/ KernelTests/ KernelTestBase.php
File
- core/
tests/ Drupal/ KernelTests/ KernelTestBase.php, line 209 - Contains \Drupal\KernelTests\KernelTestBase.
Class
- KernelTestBase
- Base class for functional integration tests.
Namespace
Drupal\KernelTestsCode
protected static function getDrupalRoot() {
return dirname(dirname(substr(__DIR__, 0, -strlen(__NAMESPACE__))));
}