mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Test TimeField value at 12:00 am
This commit is contained in:
parent
4dec821f63
commit
5b22e3afc5
@ -91,6 +91,14 @@ class TimeFieldTest extends SapphireTest {
|
||||
$f = new TimeField('Time', 'Time');
|
||||
$f->setValue('23:59:38');
|
||||
$this->assertEquals($f->dataValue(), '23:59:38');
|
||||
|
||||
$f = new TimeField('Time', 'Time');
|
||||
$f->setValue('12:00 am');
|
||||
$this->assertEquals($f->dataValue(), '00:00:00');
|
||||
|
||||
$f = new TimeField('Time', 'Time');
|
||||
$f->setValue('12:00:01 am');
|
||||
$this->assertEquals($f->dataValue(), '00:00:01');
|
||||
}
|
||||
|
||||
public function testOverrideWithNull() {
|
||||
|
Loading…
Reference in New Issue
Block a user