Fix validation tests one more time.
This commit is contained in:
parent
f77041ced9
commit
de53feb07e
|
@ -494,11 +494,8 @@ public function testTheDateFormatRule()
|
|||
$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';
|
||||
|
|
Loading…
Reference in New Issue