mirror of
https://github.com/silverstripe/silverstripe-sqlite3
synced 2024-10-22 17:05:37 +02:00
MINOR Correction of "Dataobject" to "DataObject" correct class case
This commit is contained in:
parent
5b0318bdf3
commit
a0562ae170
@ -48,7 +48,8 @@ class DbDatetimeTest extends FunctionalTest {
|
||||
|
||||
$query = 'SELECT ' . $this->adapter->formattedDatetimeClause('"Created"', '%U') . ' AS test FROM "SiteTree" WHERE "URLSegment" = \'home\'';
|
||||
$result = DB::query($query)->value();
|
||||
$this->matchesRoughly($result, strtotime(Dataobject::get_one('SiteTree',"\"URLSegment\" = 'home'")->Created), 'SiteTree[home]->Created as timestamp');
|
||||
|
||||
$this->matchesRoughly($result, strtotime(DataObject::get_one('SiteTree',"\"URLSegment\" = 'home'")->Created), 'SiteTree[home]->Created as timestamp');
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user