1
0
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:
Callum Macrae
2011-08-22 15:35:47 +01:00
parent 540ca1a8d8
commit fa5c7f6440
3 changed files with 107 additions and 0 deletions

View File

@@ -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.');
}
}
}