aboutsummaryrefslogtreecommitdiffstats
path: root/tests/mock/cache.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2013-07-04 00:14:48 +0200
committerMarc Alexander <admin@m-a-styles.de>2013-07-04 00:14:48 +0200
commit68f001aaaf761268975d38d7ddcbdf024bb26def (patch)
treeafa75c51f61239f8ed842de8a8487a1b155ca69d /tests/mock/cache.php
parent6fc997924c2c9792c8151db67e3273202951de3e (diff)
parentb3487b3167632f47d98eef25692924aa7ab25863 (diff)
downloadforums-68f001aaaf761268975d38d7ddcbdf024bb26def.tar
forums-68f001aaaf761268975d38d7ddcbdf024bb26def.tar.gz
forums-68f001aaaf761268975d38d7ddcbdf024bb26def.tar.bz2
forums-68f001aaaf761268975d38d7ddcbdf024bb26def.tar.xz
forums-68f001aaaf761268975d38d7ddcbdf024bb26def.zip
Merge branch 'develop' of https://github.com/phpbb/phpbb3 into ticket/11600
Diffstat (limited to 'tests/mock/cache.php')
-rw-r--r--tests/mock/cache.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/mock/cache.php b/tests/mock/cache.php
index 71af3037f5..440592665a 100644
--- a/tests/mock/cache.php
+++ b/tests/mock/cache.php
@@ -53,6 +53,21 @@ class phpbb_mock_cache implements phpbb_cache_driver_interface
);
}
+ /**
+ * 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 checkVar(PHPUnit_Framework_Assert $test, $var_name, $data)
{
$test->assertTrue(isset($this->data[$var_name]));