diff options
author | wei <> | 2007-01-30 01:07:15 +0000 |
---|---|---|
committer | wei <> | 2007-01-30 01:07:15 +0000 |
commit | fcb45e6479d4c13084c8033e543e0c1fdeead8e5 (patch) | |
tree | f8d5c98c3ed8e165dfd1ede486b69c0c282e0432 /tests/simple_unit | |
parent | ace9c57b1c50709bbe8085e9cf99161a4c574be2 (diff) |
add column type values for mysql
Diffstat (limited to 'tests/simple_unit')
-rw-r--r-- | tests/simple_unit/ActiveRecord/FindByPksTestCase.php | 10 |
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);
|