You are here

class TestTestDatabase in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Test/TestDatabaseTest.php \Drupal\Tests\Core\Test\TestTestDatabase

Stub class supports TestDatabaseTest::testConstructorNullPrefix().

Hierarchy

Expanded class hierarchy of TestTestDatabase

File

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

Namespace

Drupal\Tests\Core\Test
View source
class TestTestDatabase extends TestDatabase {
  protected function getTestLock($create_lock = FALSE) {
    return 23;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
TestDatabase::$databasePrefix protected property The test database prefix.
TestDatabase::$lockId protected property A random number used to ensure that test fixtures are unique to each test method.
TestDatabase::getConnection public static function Returns the database connection to the site running Simpletest.
TestDatabase::getDatabasePrefix public function Gets the test database prefix.
TestDatabase::getLockFile protected function Gets the lock file path.
TestDatabase::getTestSitePath public function Gets the relative path to the test site directory.
TestDatabase::insertAssert public static function Store an assertion from outside the testing context.
TestDatabase::lastTestGet public static function Get information about the last test that ran given a test ID.
TestDatabase::logRead public function Reads the error log and reports any errors as assertion failures.
TestDatabase::processPhpUnitResults public static function Inserts the parsed PHPUnit results into {simpletest}.
TestDatabase::releaseAllTestLocks public static function Releases all test locks.
TestDatabase::releaseLock public function Releases a lock.
TestDatabase::testingSchema public static function Defines the database schema for run-tests.sh and simpletest module.
TestDatabase::__construct public function TestDatabase constructor.
TestTestDatabase::getTestLock protected function Generates a unique lock ID for the test method. Overrides TestDatabase::getTestLock