mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
[ticket/10240] Added censor_text tests.
PHPBB-10240
This commit is contained in:
@@ -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.');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user