diff options
author | Callum Macrae <callum@lynxphp.com> | 2011-08-23 12:21:20 +0100 |
---|---|---|
committer | Callum Macrae <callum@lynxphp.com> | 2011-08-23 13:28:42 +0100 |
commit | 03da3c7c4c2d3957b738485935386723c536671b (patch) | |
tree | 3a149d607ea0620844c89d5352f102f224181752 /tests/text_processing | |
parent | d4f1b92479aeaab313d18c172e5e2fede7035281 (diff) | |
download | forums-03da3c7c4c2d3957b738485935386723c536671b.tar forums-03da3c7c4c2d3957b738485935386723c536671b.tar.gz forums-03da3c7c4c2d3957b738485935386723c536671b.tar.bz2 forums-03da3c7c4c2d3957b738485935386723c536671b.tar.xz forums-03da3c7c4c2d3957b738485935386723c536671b.zip |
[ticket/10240] Added optionset to mock_user in the tests.
Also made optionset use the value set by optionset. We're not checking
whether the option is set or not, because we would just throw an error
if it wasn't set, and it throws an error anyway.
PHPBB3-10240
Diffstat (limited to 'tests/text_processing')
-rw-r--r-- | tests/text_processing/censor_text_test.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/text_processing/censor_text_test.php b/tests/text_processing/censor_text_test.php index 6138d92e65..2843f0b20b 100644 --- a/tests/text_processing/censor_text_test.php +++ b/tests/text_processing/censor_text_test.php @@ -19,6 +19,8 @@ class phpbb_text_processing_censor_text_test extends phpbb_test_case global $cache, $user; $cache = new phpbb_mock_cache; $user = new phpbb_mock_user; + + $user->optionset('viewcensors', false); return array( array('', ''), |