You are here

protected function TestTestDatabase::getTestLock in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Test/TestDatabaseTest.php \Drupal\Tests\Core\Test\TestTestDatabase::getTestLock()
  2. 9 core/tests/Drupal/Tests/Core/Test/TestDatabaseTest.php \Drupal\Tests\Core\Test\TestTestDatabase::getTestLock()

Generates a unique lock ID for the test method.

Parameters

bool $create_lock: (optional) Whether or not to create a lock file. Defaults to FALSE.

Return value

int The unique lock ID for the test method.

Overrides TestDatabase::getTestLock

File

core/tests/Drupal/Tests/Core/Test/TestDatabaseTest.php, line 70

Class

TestTestDatabase
Stub class supports TestDatabaseTest::testConstructorNullPrefix().

Namespace

Drupal\Tests\Core\Test

Code

protected function getTestLock($create_lock = FALSE) {
  return 23;
}