aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_framework
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-03-12 19:09:29 +0100
committerJoas Schilling <nickvergessen@gmx.de>2014-03-12 20:08:55 +0100
commitca92ed918a57605e969f0485b1ebca53806f0729 (patch)
treeb86028e3f156218606e1f2d7e7a9f5ad7fc8a13e /tests/test_framework
parent8960e6d77741b12025229b8e5ad7972fd571722e (diff)
downloadforums-ca92ed918a57605e969f0485b1ebca53806f0729.tar
forums-ca92ed918a57605e969f0485b1ebca53806f0729.tar.gz
forums-ca92ed918a57605e969f0485b1ebca53806f0729.tar.bz2
forums-ca92ed918a57605e969f0485b1ebca53806f0729.tar.xz
forums-ca92ed918a57605e969f0485b1ebca53806f0729.zip
[ticket/12176] Add newest_user_colour to config array to ensure it exists
PHPBB3-12176
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;