class TestTestDatabase

Same name in other branches
  1. 8.9.x core/tests/Drupal/Tests/Core/Test/TestDatabaseTest.php \Drupal\Tests\Core\Test\TestTestDatabase
  2. 10 core/tests/Drupal/Tests/Core/Test/TestDatabaseTest.php \Drupal\Tests\Core\Test\TestTestDatabase
  3. 11.x 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

Title Sort descending Modifiers Object type Summary Overriden Title
TestDatabase::$databasePrefix protected property The test database prefix.
TestDatabase::$lockId protected property The test lock ID.
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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.