aboutsummaryrefslogtreecommitdiffstats
path: root/tests/mock
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2012-12-10 06:09:59 -0500
committerOleg Pudeyev <oleg@bsdpower.com>2012-12-10 06:25:51 -0500
commiteaa0319867783868a761c9ede5398d52351c38d5 (patch)
treea4adb4751b9699da20b87313d37c59a5c342d7be /tests/mock
parent3fe381eed561e724700b21789e28ea3efb1f7ef9 (diff)
parent3c542b852a99f62337c8cf1c6d3e6551c4e3dca1 (diff)
downloadforums-eaa0319867783868a761c9ede5398d52351c38d5.tar
forums-eaa0319867783868a761c9ede5398d52351c38d5.tar.gz
forums-eaa0319867783868a761c9ede5398d52351c38d5.tar.bz2
forums-eaa0319867783868a761c9ede5398d52351c38d5.tar.xz
forums-eaa0319867783868a761c9ede5398d52351c38d5.zip
Merge PR #1125 branch 'develop-olympus' into develop
* develop-olympus: [ticket/10972] Drop user deletion. [ticket/10972] Tweak user addition. [ticket/10972] Add destroy method to mock cache. [ticket/10972] Add mock null cache. [ticket/10972] Backport get_db from develop. [ticket/10972] Added explicit checks for creating duplicate users. [ticket/10972] Moved tests into appropriate places and added comments [ticket/10972] Added methods for creating and deleting basic users Conflicts: tests/mock/cache.php tests/test_framework/phpbb_functional_test_case.php
Diffstat (limited to 'tests/mock')
-rw-r--r--tests/mock/null_cache.php47
1 files changed, 47 insertions, 0 deletions
diff --git a/tests/mock/null_cache.php b/tests/mock/null_cache.php
new file mode 100644
index 0000000000..7bd33b441b
--- /dev/null
+++ b/tests/mock/null_cache.php
@@ -0,0 +1,47 @@
+<?php
+/**
+*
+* @package testing
+* @copyright (c) 2012 phpBB Group
+* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
+*
+*/
+
+class phpbb_mock_null_cache
+{
+ public function __construct()
+ {
+ }
+
+ public function get($var_name)
+ {
+ return false;
+ }
+
+ public function put($var_name, $var, $ttl = 0)
+ {
+ }
+
+ public function destroy($var_name, $table = '')
+ {
+ }
+
+ public function obtain_bots()
+ {
+ return array();
+ }
+
+ public function obtain_word_list()
+ {
+ return array();
+ }
+
+ public function set_bots($bots)
+ {
+ }
+
+ public function sql_exists($query_id)
+ {
+ return false;
+ }
+}