1
0
mirror of synced 2025-01-31 04:21:44 +03:00

General work. Now using spl_object_hash.

This commit is contained in:
romanb 2009-01-03 19:53:07 +00:00
parent 2395888feb
commit b9ecb8de4f

View File

@ -23,10 +23,8 @@ class Orm_UnitOfWorkTest extends Doctrine_OrmTestCase
protected function setUp() {
parent::setUp();
$this->_connectionMock = new Doctrine_ConnectionMock(array());
$this->_emMock = Doctrine_EntityManagerMock::create($this->_connectionMock, "uowMockEm");
$this->_emMock->activate();
// SUT
$this->_unitOfWork = new Doctrine_UnitOfWorkMock($this->_emMock);
@ -135,6 +133,7 @@ class Orm_UnitOfWorkTest extends Doctrine_OrmTestCase
$user2 = new ForumUser();
$user2->id = 2;
$user2->username = "jwage";
// Fake managed state
$this->_unitOfWork->setEntityState($user2, Doctrine_ORM_UnitOfWork::STATE_MANAGED);
$this->_unitOfWork->setOriginalEntityData($user1, array(