From 623447ffea7a49359c773a0bc3a851397885f319 Mon Sep 17 00:00:00 2001 From: wei <> Date: Fri, 28 Jul 2006 12:32:01 +0000 Subject: Add sqlite support for time-tracker. --- demos/time-tracker/tests/unit/TimeEntryDaoTestCase.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'demos/time-tracker/tests/unit/TimeEntryDaoTestCase.php') diff --git a/demos/time-tracker/tests/unit/TimeEntryDaoTestCase.php b/demos/time-tracker/tests/unit/TimeEntryDaoTestCase.php index cd1044b8..1ce97b3a 100644 --- a/demos/time-tracker/tests/unit/TimeEntryDaoTestCase.php +++ b/demos/time-tracker/tests/unit/TimeEntryDaoTestCase.php @@ -24,7 +24,7 @@ class TimeEntryDaoTestCase extends BaseTestCase function createNewProject() { - $project = new Project; + $project = new ProjectRecord; $project->CreatorUserName = "admin"; $project->DateCreated = time(); $project->CompletionDate = strtotime('+1 month'); @@ -38,7 +38,7 @@ class TimeEntryDaoTestCase extends BaseTestCase function createNewProject2() { - $project = new Project; + $project = new ProjectRecord; $project->CreatorUserName = "manager"; $project->DateCreated = time(); $project->CompletionDate = strtotime('+1 week'); @@ -52,7 +52,7 @@ class TimeEntryDaoTestCase extends BaseTestCase function createNewCategory() { - $category = new Category; + $category = new CategoryRecord; $category->Name = 'Category 1'; $category->EstimateDuration = 5.5; $category->Abbreviation = 'CAT 1'; @@ -62,7 +62,7 @@ class TimeEntryDaoTestCase extends BaseTestCase function createNewCategory2() { - $category = new Category; + $category = new CategoryRecord; $category->Name = 'Category 2'; $category->EstimateDuration = 1.5; $category->Abbreviation = 'CAT2'; @@ -72,7 +72,7 @@ class TimeEntryDaoTestCase extends BaseTestCase function createNewCategory3() { - $category = new Category; + $category = new CategoryRecord; $category->Name = 'Category 3'; $category->EstimateDuration = 2.5; $category->Abbreviation = 'CAT3'; @@ -119,7 +119,7 @@ class TimeEntryDaoTestCase extends BaseTestCase { $added = $this->createProjectsAndCategories(); - $entry = new TimeEntry; + $entry = new TimeEntryRecord; $entry->CreatorUserName = "admin"; $entry->Category = $added[2]; $entry->Description = "New work"; @@ -135,7 +135,7 @@ class TimeEntryDaoTestCase extends BaseTestCase { $added = $this->createProjectsAndCategories(); - $entry = new TimeEntry; + $entry = new TimeEntryRecord; $entry->CreatorUserName = "admin"; $entry->Category = $added[2]; $entry->Description = "New work"; @@ -144,7 +144,7 @@ class TimeEntryDaoTestCase extends BaseTestCase $entry->ReportDate = strtotime('-10 day'); $entry->Username = 'consultant'; - $entry2 = new TimeEntry; + $entry2 = new TimeEntryRecord; $entry2->CreatorUserName = "admin"; $entry2->Category = $added[4]; $entry2->Description = "New work 2"; -- cgit v1.2.3