diff options
author | Nathan Guse <nathaniel.guse@gmail.com> | 2013-01-08 22:09:14 -0600 |
---|---|---|
committer | Nathan Guse <nathaniel.guse@gmail.com> | 2013-01-09 16:44:07 -0600 |
commit | 5c91e2569cb3a400acd20bf06cc0e609dd63a778 (patch) | |
tree | 0e449198b6e9c5c0875b5107008de4e633b63cd3 /tests/dbal/migrator_test.php | |
parent | 826607a40509d40ba5a85e5b0bc72a54f77d41d6 (diff) | |
download | forums-5c91e2569cb3a400acd20bf06cc0e609dd63a778.tar forums-5c91e2569cb3a400acd20bf06cc0e609dd63a778.tar.gz forums-5c91e2569cb3a400acd20bf06cc0e609dd63a778.tar.bz2 forums-5c91e2569cb3a400acd20bf06cc0e609dd63a778.tar.xz forums-5c91e2569cb3a400acd20bf06cc0e609dd63a778.zip |
[feature/migrations] Migrations now somewhat works
PHPBB3-9737
Diffstat (limited to 'tests/dbal/migrator_test.php')
-rw-r--r-- | tests/dbal/migrator_test.php | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/tests/dbal/migrator_test.php b/tests/dbal/migrator_test.php index 898a197dfd..463cf9fcec 100644 --- a/tests/dbal/migrator_test.php +++ b/tests/dbal/migrator_test.php @@ -9,7 +9,7 @@ require_once dirname(__FILE__) . '/../../phpBB/includes/functions.php'; require_once dirname(__FILE__) . '/../../phpBB/includes/db/migrator.php'; -require_once dirname(__FILE__) . '/../../phpBB/includes/db/migration.php'; +require_once dirname(__FILE__) . '/../../phpBB/includes/db/migration/migration.php'; require_once dirname(__FILE__) . '/../../phpBB/includes/db/db_tools.php'; require_once dirname(__FILE__) . '/migration/dummy.php'; @@ -28,11 +28,17 @@ class phpbb_dbal_migrator_test extends phpbb_database_test_case public function setUp() { - parent::setup(); + parent::setUp(); $this->db = $this->new_dbal(); $this->db_tools = new phpbb_db_tools($this->db); - $this->migrator = new phpbb_db_migrator($this->db, $this->db_tools, 'phpbb_', MIGRATIONS_TABLE, 'phpBB/', '.php'); + + $this->config = new phpbb_config_db($this->db, new phpbb_mock_cache, 'phpbb_config'); + + $tools = array( + new phpbb_db_migration_tool_config($this->config), + ); + $this->migrator = new phpbb_db_migrator($this->config, $this->db, $this->db_tools, 'phpbb_migrations', dirname(__FILE__) . '/../../phpBB/', 'php', 'phpbb_', $tools); } public function tearDown() |