diff options
author | Igor Wiedler <igor@wiedler.ch> | 2011-01-11 19:38:10 +0100 |
---|---|---|
committer | Igor Wiedler <igor@wiedler.ch> | 2011-01-11 19:38:10 +0100 |
commit | 106f6800d4d898f079129e85fd6763c199dae9ec (patch) | |
tree | 324a6dbc0f2d3143926456942745e11d840edf1d /tests/config/db_test.php | |
parent | fb2642bbc6360dacfd4a3cc9f7e9447b02cb46a1 (diff) | |
download | forums-106f6800d4d898f079129e85fd6763c199dae9ec.tar forums-106f6800d4d898f079129e85fd6763c199dae9ec.tar.gz forums-106f6800d4d898f079129e85fd6763c199dae9ec.tar.bz2 forums-106f6800d4d898f079129e85fd6763c199dae9ec.tar.xz forums-106f6800d4d898f079129e85fd6763c199dae9ec.zip |
[task/config-class] Fix db config constructor param order
PHPBB3-9988
Diffstat (limited to 'tests/config/db_test.php')
-rw-r--r-- | tests/config/db_test.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/config/db_test.php b/tests/config/db_test.php index 04277e869b..07f3bf8d5a 100644 --- a/tests/config/db_test.php +++ b/tests/config/db_test.php @@ -26,7 +26,7 @@ class phpbb_config_db_test extends phpbb_database_test_case $this->cache = new phpbb_mock_cache; $this->db = $this->new_dbal(); - $this->config = new phpbb_config_db($this->cache, $this->db, 'phpbb_config'); + $this->config = new phpbb_config_db($this->db, $this->cache, 'phpbb_config'); } public function test_load_config() @@ -40,7 +40,7 @@ class phpbb_config_db_test extends phpbb_database_test_case $this->config['foo'] = 'x'; // temporary set $this->assertEquals('x', $this->config['foo']); - $config2 = new phpbb_config_db($this->cache, $this->db, 'phpbb_config'); + $config2 = new phpbb_config_db($this->db, $this->cache, 'phpbb_config'); $this->assertEquals('23', $config2['foo']); } @@ -50,7 +50,7 @@ class phpbb_config_db_test extends phpbb_database_test_case $this->assertEquals('17', $this->config['foo']); // re-read config and populate cache - $config2 = new phpbb_config_db($this->cache, $this->db, 'phpbb_config'); + $config2 = new phpbb_config_db($this->db, $this->cache, 'phpbb_config'); $this->cache->checkVar($this, 'config', array('foo' => '17')); } @@ -59,7 +59,7 @@ class phpbb_config_db_test extends phpbb_database_test_case $this->config->set('bar', '17', false); // re-read config and populate cache - $config2 = new phpbb_config_db($this->cache, $this->db, 'phpbb_config'); + $config2 = new phpbb_config_db($this->db, $this->cache, 'phpbb_config'); $this->cache->checkVar($this, 'config', array('foo' => '23')); } @@ -69,7 +69,7 @@ class phpbb_config_db_test extends phpbb_database_test_case $this->assertEquals('5', $this->config['foobar']); // re-read config and populate cache - $config2 = new phpbb_config_db($this->cache, $this->db, 'phpbb_config'); + $config2 = new phpbb_config_db($this->db, $this->cache, 'phpbb_config'); $this->cache->checkVar($this, 'config', array('foo' => '23', 'foobar' => '5')); } @@ -79,7 +79,7 @@ class phpbb_config_db_test extends phpbb_database_test_case $this->assertEquals('5', $this->config['foobar']); // re-read config and populate cache - $config2 = new phpbb_config_db($this->cache, $this->db, 'phpbb_config'); + $config2 = new phpbb_config_db($this->db, $this->cache, 'phpbb_config'); $this->cache->checkVar($this, 'config', array('foo' => '23')); } |