From 08eea5cde3d6d4a4d4a8ae6aabf982a3cc168946 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Fri, 7 Sep 2012 16:21:13 +1200 Subject: [PATCH] Ensure date test is Y-m-d --- tests/MSSQLDatabaseQueryTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/MSSQLDatabaseQueryTest.php b/tests/MSSQLDatabaseQueryTest.php index a5bc6a9..86af785 100644 --- a/tests/MSSQLDatabaseQueryTest.php +++ b/tests/MSSQLDatabaseQueryTest.php @@ -9,7 +9,7 @@ class MSSQLDatabaseQueryTest extends SapphireTest { public function testDateValueFormatting() { $obj = $this->objFromFixture('MSSQLDatabaseQueryTestDataObject', 'test-data-1'); - $this->assertEquals('2012-01-01', $obj->TestDate, 'Date field value is formatted correctly (Y-m-d)'); + $this->assertEquals('2012-01-01', date('Y-m-d', strtotime($obj->TestDate)), 'Date field value is formatted correctly (Y-m-d)'); } public function testDatetimeValueFormatting() {