blob: 01026c9187fa11338f738c5d41384e7c7c0c47c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<?php
Prado::using('System.Data.ActiveRecord.TActiveRecord');
require_once(dirname(__FILE__).'/records/SqliteUsers.php');
class SqliteTestCase extends UnitTestCase
{
function setup()
{
$conn = new TDbConnection('sqlite2:c:/Wei/workspace/ar2/tests/unit/ar_test.db');
TActiveRecordManager::getInstance()->setDbConnection($conn);
}
function test_finder()
{
$finder = SqliteUsers::finder();
$user = $finder->findByPk('test');
$this->assertNotNull($user);
}
}
?>
|