diff options
author | Marc Alexander <admin@m-a-styles.de> | 2013-06-03 21:30:13 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2013-06-03 21:30:13 +0200 |
commit | 11678678b810c26376728166cf334550cbc30124 (patch) | |
tree | 4811af80294223ca68195ee0d27e99be2761ff9a /tests/functions/validate_match_test.php | |
parent | c2bc82ebfd54cebba03bd04dccaf5a8e317844ae (diff) | |
download | forums-11678678b810c26376728166cf334550cbc30124.tar forums-11678678b810c26376728166cf334550cbc30124.tar.gz forums-11678678b810c26376728166cf334550cbc30124.tar.bz2 forums-11678678b810c26376728166cf334550cbc30124.tar.xz forums-11678678b810c26376728166cf334550cbc30124.zip |
[ticket/11579] Rework calls to validate_data_helper
PHPBB3-11579
Diffstat (limited to 'tests/functions/validate_match_test.php')
-rw-r--r-- | tests/functions/validate_match_test.php | 38 |
1 files changed, 21 insertions, 17 deletions
diff --git a/tests/functions/validate_match_test.php b/tests/functions/validate_match_test.php index 5d44f1e00b..73a363e003 100644 --- a/tests/functions/validate_match_test.php +++ b/tests/functions/validate_match_test.php @@ -23,23 +23,27 @@ class phpbb_functions_validate_match_test extends phpbb_test_case public function test_validate_match() { - $this->helper->assert_validate_data(array( - 'empty_opt' => array(), - 'empty_empty_match' => array(), - 'foobar' => array(), - 'foobar_fail' => array('WRONG_DATA'), - ), - array( - 'empty_opt' => '', - 'empty_empty_match' => '', - 'foobar' => 'foobar', - 'foobar_fail' => 'foobar123', - ), - array( - 'empty_opt' => array('match', true, '/[a-z]$/'), - 'empty_empty_match' => array('match'), - 'foobar' => array('match', false, '/[a-z]$/'), - 'foobar_fail' => array('match', false, '/[a-z]$/'), + $this->helper->assert_valid_data(array( + 'empty_opt' => array( + array(), + '', + array('match', true, '/[a-z]$/'), + ), + 'empty_empty_match' => array( + array(), + '', + array('match'), + ), + 'foobar' => array( + array(), + 'foobar', + array('match', false, '/[a-z]$/'), + ), + 'foobar_fail' => array( + array('WRONG_DATA'), + 'foobar123', + array('match', false, '/[a-z]$/'), + ), )); } } |