Tests management of database connections.
Hierarchy
- class BackdropTestCase
- class BackdropUnitTestCase
- class ConnectionUnitTest
- class BackdropUnitTestCase
Expanded class hierarchy of ConnectionUnitTest
File
- modules/
simpletest/ tests/ database_test.test, line 3908 - Database tests.
Members
Name | Modifiers | Type | Description |
---|---|---|---|
BackdropTestCase:: |
protected | property | Assertions thrown in that test case. |
BackdropTestCase:: |
protected | property | The database prefix of this test run. |
BackdropTestCase:: |
protected | property | The file directory for this test's files. Usually matches $databasePrefix. |
BackdropTestCase:: |
protected | property | HTTP authentication credentials (<username>:<password>). |
BackdropTestCase:: |
protected | property | HTTP authentication method |
BackdropTestCase:: |
protected | property | The original config directory array, before changing for testing purposes. |
BackdropTestCase:: |
protected | property | The original file directory, before it was changed for testing purposes. |
BackdropTestCase:: |
public | property | Current results of this test case. |
BackdropTestCase:: |
protected | property | Flag to indicate whether the test has been set up. |
BackdropTestCase:: |
protected | property | |
BackdropTestCase:: |
protected | property | |
BackdropTestCase:: |
protected | property | This class is skipped when looking for the source of an assertion. |
BackdropTestCase:: |
public | property | List of subtests to skip. |
BackdropTestCase:: |
protected | property | The test run ID. |
BackdropTestCase:: |
protected | property | Time limit for the test. |
BackdropTestCase:: |
protected | property | URL to the verbose output file directory. |
BackdropTestCase:: |
protected | function | Internal helper: stores the assert. |
BackdropTestCase:: |
protected | function | Check to see if two values are equal. |
BackdropTestCase:: |
protected | function | Check to see if a value is false (an empty string, 0, NULL, or FALSE). |
BackdropTestCase:: |
protected | function | Check to see if two values are identical. |
BackdropTestCase:: |
protected | function | Check to see if two values are not equal. |
BackdropTestCase:: |
protected | function | Check to see if two values are not identical. |
BackdropTestCase:: |
protected | function | Check to see if a value is not NULL. |
BackdropTestCase:: |
protected | function | Check to see if a value is NULL. |
BackdropTestCase:: |
protected | function | Check to see if a value is not false (not an empty string, 0, NULL, or FALSE). |
BackdropTestCase:: |
protected | function | Checks the matching requirements for BackdropTestCase. |
BackdropTestCase:: |
public static | function | Delete an assertion record by message ID. |
BackdropTestCase:: |
protected | function | Fire an error assertion. |
BackdropTestCase:: |
public | function | Handle errors during test runs. |
BackdropTestCase:: |
protected | function | Handle exceptions. |
BackdropTestCase:: |
protected | function | Fire an assertion that is always negative. |
BackdropTestCase:: |
public static | function | Converts a list of possible parameters into a stack of permutations. |
BackdropTestCase:: |
protected | function | Cycles through backtrace until the first non-assertion method is found. |
BackdropTestCase:: |
public static | function | Returns the database connection to the site running Simpletest. |
BackdropTestCase:: |
public static | function | Store an assertion from outside the testing context. |
BackdropTestCase:: |
protected | function | Fire an assertion that is always positive. |
BackdropTestCase:: |
protected | function | Generates a database prefix for running tests. |
BackdropTestCase:: |
public static | function | Generates a random string containing letters and numbers. |
BackdropTestCase:: |
public static | function | Generates a random string of ASCII characters of codes 32 to 126. |
BackdropTestCase:: |
public | function | Run all tests in this class. |
BackdropTestCase:: |
protected | function | Logs a verbose message in a text file. |
BackdropUnitTestCase:: |
protected | property | The list of enabled modules prior to changing for testing. |
BackdropUnitTestCase:: |
function |
Constructor for BackdropUnitTestCase. Overrides BackdropTestCase:: |
|
BackdropUnitTestCase:: |
protected | function |
Clean up any database tables, configuration, or files after each test run. Overrides BackdropTestCase:: |
ConnectionUnitTest:: |
protected | property | |
ConnectionUnitTest:: |
protected | property | |
ConnectionUnitTest:: |
protected | property | |
ConnectionUnitTest:: |
protected | property | |
ConnectionUnitTest:: |
protected | function | Adds a new database connection info to Database. |
ConnectionUnitTest:: |
protected | function | Asserts that a connection ID exists. |
ConnectionUnitTest:: |
protected | function | Asserts that a connection ID does not exist. |
ConnectionUnitTest:: |
protected | function | Returns the connection ID of the current test connection. |
ConnectionUnitTest:: |
function |
Sets up unit test environment. Overrides BackdropUnitTestCase:: |
|
ConnectionUnitTest:: |
function | Tests Database::closeConnection() without query. | |
ConnectionUnitTest:: |
function | Tests Database::closeConnection() with a query. | |
ConnectionUnitTest:: |
function | Tests Database::closeConnection() with a query and custom prefetch method. | |
ConnectionUnitTest:: |
function | Tests Database::closeConnection() with a select query. |