From 0c16571c091f8c4c89ae18427b2c2994cd4cf3bb Mon Sep 17 00:00:00 2001 From: wei <> Date: Wed, 19 Jul 2006 03:55:25 +0000 Subject: Add project details in time-tracker --- demos/time-tracker/tests/unit/TimeEntryDaoTestCase.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'demos/time-tracker/tests') diff --git a/demos/time-tracker/tests/unit/TimeEntryDaoTestCase.php b/demos/time-tracker/tests/unit/TimeEntryDaoTestCase.php index 29e3ba67..20b1266e 100644 --- a/demos/time-tracker/tests/unit/TimeEntryDaoTestCase.php +++ b/demos/time-tracker/tests/unit/TimeEntryDaoTestCase.php @@ -155,7 +155,7 @@ class TimeEntryDaoTestCase extends BaseTestCase return array($entry, $entry2, $added); } -/* + function testCreateNewTimeEntry() { $added = $this->createTimeEntry1(); @@ -247,7 +247,7 @@ class TimeEntryDaoTestCase extends BaseTestCase $this->assertEqual($list[0]->Username, 'consultant'); $this->assertEqual($list[0]->ActualDuration, 1.2); } -*/ + function testTimeReportsByProject() { $added = $this->createTimeEntries2(); @@ -256,7 +256,10 @@ class TimeEntryDaoTestCase extends BaseTestCase $list = $this->reportDao->getTimeReportsByProjectID(1); - var_dump($list); + $this->assertEqual(count($list),1); + $this->assertEqual($list[0]->Username, 'consultant'); + $this->assertEqual($list[0]->CategoryID, 1); + $this->assertEqual($list[0]->ActualDuration, 6.7); } } -- cgit v1.2.3