Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
19.05% covered (danger)
19.05%
4 / 21
18.75% covered (danger)
18.75%
3 / 16
CRAP
0.00% covered (danger)
0.00%
0 / 1
phpbb_mock_notification_manager
15.79% covered (danger)
15.79%
3 / 19
18.75% covered (danger)
18.75%
3 / 16
168.88
0.00% covered (danger)
0.00%
0 / 1
 load_notifications
0.00% covered (danger)
0.00%
0 / 4
0.00% covered (danger)
0.00%
0 / 1
2
 mark_notifications
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 mark_notifications_by_parent
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 mark_notifications_by_id
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 add_notifications
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 add_notifications_for_users
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 update_notifications
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 delete_notifications
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 delete_notifications_by_types
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 get_subscription_types
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 get_subscription_methods
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 get_global_subscriptions
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 add_subscription
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 delete_subscription
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 load_users
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 get_user
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2/**
3*
4* This file is part of the phpBB Forum Software package.
5*
6* @copyright (c) phpBB Limited <https://www.phpbb.com>
7* @license GNU General Public License, version 2 (GPL-2.0)
8*
9* For full copyright and license information, please see
10* the docs/CREDITS.txt file.
11*
12*/
13
14/**
15* @ignore
16*/
17if (!defined('IN_PHPBB'))
18{
19    exit;
20}
21
22/**
23* Notifications service class
24*/
25class phpbb_mock_notification_manager
26{
27    public function load_notifications()
28    {
29        return array(
30            'notifications'        => array(),
31            'unread_count'        => 0,
32        );
33    }
34
35    public function mark_notifications()
36    {
37    }
38
39    public function mark_notifications_by_parent()
40    {
41    }
42
43    public function mark_notifications_by_id()
44    {
45    }
46
47    public function add_notifications()
48    {
49        return array();
50    }
51
52    public function add_notifications_for_users()
53    {
54    }
55
56    public function update_notifications()
57    {
58    }
59
60    public function delete_notifications()
61    {
62    }
63
64    public function delete_notifications_by_types()
65    {
66    }
67
68    public function get_subscription_types()
69    {
70        return array();
71    }
72
73    public function get_subscription_methods()
74    {
75        return array();
76    }
77
78
79    public function get_global_subscriptions()
80    {
81        return array();
82    }
83
84    public function add_subscription()
85    {
86    }
87
88    public function delete_subscription()
89    {
90    }
91
92    public function load_users()
93    {
94    }
95
96    public function get_user()
97    {
98        return null;
99    }
100}