summaryrefslogtreecommitdiff
path: root/tests/unit/Data/ActiveRecord/BaseActiveRecordTest.php
blob: e39bdc878514feae0d5d25f7bc458744c209329b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
Prado::using('System.Data.ActiveRecord.TActiveRecord');

class BaseRecordTest extends TActiveRecord
{

}

/**
 * @package System.Data.ActiveRecord
 */
class BaseActiveRecordTest extends PHPUnit_Framework_TestCase
{
	function test_finder_returns_same_instance()
	{
		$obj1 = TActiveRecord::finder('BaseRecordTest');
		$obj2 = TActiveRecord::finder('BaseRecordTest');
		$this->assertSame($obj1,$obj2);
	}
}