mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[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
This commit is contained in:
@@ -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('', ''),
|
||||
|
Reference in New Issue
Block a user