mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 14:57:37 +02:00
[ticket/8323] Comments on phpbb_get_banned_user_ids input for test
PHPBB3-8323
This commit is contained in:
@@ -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)
|
// Input to phpbb_get_banned_user_ids (user_id list, ban_end)
|
||||||
// Expected output
|
// Expected output
|
||||||
array(
|
array(
|
||||||
|
// True to get users currently banned
|
||||||
array(array(1, 2, 4, 5, 6), true),
|
array(array(1, 2, 4, 5, 6), true),
|
||||||
array(2 => 2, 5 => 5),
|
array(2 => 2, 5 => 5),
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
|
// False to only get permanently banned users
|
||||||
array(array(1, 2, 4, 5, 6), false),
|
array(array(1, 2, 4, 5, 6), false),
|
||||||
array(2 => 2),
|
array(2 => 2),
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
|
// Unix timestamp to get users banned until that time
|
||||||
array(array(1, 2, 4, 5, 6), 2),
|
array(array(1, 2, 4, 5, 6), 2),
|
||||||
array(2 => 2, 5 => 5, 6 => 6),
|
array(2 => 2, 5 => 5, 6 => 6),
|
||||||
),
|
),
|
||||||
|
Reference in New Issue
Block a user