1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/11103] More extensive notification tests

PHPBB3-11103
This commit is contained in:
Nathan Guse
2012-10-05 15:09:29 -05:00
parent 948bd69495
commit a57f207d68
3 changed files with 256 additions and 26 deletions

View File

@@ -0,0 +1,35 @@
<?php
/**
*
* @package testing
* @copyright (c) 2012 phpBB Group
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*
*/
class phpbb_mock_notifications_auth extends phpbb_auth
{
function acl_get_list($user_id = false, $opts = false, $forum_id = false)
{
$user_id = (!is_array($user_id)) ? array($user_id) : $user_id;
$opts = (!is_array($opts)) ? array($opts) : $opts;
$forum_id = (!is_array($forum_id)) ? array($forum_id) : $forum_id;
$auth_list = array();
foreach ($forum_id as $fid)
{
foreach ($opts as $opt)
{
$auth_list[$fid][$opt] = array();
foreach ($user_id as $uid)
{
$auth_list[$fid][$opt][] = $uid;
}
}
}
return $auth_list;
}
}