summaryrefslogtreecommitdiff
path: root/demos/time-tracker/tests/unit
diff options
context:
space:
mode:
authorwei <>2006-07-19 03:55:25 +0000
committerwei <>2006-07-19 03:55:25 +0000
commit0c16571c091f8c4c89ae18427b2c2994cd4cf3bb (patch)
treebd0186684f6291e735c585c1c36baee7046ae0e9 /demos/time-tracker/tests/unit
parent63e66acd2ed45300d095d5428ebdfff7652070ea (diff)
Add project details in time-tracker
Diffstat (limited to 'demos/time-tracker/tests/unit')
-rw-r--r--demos/time-tracker/tests/unit/TimeEntryDaoTestCase.php9
1 files changed, 6 insertions, 3 deletions
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);
}
}