aboutsummaryrefslogtreecommitdiffstats
path: root/tests/mock
diff options
context:
space:
mode:
authorJoseph Warner <hardolaf@hardolaf.com>2013-09-06 20:35:18 -0400
committerJoseph Warner <hardolaf@hardolaf.com>2013-09-06 20:35:54 -0400
commit3a6b3d7c2b38b244d5c725ce1c7829328dae770f (patch)
treea05c248c1f3e99ad2ebbfb16f12427f059cd6e9e /tests/mock
parentd5808f13e5fa70ecc802c2a5a11c3143746c93f0 (diff)
parent8d6b03c438392cebed941491684ff835bf7136a8 (diff)
downloadforums-3a6b3d7c2b38b244d5c725ce1c7829328dae770f.tar
forums-3a6b3d7c2b38b244d5c725ce1c7829328dae770f.tar.gz
forums-3a6b3d7c2b38b244d5c725ce1c7829328dae770f.tar.bz2
forums-3a6b3d7c2b38b244d5c725ce1c7829328dae770f.tar.xz
forums-3a6b3d7c2b38b244d5c725ce1c7829328dae770f.zip
[feature/oauth] Merge branch 'develop' of git://github.com/phpbb/phpbb3 into feature/oauth
Conflicts: phpBB/composer.json phpBB/composer.lock phpBB/develop/create_schema_files.php phpBB/includes/ucp/ucp_register.php PHPBB3-11673
Diffstat (limited to 'tests/mock')
-rw-r--r--tests/mock/auth_provider.php23
-rw-r--r--tests/mock/session_testable.php4
2 files changed, 27 insertions, 0 deletions
diff --git a/tests/mock/auth_provider.php b/tests/mock/auth_provider.php
new file mode 100644
index 0000000000..a576ef6b67
--- /dev/null
+++ b/tests/mock/auth_provider.php
@@ -0,0 +1,23 @@
+<?php
+/**
+ *
+ * @package testing
+ * @copyright (c) 2013 phpBB Group
+ * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
+ *
+ */
+
+/**
+ * Mock auth provider class with basic functions to help test sessions.
+ */
+class phpbb_mock_auth_provider extends phpbb_auth_provider_base
+{
+ public function login($username, $password)
+ {
+ return array(
+ 'status' => "",
+ 'error_msg' => "",
+ 'user_row' => "",
+ );
+ }
+}
diff --git a/tests/mock/session_testable.php b/tests/mock/session_testable.php
index 56ff8c8b32..283f9af192 100644
--- a/tests/mock/session_testable.php
+++ b/tests/mock/session_testable.php
@@ -58,5 +58,9 @@ class phpbb_mock_session_testable extends phpbb_session
}
}
}
+
+ public function setup()
+ {
+ }
}