37 if (!\
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded(
'scheduler')) {
38 $this->markTestSkipped(
'Tests need EXT:scheduler loaded.');
41 $this->repositoryHelper = $this->getMock(
'TYPO3\\CMS\\Extensionmanager\\Utility\\Repository\\Helper', array(), array(),
'', FALSE);
56 $taskMock = $this->getMock(
'TYPO3\\CMS\\Extensionmanager\\Task\\UpdateExtensionListTask');
57 $this->assertInstanceOf(
'TYPO3\\CMS\\Scheduler\\Task\\AbstractTask', $taskMock);
64 $this->repositoryHelper
65 ->expects($this->once())
66 ->method(
'updateExtList');
68 $objectManagerMock = $this->getMock(
'TYPO3\\CMS\\Extbase\\Object\\ObjectManager');
70 ->expects($this->at(0))
72 ->with(
'TYPO3\\CMS\\Extensionmanager\\Utility\\Repository\\Helper')
73 ->will($this->returnValue($this->repositoryHelper));
75 $persistenceManagerMock = $this->getMock(
'TYPO3\\CMS\\Extbase\\Persistence\\Generic\\PersistenceManager');
77 ->expects($this->at(1))
79 ->will($this->returnValue($persistenceManagerMock));
83 $task = $this->getMock(
'TYPO3\\CMS\\Extensionmanager\\Task\\UpdateExtensionListTask', array(
'dummy'), array(),
'', FALSE);
91 $objectManagerMock = $this->getMock(
'TYPO3\\CMS\\Extbase\\Object\\ObjectManager');
93 ->expects($this->at(0))
95 ->with(
'TYPO3\\CMS\\Extensionmanager\\Utility\\Repository\\Helper')
96 ->will($this->returnValue($this->repositoryHelper));
98 $persistenceManagerMock = $this->getMock(
'TYPO3\\CMS\\Extbase\\Persistence\\Generic\\PersistenceManager');
99 $persistenceManagerMock
100 ->expects($this->once())
101 ->method(
'persistAll');
104 ->expects($this->at(1))
106 ->will($this->returnValue($persistenceManagerMock));
110 $task = $this->getMock(
'TYPO3\\CMS\\Extensionmanager\\Task\\UpdateExtensionListTask', array(
'dummy'), array(),
'', FALSE);
executeCallsUpdateExtListOfRepositoryHelper()
static getSingletonInstances()
static setSingletonInstance($className, \TYPO3\CMS\Core\SingletonInterface $instance)
executeCallsPersistAllOnPersistenceManager()
static resetSingletonInstances(array $newSingletonInstances)
updateExtensionListTaskIsInstanceOfAbstractTask()