From a0562ae170a71cf7a4f7233648f2b8955bb6a1c7 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Wed, 19 May 2010 10:26:29 +0000 Subject: [PATCH] MINOR Correction of "Dataobject" to "DataObject" correct class case --- tests/DbDatetimeTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/DbDatetimeTest.php b/tests/DbDatetimeTest.php index f627965..2b3b6b0 100644 --- a/tests/DbDatetimeTest.php +++ b/tests/DbDatetimeTest.php @@ -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'); } }