We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f77041c commit de53febCopy full SHA for de53feb
laravel/tests/cases/validator.test.php
@@ -494,11 +494,8 @@ public function testTheDateFormatRule()
494
$rules = array('date' => 'date_format:j-M-Y');
495
$this->assertTrue(Validator::make($input, $rules)->valid());
496
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"';
+ $input['date'] = '2009-02-15,15:16:17';
+ $rules['date'] = 'date_format:"Y-m-d,H:i:s"';
502
503
504
$input['date'] = '2009-02-15';
0 commit comments