Browse Source

Fix validation tests one more time.

Franz Liedke 12 years ago
parent
commit
de53feb07e
1 changed files with 2 additions and 5 deletions
  1. 2 5
      laravel/tests/cases/validator.test.php

+ 2 - 5
laravel/tests/cases/validator.test.php

@@ -494,11 +494,8 @@ class ValidatorTest extends PHPUnit_Framework_TestCase {
 		$rules = array('date' => 'date_format:j-M-Y');
 		$this->assertTrue(Validator::make($input, $rules)->valid());
 
-		$input['date'] = '2009-02-15 15:16:17';
-		$rules['date'] = 'date_format:Y-m-d H\\:i\\:s';
-		$this->assertTrue(Validator::make($input, $rules)->valid());
-
-		$rules['date'] = 'date_format:"Y-m-d H:i:s"';
+		$input['date'] = '2009-02-15,15:16:17';
+		$rules['date'] = 'date_format:"Y-m-d,H:i:s"';
 		$this->assertTrue(Validator::make($input, $rules)->valid());
 
 		$input['date'] = '2009-02-15';