function TestSiteApplicationTest::getTestLockFile
Same name in other branches
- 8.9.x core/tests/Drupal/Tests/Scripts/TestSiteApplicationTest.php \Drupal\Tests\Scripts\TestSiteApplicationTest::getTestLockFile()
- 10 core/tests/Drupal/Tests/Scripts/TestSiteApplicationTest.php \Drupal\Tests\Scripts\TestSiteApplicationTest::getTestLockFile()
- 11.x core/tests/Drupal/Tests/Scripts/TestSiteApplicationTest.php \Drupal\Tests\Scripts\TestSiteApplicationTest::getTestLockFile()
- 11.x core/tests/Drupal/KernelTests/Scripts/TestSiteApplicationTest.php \Drupal\KernelTests\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 330
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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.