Project

General

Profile

Actions

Task #60059

closed

Create a Getter for the CacheManager inside Datahandler class

Added by Stefano Kowalke almost 10 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Should have
Category:
Code Cleanup
Target version:
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

Also available in: Atom PDF