function TestDatabase::getTestSitePath
Same name in other branches
- 9 core/lib/Drupal/Core/Test/TestDatabase.php \Drupal\Core\Test\TestDatabase::getTestSitePath()
- 8.9.x core/lib/Drupal/Core/Test/TestDatabase.php \Drupal\Core\Test\TestDatabase::getTestSitePath()
- 10 core/lib/Drupal/Core/Test/TestDatabase.php \Drupal\Core\Test\TestDatabase::getTestSitePath()
Gets the relative path to the test site directory.
Return value
string The relative path to the test site directory.
1 call to TestDatabase::getTestSitePath()
- TestDatabase::getPhpErrorLogPath in core/
lib/ Drupal/ Core/ Test/ TestDatabase.php - Gets the file path of the PHP error log of the test.
File
-
core/
lib/ Drupal/ Core/ Test/ TestDatabase.php, line 66
Class
- TestDatabase
- Provides helper methods for interacting with the fixture database.
Namespace
Drupal\Core\TestCode
public function getTestSitePath() : string {
return 'sites/simpletest/' . $this->lockId;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.