class TestTestDatabase in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Test/TestDatabaseTest.php \Drupal\Tests\Core\Test\TestTestDatabase
Stub class supports TestDatabaseTest::testConstructorNullPrefix().
Hierarchy
- class \Drupal\Core\Test\TestDatabase
- class \Drupal\Tests\Core\Test\TestTestDatabase
Expanded class hierarchy of TestTestDatabase
File
- core/
tests/ Drupal/ Tests/ Core/ Test/ TestDatabaseTest.php, line 68
Namespace
Drupal\Tests\Core\TestView source
class TestTestDatabase extends TestDatabase {
protected function getTestLock($create_lock = FALSE) {
return 23;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TestDatabase:: |
protected | property | The test database prefix. | |
TestDatabase:: |
protected | property | A random number used to ensure that test fixtures are unique to each test method. | |
TestDatabase:: |
public static | function | Returns the database connection to the site running Simpletest. | |
TestDatabase:: |
public | function | Gets the test database prefix. | |
TestDatabase:: |
protected | function | Gets the lock file path. | |
TestDatabase:: |
public | function | Gets the relative path to the test site directory. | |
TestDatabase:: |
public static | function | Store an assertion from outside the testing context. | |
TestDatabase:: |
public static | function | Get information about the last test that ran given a test ID. | |
TestDatabase:: |
public | function | Reads the error log and reports any errors as assertion failures. | |
TestDatabase:: |
public static | function | Inserts the parsed PHPUnit results into {simpletest}. | |
TestDatabase:: |
public static | function | Releases all test locks. | |
TestDatabase:: |
public | function | Releases a lock. | |
TestDatabase:: |
public static | function | Defines the database schema for run-tests.sh and simpletest module. | |
TestDatabase:: |
public | function | TestDatabase constructor. | |
TestTestDatabase:: |
protected | function |
Generates a unique lock ID for the test method. Overrides TestDatabase:: |