Skip to content

Commit

Permalink
bugfix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ThaDafinser committed Mar 11, 2014
1 parent d8be592 commit d8328be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/ZfcDatagridTest/Column/Type/DateTimeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ public function testUserValueAT()
$type = clone $this->datetimeAT;
$this->assertEquals('', $type->getUserValue(''));

$this->assertEquals('10.01.2013', $type->getUserValue(new \DateTime('2013-01-10')));
$this->assertEquals('10.01.2013', $type->getUserValue('2013-01-10 00:00:00'));
$this->assertEquals('10.01.2013', $type->getUserValue(new \DateTime('2013-01-10 12:00:00')), 'Compare DateTime');
$this->assertEquals('10.01.2013', $type->getUserValue('2013-01-10 00:00:00'), 'Compare string');

$type->setOutputTimeType(IntlDateFormatter::SHORT);
$this->assertEquals('10.01.2013 10:00', $type->getUserValue('2013-01-10 10:00:00'));
Expand Down

0 comments on commit d8328be

Please sign in to comment.