mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/11543] Add unit tests for obtain_users_online() with empty forum
PHPBB3-11543
This commit is contained in:
parent
6b3758edd0
commit
3301b01f4c
1 changed files with 16 additions and 0 deletions
|
@ -80,6 +80,22 @@ class phpbb_functions_obtain_online_test extends phpbb_database_test_case
|
||||||
'hidden_online' => 1,
|
'hidden_online' => 1,
|
||||||
'guests_online' => 1,
|
'guests_online' => 1,
|
||||||
)),
|
)),
|
||||||
|
array(2, false, array(
|
||||||
|
'online_users' => array(),
|
||||||
|
'hidden_users' => array(),
|
||||||
|
'total_online' => 0,
|
||||||
|
'visible_online' => 0,
|
||||||
|
'hidden_online' => 0,
|
||||||
|
'guests_online' => 0,
|
||||||
|
)),
|
||||||
|
array(2, true, array(
|
||||||
|
'online_users' => array(),
|
||||||
|
'hidden_users' => array(),
|
||||||
|
'total_online' => 0,
|
||||||
|
'visible_online' => 0,
|
||||||
|
'hidden_online' => 0,
|
||||||
|
'guests_online' => 0,
|
||||||
|
)),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue