function BuildTestBase::getDrupalRoot
Same name and namespace in other branches
- 11.x core/tests/Drupal/BuildTests/Framework/BuildTestBase.php \Drupal\BuildTests\Framework\BuildTestBase::getDrupalRoot()
- 10 core/tests/Drupal/BuildTests/Framework/BuildTestBase.php \Drupal\BuildTests\Framework\BuildTestBase::getDrupalRoot()
- 8.9.x core/tests/Drupal/BuildTests/Framework/BuildTestBase.php \Drupal\BuildTests\Framework\BuildTestBase::getDrupalRoot()
Get the root path of this Drupal codebase.
Return value
string The full path to the root of this Drupal codebase.
1 call to BuildTestBase::getDrupalRoot()
- LegacyScriptsTest::makeVendorPackage in core/
tests/ Drupal/ BuildTests/ Composer/ LegacyScriptsTest.php - Creates a test package that points to all the projects in vendor.
File
-
core/
tests/ Drupal/ BuildTests/ Framework/ BuildTestBase.php, line 604
Class
- BuildTestBase
- Provides a workspace to test build processes.
Namespace
Drupal\BuildTests\FrameworkCode
protected function getDrupalRoot() {
return realpath(dirname(__DIR__, 5));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.