[BUGFIX] Enable skipped tests by properly creating mocks 77/32677/2
authorHelmut Hummel <helmut.hummel@typo3.org>
Sun, 29 Jun 2014 14:39:29 +0000 (16:39 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Tue, 9 Sep 2014 11:09:40 +0000 (13:09 +0200)
commit76a81f395db969cb924cd9d1ba6d80acad7b8e19
tree0f0ded4626db3cf13d1cf0a020dcf08e9567875b
parent3955abcef1fb3434e6555c134d411a7ff0a340ef
[BUGFIX] Enable skipped tests by properly creating mocks

Latest changes in PHP disallow unserialize on
certain internal classes. Since phpunit uses
unserialize to create objects of such classes
when requesting a mock without calling the constructor
these tests failed with a PHP fatal error.

Instead of skipping the tests, we can simply provide
mocked constructor arguments (if required) so that
phpunit can create a mock object by using the new operator
and passing these mocked constructor arguments.

Releases: 6.3, 6.2
Resolves: #59981
Related: #59685
Change-Id: Ibd3b9aee0376a5043e053cffa6c88f7b93c86e18
Reviewed-on: http://review.typo3.org/32677
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/extbase/Tests/Unit/Mvc/Controller/AbstractControllerTest.php
typo3/sysext/extbase/Tests/Unit/Mvc/Controller/ActionControllerTest.php