summaryrefslogtreecommitdiff
path: root/tests/simple_unit/ActiveRecord
diff options
context:
space:
mode:
authorwei <>2007-03-30 07:38:07 +0000
committerwei <>2007-03-30 07:38:07 +0000
commit429e20f85c5d1f633fa64bacfc4b8b2426147487 (patch)
tree47f5feecc139fb7dd10e5749e280bb8a54744e71 /tests/simple_unit/ActiveRecord
parent96c0b5c35463387664db3fa69898d54a929eaa2a (diff)
Fixed #537
Diffstat (limited to 'tests/simple_unit/ActiveRecord')
-rw-r--r--tests/simple_unit/ActiveRecord/SqliteTestCase.php6
1 files changed, 6 insertions, 0 deletions
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