From 106f6800d4d898f079129e85fd6763c199dae9ec Mon Sep 17 00:00:00 2001 From: Igor Wiedler Date: Tue, 11 Jan 2011 19:38:10 +0100 Subject: [task/config-class] Fix db config constructor param order PHPBB3-9988 --- tests/config/db_test.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tests/config') 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')); } -- cgit v1.2.1