[TASK] Create a Getter for CacheManager inside Datahandler 89/31289/3
authorStefano Kowalke <blueduck@gmx.net>
Wed, 2 Jul 2014 11:26:16 +0000 (13:26 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Wed, 2 Jul 2014 12:03:24 +0000 (14:03 +0200)
commitbf0627347ea2d0f006d1b1519e8aea2ad3f9d838
treedb122e4919cafe0afde5f11592d9cc83ec435da9
parentf1b50201441dc8cd8cbc8f6a6c9b50ac8edf6bee
[TASK] Create a Getter for CacheManager inside Datahandler

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.

Resolves: #60059
Releases: 6.2, 6.3
Change-Id: I9f83ec017da94778e542410cc9d03faacddc245c
Reviewed-on: https://review.typo3.org/31289
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
typo3/sysext/core/Classes/DataHandling/DataHandler.php