Method | Description | |
---|---|---|
__construct ( array $config ) | Constructor | |
connect ( boolean $use_db = true ) | Creates a PDO connection for the configured database. | |
database_synchronisation ( array $table_column_map ) : null | Performs synchronisations on the database after a fixture has been loaded | |
get_pdo ( ) | Return the current PDO instance | |
get_tables ( ) : array(string) | Retrieves a list of all tables from the database. | |
load_schema ( $db ) | Load the phpBB database schema into the database | |
post_setup_synchronisation ( PHPUnit_Extensions_Database_DataSet_XmlDataSet $xml_data_set ) : null | Performs synchronisations on the database after a fixture has been loaded | |
purge_extras ( ) | Removes extra objects from a database. This is for cases where dropping the database fails. | |
recreate_db ( ) | Drop the database if it exists and re-create it |
Method | Description | |
---|---|---|
ensure_connected ( $method_name ) | Throw an exception if not connected | |
get_dbms_data ( $dbms ) | Map a phpBB dbms driver name to dbms data array | |
load_schema_from_file ( $directory, phpbb\db\driver\driver_interface $db ) | Compile the correct schema filename (as per create_schema_files) and load it into the database. |
public __construct ( array $config ) | ||
$config | array | Tests database configuration as returned by phpbb_database_test_case::get_database_config() |
public database_synchronisation ( array $table_column_map ) : null | ||
$table_column_map | array | Array of tables/columns to synchronise array(table1 => array(column1, column2)) |
return | null |
protected ensure_connected ( $method_name ) |
protected get_dbms_data ( $dbms ) |
public get_tables ( ) : array(string) | ||
return | array(string) |
public load_schema ( $db ) |
protected load_schema_from_file ( $directory, phpbb\db\driver\driver_interface $db ) | ||
$db | phpbb\db\driver\driver_interface |
public post_setup_synchronisation ( PHPUnit_Extensions_Database_DataSet_XmlDataSet $xml_data_set ) : null | ||
$xml_data_set | PHPUnit_Extensions_Database_DataSet_XmlDataSet | Information about the tables contained within the loaded fixture |
return | null |
public purge_extras ( ) |
public recreate_db ( ) |