From 429e20f85c5d1f633fa64bacfc4b8b2426147487 Mon Sep 17 00:00:00 2001 From: wei <> Date: Fri, 30 Mar 2007 07:38:07 +0000 Subject: Fixed #537 --- tests/simple_unit/ActiveRecord/SqliteTestCase.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/simple_unit') diff --git a/tests/simple_unit/ActiveRecord/SqliteTestCase.php b/tests/simple_unit/ActiveRecord/SqliteTestCase.php index 94af6200..b2d21ef1 100644 --- a/tests/simple_unit/ActiveRecord/SqliteTestCase.php +++ b/tests/simple_unit/ActiveRecord/SqliteTestCase.php @@ -16,6 +16,12 @@ class SqliteTestCase extends UnitTestCase $user = $finder->findByPk('test'); $this->assertNotNull($user); } + + function test_get_pk() + { + $meta = TActiveRecordManager::getInstance()->getMetaData('SqliteUsers'); + $this->assertEqual(array('username'), $meta->PrimaryKeys); + } } ?> \ No newline at end of file -- cgit v1.2.3