From fcb45e6479d4c13084c8033e543e0c1fdeead8e5 Mon Sep 17 00:00:00 2001 From: wei <> Date: Tue, 30 Jan 2007 01:07:15 +0000 Subject: add column type values for mysql --- tests/simple_unit/ActiveRecord/FindByPksTestCase.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'tests/simple_unit') 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 @@ -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); -- cgit v1.2.3