summaryrefslogtreecommitdiff
path: root/tests/simple_unit/ActiveRecord
diff options
context:
space:
mode:
authorwei <>2007-01-24 00:01:34 +0000
committerwei <>2007-01-24 00:01:34 +0000
commitdec4042d10caa5a54b753fab950f16218fa62d8d (patch)
treed3b89386e78a3b059baa13e738ea6004d02eb6aa /tests/simple_unit/ActiveRecord
parent1c92c3a9fb320ec35949634e53b28ee4ab79f138 (diff)
add active record count test
Diffstat (limited to 'tests/simple_unit/ActiveRecord')
-rw-r--r--tests/simple_unit/ActiveRecord/CountRecordsTestCase.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/simple_unit/ActiveRecord/CountRecordsTestCase.php b/tests/simple_unit/ActiveRecord/CountRecordsTestCase.php
index d9a98622..4d1cf51d 100644
--- a/tests/simple_unit/ActiveRecord/CountRecordsTestCase.php
+++ b/tests/simple_unit/ActiveRecord/CountRecordsTestCase.php
@@ -24,6 +24,12 @@ class CountRecordsTestCase extends UnitTestCase
$count = $finder->count('"order" > ?', 11);
$this->assertEqual($count,0);
}
+
+ function test_count_without_parameter()
+ {
+ $finder = DepartmentRecord::finder();
+ $this->assertEqual($finder->count(), 8);
+ }
}
?> \ No newline at end of file