diff options
author | Nathan Guse <nathaniel.guse@gmail.com> | 2012-12-11 11:24:18 -0600 |
---|---|---|
committer | Nathan Guse <nathaniel.guse@gmail.com> | 2012-12-11 11:24:18 -0600 |
commit | 12aa6b4b2cfda48f94c44865209f576654632b41 (patch) | |
tree | 4639b30b1b771d243b2d68bbd8b7918086c1305f /tests/functions | |
parent | e74f4ab6e439fe68a565586504d6376abaa4c253 (diff) | |
download | forums-12aa6b4b2cfda48f94c44865209f576654632b41.tar forums-12aa6b4b2cfda48f94c44865209f576654632b41.tar.gz forums-12aa6b4b2cfda48f94c44865209f576654632b41.tar.bz2 forums-12aa6b4b2cfda48f94c44865209f576654632b41.tar.xz forums-12aa6b4b2cfda48f94c44865209f576654632b41.zip |
[ticket/8323] More readability in test case
PHPBB3-8323
Diffstat (limited to 'tests/functions')
-rw-r--r-- | tests/functions/phpbb_get_banned_user_ids.php | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/tests/functions/phpbb_get_banned_user_ids.php b/tests/functions/phpbb_get_banned_user_ids.php index 9f56480235..76c0204970 100644 --- a/tests/functions/phpbb_get_banned_user_ids.php +++ b/tests/functions/phpbb_get_banned_user_ids.php @@ -19,9 +19,20 @@ class phpbb_get_banned_user_ids_test extends phpbb_database_test_case public function phpbb_get_banned_user_ids_data() { return array( - array(array(array(1, 2, 4, 5, 6), true), array(2 => 2, 5 => 5)), - array(array(array(1, 2, 4, 5, 6), false), array(2 => 2)), - array(array(array(1, 2, 4, 5, 6), 2), array(2 => 2, 5 => 5, 6 => 6)), + // Input to phpbb_get_banned_user_ids (user_id list, ban_end) + // Expected output + array( + array(array(1, 2, 4, 5, 6), true), + array(2 => 2, 5 => 5), + ), + array( + array(array(1, 2, 4, 5, 6), false), + array(2 => 2), + ), + array( + array(array(1, 2, 4, 5, 6), 2), + array(2 => 2, 5 => 5, 6 => 6), + ), ); } |