[BUGFIX] Enable skipped tests by properly creating mocks 28/31228/2
authorHelmut Hummel <helmut.hummel@typo3.org>
Sun, 29 Jun 2014 14:39:29 +0000 (16:39 +0200)
committerHelmut Hummel <helmut.hummel@typo3.org>
Sun, 29 Jun 2014 15:03:29 +0000 (17:03 +0200)
commit1882ccc587bdc9dfd72b690425fa8457e4b6d3e7
tree289b2458e9c5ba082ea47a701f7e73770967c2ba
parentd43b29534b8f0b5ebd81d6d89487470db76ca38d
[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: https://review.typo3.org/31228
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
typo3/sysext/extbase/Tests/Unit/Mvc/Controller/AbstractControllerTest.php
typo3/sysext/extbase/Tests/Unit/Mvc/Controller/ActionControllerTest.php