aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functions
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2012-12-13 20:05:00 -0600
committerNathan Guse <nathaniel.guse@gmail.com>2012-12-13 20:05:00 -0600
commitd68778e7ebd801d396a8ec8694499f2ebdbb809f (patch)
treeb5f126b92624e4ff2fa4af149c3a9a75c676303c /tests/functions
parent12aa6b4b2cfda48f94c44865209f576654632b41 (diff)
downloadforums-d68778e7ebd801d396a8ec8694499f2ebdbb809f.tar
forums-d68778e7ebd801d396a8ec8694499f2ebdbb809f.tar.gz
forums-d68778e7ebd801d396a8ec8694499f2ebdbb809f.tar.bz2
forums-d68778e7ebd801d396a8ec8694499f2ebdbb809f.tar.xz
forums-d68778e7ebd801d396a8ec8694499f2ebdbb809f.zip
[ticket/8323] Comments on phpbb_get_banned_user_ids input for test
PHPBB3-8323
Diffstat (limited to 'tests/functions')
-rw-r--r--tests/functions/phpbb_get_banned_user_ids.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/functions/phpbb_get_banned_user_ids.php b/tests/functions/phpbb_get_banned_user_ids.php
index 76c0204970..96de5c5767 100644
--- a/tests/functions/phpbb_get_banned_user_ids.php
+++ b/tests/functions/phpbb_get_banned_user_ids.php
@@ -22,14 +22,17 @@ class phpbb_get_banned_user_ids_test extends phpbb_database_test_case
// Input to phpbb_get_banned_user_ids (user_id list, ban_end)
// Expected output
array(
+ // True to get users currently banned
array(array(1, 2, 4, 5, 6), true),
array(2 => 2, 5 => 5),
),
array(
+ // False to only get permanently banned users
array(array(1, 2, 4, 5, 6), false),
array(2 => 2),
),
array(
+ // Unix timestamp to get users banned until that time
array(array(1, 2, 4, 5, 6), 2),
array(2 => 2, 5 => 5, 6 => 6),
),