Skip to content

Commit de53feb

Browse files
committed
Fix validation tests one more time.
1 parent f77041c commit de53feb

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

laravel/tests/cases/validator.test.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -494,11 +494,8 @@ public function testTheDateFormatRule()
494494
$rules = array('date' => 'date_format:j-M-Y');
495495
$this->assertTrue(Validator::make($input, $rules)->valid());
496496

497-
$input['date'] = '2009-02-15 15:16:17';
498-
$rules['date'] = 'date_format:Y-m-d H\\:i\\:s';
499-
$this->assertTrue(Validator::make($input, $rules)->valid());
500-
501-
$rules['date'] = 'date_format:"Y-m-d H:i:s"';
497+
$input['date'] = '2009-02-15,15:16:17';
498+
$rules['date'] = 'date_format:"Y-m-d,H:i:s"';
502499
$this->assertTrue(Validator::make($input, $rules)->valid());
503500

504501
$input['date'] = '2009-02-15';

0 commit comments

Comments
 (0)