diff options
| author | Andreas Fischer <bantu@phpbb.com> | 2013-06-11 14:39:43 +0200 |
|---|---|---|
| committer | Andreas Fischer <bantu@phpbb.com> | 2013-06-11 14:39:43 +0200 |
| commit | 949a443bfe6f75e0cb3d944d05b25797c8a63697 (patch) | |
| tree | 342becb9101e03263bfa694c9976ebba236da211 /tests/test_framework/phpbb_database_test_case.php | |
| parent | 2dcf703493603289e1740aa504211249f2afc104 (diff) | |
| parent | 33bce3fac6c29787e121e5d000251353637dd422 (diff) | |
| download | forums-949a443bfe6f75e0cb3d944d05b25797c8a63697.tar forums-949a443bfe6f75e0cb3d944d05b25797c8a63697.tar.gz forums-949a443bfe6f75e0cb3d944d05b25797c8a63697.tar.bz2 forums-949a443bfe6f75e0cb3d944d05b25797c8a63697.tar.xz forums-949a443bfe6f75e0cb3d944d05b25797c8a63697.zip | |
Merge remote-tracking branch 'nickvergessen/ticket/11601' into develop-olympus
* nickvergessen/ticket/11601:
[ticket/11601] Add protected method for database sync and call it
[ticket/11601] Split post_setup_synchronisation logic from xml parsing
Diffstat (limited to 'tests/test_framework/phpbb_database_test_case.php')
| -rw-r--r-- | tests/test_framework/phpbb_database_test_case.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/test_framework/phpbb_database_test_case.php b/tests/test_framework/phpbb_database_test_case.php index beddece470..28d3a716f0 100644 --- a/tests/test_framework/phpbb_database_test_case.php +++ b/tests/test_framework/phpbb_database_test_case.php @@ -62,6 +62,21 @@ abstract class phpbb_database_test_case extends PHPUnit_Extensions_Database_Test } } + /** + * Performs synchronisations for a given table/column set on the database + * + * @param array $table_column_map Information about the tables/columns to synchronise + * + * @return null + */ + protected function database_synchronisation($table_column_map) + { + $config = $this->get_database_config(); + $manager = $this->create_connection_manager($config); + $manager->connect(); + $manager->database_synchronisation($table_column_map); + } + public function createXMLDataSet($path) { $db_config = $this->get_database_config(); |
