diff options
Diffstat (limited to 'tests/simple_unit')
-rw-r--r-- | tests/simple_unit/ActiveRecord/SqliteTestCase.php | 6 |
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 |