From 419f0815c85a40639ac82c1ce05c80186a64dc55 Mon Sep 17 00:00:00 2001 From: wei <> Date: Tue, 1 May 2007 03:19:30 +0000 Subject: remove identity map in active record. --- tests/simple_unit/ActiveRecord/UserRecordTestCase.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'tests/simple_unit/ActiveRecord') 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 @@ -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() -- cgit v1.2.3