[+TASK] Extbase (Tests): Fixed a repository unit test so that it works in CLI mode
authorBastian Waidelich <bastian@typo3.org>
Wed, 12 Jan 2011 15:32:19 +0000 (15:32 +0000)
committerBastian Waidelich <bastian@typo3.org>
Wed, 12 Jan 2011 15:32:19 +0000 (15:32 +0000)
typo3/sysext/extbase/Tests/Unit/Persistence/RepositoryTest.php

index f4b0834..8221baf 100644 (file)
@@ -344,7 +344,7 @@ class Tx_Extbase_Tests_Unit_Persistence_RepositoryTest extends Tx_Extbase_Tests_
                $modifiedObject = $this->getMock('Tx_Extbase_DomainObject_DomainObjectInterface');
                $modifiedObject->expects($this->once())->method('getUid')->will($this->returnValue('123'));
 
-               $repository = $this->getAccessibleMock('Tx_Extbase_Persistence_Repository', array('findByUid', 'replace'));
+               $repository = $this->getAccessibleMock('Tx_Extbase_Persistence_Repository', array('findByUid', 'replace'), array($this->mockObjectManager));
                $repository->expects($this->once())->method('findByUid')->with('123')->will($this->returnValue($existingObject));
                $repository->expects($this->once())->method('replace')->with($existingObject, $modifiedObject);
                $repository->_set('objectType', get_class($modifiedObject));