From 23fa10ab937f0d466192823873e237a701c7a5be Mon Sep 17 00:00:00 2001 From: Matt Button Date: Wed, 24 Nov 2010 23:53:57 +0000 Subject: [PATCH] Fixing messages tests --- tests/kohana/CoreTest.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/kohana/CoreTest.php b/tests/kohana/CoreTest.php index 77d8840a7..c6f09585f 100644 --- a/tests/kohana/CoreTest.php +++ b/tests/kohana/CoreTest.php @@ -155,7 +155,7 @@ public function provider_message() array( array( 'alpha' => ':field must contain only letters', - 'alpha_dash' => ':field must contain only letters and dashes', + 'alpha_dash' => ':field must contain only numbers, letters and dashes', 'alpha_numeric' => ':field must contain only letters and numbers', 'color' => ':field must be a color', 'credit_card' => ':field must be a credit card number', @@ -164,14 +164,16 @@ public function provider_message() 'digit' => ':field must be a digit', 'email' => ':field must be a email address', 'email_domain' => ':field must contain a valid email domain', + 'equals' => ':field must equal :param1', 'exact_length' => ':field must be exactly :param1 characters long', 'in_array' => ':field must be one of the available options', 'ip' => ':field must be an ip address', 'matches' => ':field must be the same as :param1', 'min_length' => ':field must be at least :param1 characters long', 'max_length' => ':field must be less than :param1 characters long', - 'phone' => ':field must be a phone number', 'not_empty' => ':field must not be empty', + 'numeric' => ':field must be numeric', + 'phone' => ':field must be a phone number', 'range' => ':field must be within the range of :param1 to :param2', 'regex' => ':field does not match the required format', 'url' => ':field must be a url',