Changeset 4723 for trunk/tests/Orm
- Timestamp:
- 08/01/08 19:46:14 (5 months ago)
- Location:
- trunk/tests/Orm
- Files:
-
- 2 added
- 1 modified
-
Internal (added)
-
Internal/CommitOrderCalculatorTest.php (added)
-
UnitOfWorkTest.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/Orm/UnitOfWorkTest.php
r4718 r4723 24 24 // The EntityManager mock that provides the mock persister 25 25 private $_emMock; 26 private $_platformMock; 26 27 27 28 protected function setUp() { … … 33 34 34 35 $this->_connectionMock = new Doctrine_ConnectionMock(array()); 35 $this->_ sequenceMock = $this->_connectionMock->getSequenceManager();36 $this->_platformMock = new Doctrine_DatabasePlatformMock(); 36 37 $this->_emMock = new Doctrine_EntityManagerMock($this->_connectionMock); 37 $this->_persisterMock = $this->_emMock->getEntityPersister("ForumUser"); 38 $this->_sequenceMock = new Doctrine_SequenceMock($this->_connectionMock); 39 40 $this->_connectionMock->setSequenceManager($this->_sequenceMock); 41 $this->_connectionMock->setDatabasePlatform($this->_platformMock); 42 43 $this->_persisterMock = new Doctrine_EntityPersisterMock( 44 $this->_emMock, $this->_emMock->getClassMetadata("ForumUser")); 45 $this->_emMock->setEntityPersister($this->_persisterMock); 46 38 47 $this->_unitOfWork = $this->_emMock->getUnitOfWork(); 39 48 } … … 106 115 $this->assertTrue(is_numeric($this->_user->id)); 107 116 108 // Now lets check whether a subsequen cecommit() does anything117 // Now lets check whether a subsequent commit() does anything 109 118 110 119 $this->_persisterMock->reset();