From 8cb7afa503362a8e1725591d9619c8712b0b86c0 Mon Sep 17 00:00:00 2001 From: Shitiz Garg Date: Fri, 27 Jun 2014 19:10:48 +0530 Subject: [PATCH] [ticket/12334] Add string test for type_int PHPBB3-12334 --- tests/profilefields/type_int_test.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/profilefields/type_int_test.php b/tests/profilefields/type_int_test.php index 9f432ad3c1..78c3cee56e 100644 --- a/tests/profilefields/type_int_test.php +++ b/tests/profilefields/type_int_test.php @@ -211,6 +211,12 @@ class phpbb_profilefield_type_int_test extends phpbb_test_case null, 'Field should return correct raw value', ), + array( + 'string', + array('field_show_novalue' => false), + 0, + 'Field should return int cast of passed string' + ), ); }