[TASK] Removes eval() in core data handler unit tests 50/40450/3
authorPierrick Caillon <pierrick.caillon@plan-net.fr>
Thu, 18 Jun 2015 13:48:45 +0000 (15:48 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Thu, 18 Jun 2015 21:16:32 +0000 (23:16 +0200)
commit62b028576b82293ba968c3f798f89122a7084199
treeccf966efa2c9f6dc35763e43a2799b04ddb25ebf
parent8b0641bbf569ac9c4a785113c43cb75852604448
[TASK] Removes eval() in core data handler unit tests

Adds fixtures for InvalidHook and AllowAccessHook and removes the ugly
usage of eval() from DataHandlerTest in unit tests.

Resolves: #67606
Related: #67468
Releases: master
Change-Id: Ibf14efcc966659ff813ac9d8a3a00c6ccbc47da6
Reviewed-on: http://review.typo3.org/40450
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/core/Tests/Unit/DataHandling/DataHandlerTest.php
typo3/sysext/core/Tests/Unit/DataHandling/Fixtures/AllowAccessHookFixture.php [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/DataHandling/Fixtures/InvalidHookFixture.php [new file with mode: 0644]