summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorwei <>2007-05-01 03:19:30 +0000
committerwei <>2007-05-01 03:19:30 +0000
commit419f0815c85a40639ac82c1ce05c80186a64dc55 (patch)
treee875e519451b617a822bece75e24d23d3b93236e /tests
parent595a0acc2554da4c4c52f065dc76893c241f2624 (diff)
remove identity map in active record.
Diffstat (limited to 'tests')
-rw-r--r--tests/simple_unit/ActiveRecord/UserRecordTestCase.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/simple_unit/ActiveRecord/UserRecordTestCase.php b/tests/simple_unit/ActiveRecord/UserRecordTestCase.php
index 483dc42f..057455f7 100644
--- a/tests/simple_unit/ActiveRecord/UserRecordTestCase.php
+++ b/tests/simple_unit/ActiveRecord/UserRecordTestCase.php
@@ -1,5 +1,4 @@
-<?php
-
+<?php
Prado::using('System.Data.ActiveRecord.TActiveRecord');
require_once(dirname(__FILE__).'/records/UserRecord.php');
@@ -17,13 +16,13 @@ class UserRecordTestCase extends UnitTestCase
$this->assertNotNull($user1);
}
- function test_same_data_returns_same_object()
+ function test_same_data_returns_different_instance()
{
$user1 = UserRecord::finder()->findByPk('admin');
$this->assertNotNull($user1);
$user2 = UserRecord::finder()->findByPk('admin');
- $this->assertTrue($user1===$user2);
+ $this->assertFalse($user1===$user2);
}
function testFindByPk_returns_null()