diff options
author | Andreas Fischer <bantu@phpbb.com> | 2013-06-11 14:39:50 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2013-06-11 14:39:50 +0200 |
commit | b74b84dbec62c57dc7d0a0c9d01bb64f88a74338 (patch) | |
tree | 10c1535688c651fce9239bd8ab4565479bcd1838 /tests/test_framework/phpbb_database_test_case.php | |
parent | fba093de0578881b78128c5faa71a5194fe24b4e (diff) | |
parent | 949a443bfe6f75e0cb3d944d05b25797c8a63697 (diff) | |
download | forums-b74b84dbec62c57dc7d0a0c9d01bb64f88a74338.tar forums-b74b84dbec62c57dc7d0a0c9d01bb64f88a74338.tar.gz forums-b74b84dbec62c57dc7d0a0c9d01bb64f88a74338.tar.bz2 forums-b74b84dbec62c57dc7d0a0c9d01bb64f88a74338.tar.xz forums-b74b84dbec62c57dc7d0a0c9d01bb64f88a74338.zip |
Merge branch 'develop-olympus' into develop
* develop-olympus:
[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 c11537b047..c72ea5f765 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(); |