diff options
author | Shitiz Garg <mail@dragooon.net> | 2014-06-18 15:34:06 +0530 |
---|---|---|
committer | Shitiz Garg <mail@dragooon.net> | 2014-06-18 17:48:56 +0530 |
commit | 9f478de2ca65b2775624d244df12f4e26bb5d208 (patch) | |
tree | 3ca8ff0437c56abf3cb35cb8ce2cd1eab53db060 /tests/profilefields/type_dropdown_test.php | |
parent | 566f76a6b082c9e0a85a1e7d8995f65b8a121b8c (diff) | |
download | forums-9f478de2ca65b2775624d244df12f4e26bb5d208.tar forums-9f478de2ca65b2775624d244df12f4e26bb5d208.tar.gz forums-9f478de2ca65b2775624d244df12f4e26bb5d208.tar.bz2 forums-9f478de2ca65b2775624d244df12f4e26bb5d208.tar.xz forums-9f478de2ca65b2775624d244df12f4e26bb5d208.zip |
[ticket/12514] Add a few additional tests for type_dropdown
PHPBB3-12514
Diffstat (limited to 'tests/profilefields/type_dropdown_test.php')
-rw-r--r-- | tests/profilefields/type_dropdown_test.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/profilefields/type_dropdown_test.php b/tests/profilefields/type_dropdown_test.php index ddc34f221f..ec68f0e77e 100644 --- a/tests/profilefields/type_dropdown_test.php +++ b/tests/profilefields/type_dropdown_test.php @@ -83,6 +83,18 @@ class phpbb_profilefield_type_dropdown_test extends phpbb_test_case 'Invalid value should throw error', ), array( + true, + array('field_required' => true), + false, + 'Boolean would evaluate to 1 and hence correct value', + ), + array( + 'string', + array('field_required' => true), + 'FIELD_REQUIRED-field', + 'String should be rejected for value', + ), + array( 2, array(), false, |