blob: 9112bc82ad66bfe6b887aeea63dcb990c81b7d40 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
<?php
Prado::using('System.Data.ActiveRecord.TActiveRecord');
require_once(dirname(__FILE__).'/records/UserRecord.php');
/**
* @package System.Data.ActiveRecord
*/
class RecordEventTest extends PHPUnit_Framework_TestCase
{
function setup()
{
$conn = new TDbConnection('mysql:host=localhost;dbname=prado_unitest', 'prado_unitest','prado_unitest');
TActiveRecordManager::getInstance()->setDbConnection($conn);
}
function testFindByPk()
{
$user1 = UserRecord::finder()->findByPk('admin');
$this->assertNotNull($user1);
}
function logger($sender, $param)
{
//var_dump($param);
}
}
|