Actions
Task #60059
closedCreate a Getter for the CacheManager inside Datahandler class
Start date:
2014-07-02
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.4
Tags:
Complexity:
easy
Sprint Focus:
Description
At the moment the CacheManager is created by
GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Cache\\CacheManager');within the code. This makes the particular method untestable.
Solution: Create a Getter which creates and returns the instance. This getter can be mocked.
Actions