diff options
author | Callum Macrae <callum@lynxphp.com> | 2011-08-22 15:35:47 +0100 |
---|---|---|
committer | Callum Macrae <callum@lynxphp.com> | 2011-08-22 19:02:27 +0100 |
commit | fa5c7f6440282891dba1142920157971b90b5ad1 (patch) | |
tree | 4c5c6ae65dc58deceb718847df9c1ce7b03cc74f /tests/mock_user.php | |
parent | 540ca1a8d88279b120b142c244c96c9fae9a867b (diff) | |
download | forums-fa5c7f6440282891dba1142920157971b90b5ad1.tar forums-fa5c7f6440282891dba1142920157971b90b5ad1.tar.gz forums-fa5c7f6440282891dba1142920157971b90b5ad1.tar.bz2 forums-fa5c7f6440282891dba1142920157971b90b5ad1.tar.xz forums-fa5c7f6440282891dba1142920157971b90b5ad1.zip |
[ticket/10240] Added censor_text tests.
PHPBB-10240
Diffstat (limited to 'tests/mock_user.php')
-rw-r--r-- | tests/mock_user.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/mock_user.php b/tests/mock_user.php index 74d31c4c4a..a6ff5f6628 100644 --- a/tests/mock_user.php +++ b/tests/mock_user.php @@ -17,4 +17,16 @@ class phpbb_mock_user { public $host = "testhost"; public $page = array('root_script_path' => '/'); + + public function optionget($item) + { + switch ($item) + { + case 'viewcensors': + return false; + + default: + trigger_error('Option not found, add it to the mock user object.'); + } + } } |