1
0
mirror of synced 2024-12-14 15:16:04 +03:00

Fix test for non-mysql like datetimes.

This commit is contained in:
Benjamin Eberlei 2012-01-29 15:01:36 +01:00
parent 3c4d2cd890
commit e774b1d8c0

View File

@ -40,13 +40,13 @@ class DDC657Test extends \Doctrine\Tests\OrmFunctionalTestCase
$this->assertCount(2,$result);
$this->assertEquals('11:11:11', $result[0]['time']);
$this->assertEquals('2010-01-01', $result[0]['date']);
$this->assertEquals('2010-01-01 11:11:11', $result[0]['datetime']);
$this->assertContains('11:11:11', $result[0]['time']);
$this->assertContains('2010-01-01', $result[0]['date']);
$this->assertContains('2010-01-01 11:11:11', $result[0]['datetime']);
$this->assertEquals('12:12:12', $result[1]['time']);
$this->assertEquals('2010-02-02', $result[1]['date']);
$this->assertEquals('2010-02-02 12:12:12', $result[1]['datetime']);
$this->assertContains('12:12:12', $result[1]['time']);
$this->assertContains('2010-02-02', $result[1]['date']);
$this->assertContains('2010-02-02 12:12:12', $result[1]['datetime']);
}
public function testaTicketEntityArrayResult()
@ -117,4 +117,4 @@ class DDC657Test extends \Doctrine\Tests\OrmFunctionalTestCase
$this->_em->flush();
}
}
}