aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_framework
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2014-03-13 00:17:59 +0100
committerAndreas Fischer <bantu@phpbb.com>2014-03-13 00:17:59 +0100
commitd3ddf29e59c9670ef62c11a6eef3821b1b6f3334 (patch)
treeb86028e3f156218606e1f2d7e7a9f5ad7fc8a13e /tests/test_framework
parent8960e6d77741b12025229b8e5ad7972fd571722e (diff)
parentca92ed918a57605e969f0485b1ebca53806f0729 (diff)
downloadforums-d3ddf29e59c9670ef62c11a6eef3821b1b6f3334.tar
forums-d3ddf29e59c9670ef62c11a6eef3821b1b6f3334.tar.gz
forums-d3ddf29e59c9670ef62c11a6eef3821b1b6f3334.tar.bz2
forums-d3ddf29e59c9670ef62c11a6eef3821b1b6f3334.tar.xz
forums-d3ddf29e59c9670ef62c11a6eef3821b1b6f3334.zip
Merge pull request #6 from nickvergessen/ticket/bantu/12176
[ticket/12176] Add newest_user_colour to config array to ensure it exists * nickvergessen/ticket/bantu/12176: [ticket/12176] Add newest_user_colour to config array to ensure it exists
Diffstat (limited to 'tests/test_framework')
-rw-r--r--tests/test_framework/phpbb_functional_test_case.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_framework/phpbb_functional_test_case.php b/tests/test_framework/phpbb_functional_test_case.php
index 00b31212b2..857112f29e 100644
--- a/tests/test_framework/phpbb_functional_test_case.php
+++ b/tests/test_framework/phpbb_functional_test_case.php
@@ -423,6 +423,13 @@ class phpbb_functional_test_case extends phpbb_test_case
$config = array();
}
+ /*
+ * We need add some configs into the config array here, otherwise
+ * the set_config() function will try to add the value to the database,
+ * because some DBMS return 0 for sql_affectedrows() when a row was found,
+ * but not changed.
+ */
+ $config['newest_user_colour'] = '';
$config['rand_seed'] = '';
$config['rand_seed_last_update'] = time() + 600;