protected function TestSiteApplicationTest::getTestLockFile in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Scripts/TestSiteApplicationTest.php \Drupal\Tests\Scripts\TestSiteApplicationTest::getTestLockFile()
- 9 core/tests/Drupal/Tests/Scripts/TestSiteApplicationTest.php \Drupal\Tests\Scripts\TestSiteApplicationTest::getTestLockFile()
Gets the lock file path.
Parameters
string $db_prefix: The prefix of the installed test site.
Return value
string The lock file path.
1 call to TestSiteApplicationTest::getTestLockFile()
- TestSiteApplicationTest::testInstallScript in core/
tests/ Drupal/ Tests/ Scripts/ TestSiteApplicationTest.php - @coversNothing
File
- core/
tests/ Drupal/ Tests/ Scripts/ TestSiteApplicationTest.php, line 336
Class
- TestSiteApplicationTest
- Tests core/scripts/test-site.php.
Namespace
Drupal\Tests\ScriptsCode
protected function getTestLockFile($db_prefix) {
$lock_id = str_replace('test', '', $db_prefix);
return FileSystem::getOsTemporaryDirectory() . '/test_' . $lock_id;
}