diff options
Diffstat (limited to 'tests/mock/cache.php')
| -rw-r--r-- | tests/mock/cache.php | 15 | 
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/mock/cache.php b/tests/mock/cache.php index aa0db5ab20..acf4288319 100644 --- a/tests/mock/cache.php +++ b/tests/mock/cache.php @@ -74,6 +74,21 @@ class phpbb_mock_cache  		);  	} +	/** +	* Obtain disallowed usernames. Input data via standard put method. +	*/ +	public function obtain_disallowed_usernames() +	{ +		if (($usernames = $this->get('_disallowed_usernames')) !== false) +		{ +			return $usernames; +		} +		else +		{ +			return array(); +		} +	} +  	public function set_bots($bots)  	{  		$this->data['_bots'] = $bots;  | 
