[TASK] Tests: Refactor cache Typo3DatabaseBackend 20/28420/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Sat, 15 Mar 2014 14:28:21 +0000 (15:28 +0100)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Sat, 15 Mar 2014 15:31:32 +0000 (16:31 +0100)
commitf6a923c7695cb8b6c73509704b81668f19e3abe4
treed42b80d1bc32fbb0b9d22ea685eea8cfb26623c1
parent12f81a3323ec529f2f0516357e7c4e407f208454
[TASK] Tests: Refactor cache Typo3DatabaseBackend

Tests of the Typo3DatabaseBackend are refactored to not depend on
initialized $GLOBALS['TYPO3_DB'] anymore, queries and quoting is
now performed to a mock object. Next to a better separation this
has the advantage of a nice speedup executing those tests.

Change-Id: I8fc23fec56a50e48f74422eac3ee4a07ed3669b9
Resolves: #56937
Related: #51436
Releases: 6.2
Reviewed-on: https://review.typo3.org/28420
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
typo3/sysext/core/Tests/Unit/Cache/Backend/Typo3DatabaseBackendTest.php