diff options
author | Nathan Guse <nathaniel.guse@gmail.com> | 2012-10-04 15:28:51 -0500 |
---|---|---|
committer | Nathan Guse <nathaniel.guse@gmail.com> | 2012-10-04 15:28:51 -0500 |
commit | 33371effc414fd1712cfd819a5d36b18a91c1e3f (patch) | |
tree | 82a60c58b0cadf39ae3aa9ef46dc3f9e46e1c2d7 /tests/mock | |
parent | ff136cc96a62147bc7468b716b86a30f12754e77 (diff) | |
download | forums-33371effc414fd1712cfd819a5d36b18a91c1e3f.tar forums-33371effc414fd1712cfd819a5d36b18a91c1e3f.tar.gz forums-33371effc414fd1712cfd819a5d36b18a91c1e3f.tar.bz2 forums-33371effc414fd1712cfd819a5d36b18a91c1e3f.tar.xz forums-33371effc414fd1712cfd819a5d36b18a91c1e3f.zip |
[ticket/11103] Mock notification manager
Fixing delete_user_pms_test.php
PHPBB3-11103
Diffstat (limited to 'tests/mock')
-rw-r--r-- | tests/mock/notification_manager.php | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/tests/mock/notification_manager.php b/tests/mock/notification_manager.php new file mode 100644 index 0000000000..fdcd681de4 --- /dev/null +++ b/tests/mock/notification_manager.php @@ -0,0 +1,76 @@ +<?php +/** +* +* @package notifications +* @copyright (c) 2012 phpBB Group +* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 +* +*/ + +/** +* @ignore +*/ +if (!defined('IN_PHPBB')) +{ + exit; +} + +/** +* Notifications service class +* @package notifications +*/ +class phpbb_mock_notification_manager +{ + public function load_notifications() + { + return array( + 'notifications' => array(), + 'unread_count' => 0, + ); + } + + public function mark_notifications_read() {} + + public function mark_notifications_read_by_parent() {} + + public function mark_notifications_read_by_id() {} + + + public function add_notifications() + { + return array(); + } + + public function add_notifications_for_users() {} + + public function update_notifications() {} + + public function delete_notifications() {} + + public function get_subscription_types() + { + return array(); + } + + public function get_subscription_methods() + { + return array(); + } + + + public function get_subscriptions() + { + return array(); + } + + public function add_subscription() {} + + public function delete_subscription() {} + + public function load_users() {} + + public function get_user() + { + return null; + } +} |