summaryrefslogtreecommitdiff
path: root/tests/simple_unit/ActiveRecord/FindByPksTestCase.php
diff options
context:
space:
mode:
authorwei <>2007-01-30 01:07:15 +0000
committerwei <>2007-01-30 01:07:15 +0000
commitfcb45e6479d4c13084c8033e543e0c1fdeead8e5 (patch)
treef8d5c98c3ed8e165dfd1ede486b69c0c282e0432 /tests/simple_unit/ActiveRecord/FindByPksTestCase.php
parentace9c57b1c50709bbe8085e9cf99161a4c574be2 (diff)
add column type values for mysql
Diffstat (limited to 'tests/simple_unit/ActiveRecord/FindByPksTestCase.php')
-rw-r--r--tests/simple_unit/ActiveRecord/FindByPksTestCase.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/simple_unit/ActiveRecord/FindByPksTestCase.php b/tests/simple_unit/ActiveRecord/FindByPksTestCase.php
index e7f3e3d0..e3ba0358 100644
--- a/tests/simple_unit/ActiveRecord/FindByPksTestCase.php
+++ b/tests/simple_unit/ActiveRecord/FindByPksTestCase.php
@@ -1,5 +1,4 @@
-<?php
-
+<?php
Prado::using('System.Data.ActiveRecord.TActiveRecord');
require_once(dirname(__FILE__).'/records/DepartmentRecord.php');
require_once(dirname(__FILE__).'/records/DepSections.php');
@@ -19,6 +18,13 @@ class FindByPksTestCase extends UnitTestCase
$this->assertEqual($dep->department_id, 1);
}
+ function test_find_by_1pk_array()
+ {
+ $dep = DepartmentRecord::finder()->findByPk(array(1));
+ $this->assertNotNull($dep);
+ $this->assertEqual($dep->department_id, 1);
+ }
+
function test_find_by_pks()
{
$deps = DepartmentRecord::finder()->findAllByPks(1,2,4);