protected function TestDatabase::getLockFile in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Test/TestDatabase.php \Drupal\Core\Test\TestDatabase::getLockFile()
- 9 core/lib/Drupal/Core/Test/TestDatabase.php \Drupal\Core\Test\TestDatabase::getLockFile()
Gets the lock file path.
Parameters
int $lock_id: The test method lock ID.
Return value
string A file path to the symbolic link that prevents the lock ID being re-used.
File
- core/
lib/ Drupal/ Core/ Test/ TestDatabase.php, line 177
Class
- TestDatabase
- Provides helper methods for interacting with the fixture database.
Namespace
Drupal\Core\TestCode
protected function getLockFile($lock_id) {
return FileSystem::getOsTemporaryDirectory() . '/test_' . $lock_id;
}