Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
11 / 11 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
1 / 1 |
| phpbb_mock_notifications_auth | |
100.00% |
11 / 11 |
|
100.00% |
2 / 2 |
8 | |
100.00% |
1 / 1 |
| acl_get_list | |
100.00% |
10 / 10 |
|
100.00% |
1 / 1 |
7 | |||
| acl_get | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 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 | class phpbb_mock_notifications_auth extends \phpbb\auth\auth |
| 15 | { |
| 16 | function acl_get_list($user_id = false, $opts = false, $forum_id = false) |
| 17 | { |
| 18 | $user_id = (!is_array($user_id)) ? array($user_id) : $user_id; |
| 19 | $opts = (!is_array($opts)) ? array($opts) : $opts; |
| 20 | $forum_id = (!is_array($forum_id)) ? array($forum_id) : $forum_id; |
| 21 | |
| 22 | $auth_list = array(); |
| 23 | |
| 24 | foreach ($forum_id as $fid) |
| 25 | { |
| 26 | foreach ($opts as $opt) |
| 27 | { |
| 28 | $auth_list[$fid][$opt] = array(); |
| 29 | |
| 30 | foreach ($user_id as $uid) |
| 31 | { |
| 32 | $auth_list[$fid][$opt][] = $uid; |
| 33 | } |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | return $auth_list; |
| 38 | } |
| 39 | |
| 40 | function acl_get($opt, $f = 0) |
| 41 | { |
| 42 | return true; |
| 43 | } |
| 44 | } |