diff options
| author | Joas Schilling <nickvergessen@gmx.de> | 2013-05-14 16:02:30 +0200 |
|---|---|---|
| committer | Joas Schilling <nickvergessen@gmx.de> | 2013-06-06 22:54:17 +0200 |
| commit | 3301b01f4c659af15393a58b8221d62a906551be (patch) | |
| tree | 3d08ad8b4f5d5618b52ef82f2663954341cabb36 | |
| parent | 6b3758edd091f09f46b8117df39c4d104e96739b (diff) | |
| download | forums-3301b01f4c659af15393a58b8221d62a906551be.tar forums-3301b01f4c659af15393a58b8221d62a906551be.tar.gz forums-3301b01f4c659af15393a58b8221d62a906551be.tar.bz2 forums-3301b01f4c659af15393a58b8221d62a906551be.tar.xz forums-3301b01f4c659af15393a58b8221d62a906551be.zip | |
[ticket/11543] Add unit tests for obtain_users_online() with empty forum
PHPBB3-11543
| -rw-r--r-- | tests/functions/obtain_online_test.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/functions/obtain_online_test.php b/tests/functions/obtain_online_test.php index efb8e97fc7..8fd7e6a977 100644 --- a/tests/functions/obtain_online_test.php +++ b/tests/functions/obtain_online_test.php @@ -80,6 +80,22 @@ class phpbb_functions_obtain_online_test extends phpbb_database_test_case 'hidden_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, + )), ); } |
