aboutsummaryrefslogtreecommitdiffstats
path: root/tests/mock
diff options
context:
space:
mode:
authorCesar G <prototech91@gmail.com>2014-03-19 03:05:36 -0700
committerCesar G <prototech91@gmail.com>2014-03-19 03:08:34 -0700
commit2a822931c6d95fe9e6066752ec59ab614189837e (patch)
treef7b9bd07131073dc3c2f990b5515deda412ed43e /tests/mock
parent7c1ab5f79d621f210fa1bdea0e9b217a10c20fa9 (diff)
downloadforums-2a822931c6d95fe9e6066752ec59ab614189837e.tar
forums-2a822931c6d95fe9e6066752ec59ab614189837e.tar.gz
forums-2a822931c6d95fe9e6066752ec59ab614189837e.tar.bz2
forums-2a822931c6d95fe9e6066752ec59ab614189837e.tar.xz
forums-2a822931c6d95fe9e6066752ec59ab614189837e.zip
[ticket/11959] Add unit tests.
PHPBB3-11959
Diffstat (limited to 'tests/mock')
-rw-r--r--tests/mock/notification_type_post.php36
1 files changed, 36 insertions, 0 deletions
diff --git a/tests/mock/notification_type_post.php b/tests/mock/notification_type_post.php
new file mode 100644
index 0000000000..80f2afbae0
--- /dev/null
+++ b/tests/mock/notification_type_post.php
@@ -0,0 +1,36 @@
+<?php
+/**
+*
+* @package notifications
+* @copyright (c) 2014 phpBB Group
+* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
+*
+*/
+
+/**
+* @ignore
+*/
+if (!defined('IN_PHPBB'))
+{
+ exit;
+}
+
+class phpbb_mock_notification_type_post extends \phpbb\notification\type\post
+{
+ public function __construct($user_loader, $db, $cache, $user, $auth, $config, $phpbb_root_path, $php_ext, $notification_types_table, $notifications_table, $user_notifications_table)
+ {
+ $this->user_loader = $user_loader;
+ $this->db = $db;
+ $this->cache = $cache;
+ $this->user = $user;
+ $this->auth = $auth;
+ $this->config = $config;
+
+ $this->phpbb_root_path = $phpbb_root_path;
+ $this->php_ext = $php_ext;
+
+ $this->notification_types_table = $notification_types_table;
+ $this->notifications_table = $notifications_table;
+ $this->user_notifications_table = $user_notifications_table;
+ }
+}