mirror of
https://github.com/silverstripe/silverstripe-mssql
synced 2024-10-22 08:05:53 +02:00
Ensure date test is Y-m-d
This commit is contained in:
parent
a74470ff52
commit
08eea5cde3
@ -9,7 +9,7 @@ class MSSQLDatabaseQueryTest extends SapphireTest {
|
|||||||
|
|
||||||
public function testDateValueFormatting() {
|
public function testDateValueFormatting() {
|
||||||
$obj = $this->objFromFixture('MSSQLDatabaseQueryTestDataObject', 'test-data-1');
|
$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() {
|
public function testDatetimeValueFormatting() {
|
||||||
|
Loading…
Reference in New Issue
Block a user