[TASK] Refactor PageRenderer tests 04/25304/3
authorChristian Kuhn <lolli@schwarzbu.ch>
Sun, 10 Nov 2013 12:57:21 +0000 (13:57 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Tue, 12 Nov 2013 19:07:59 +0000 (20:07 +0100)
commitac6599fc5ce7cdcd3aaeb1210bcfcc6264623607
tree571fb36ccf1d9990e615a39b0f438028dc3c5da9
parent59ed6f514f158fa30aa3dad99d27df6809191813
[TASK] Refactor PageRenderer tests

The existing tests of ext:core/Page/PageRenderer are in fact
functional tests since most of them trigger lots of dependencies
and call the main API method "render()" to check for something.

The patch moves most detail tests to two general functional tests
doing the main work and adds some more functional tests for more
specific cases.
The unit tests are stripped down to those parts that test only single
methods or smaller systems with proper mocking.

In effect, the full unit test suite does no longer depend on
initialization of $GLOBALS['LANG'], it is now removed from unit
test bootstrap.

Change-Id: I9f3f54ba52673e16bfcd303b46755e079d240de6
Resolves: #53558
Related: #51436
Related: #53476
Releases: 6.2
Reviewed-on: https://review.typo3.org/25304
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/core/Build/UnitTestsBootstrap.php
typo3/sysext/core/Tests/Functional/Page/PageRendererTest.php [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Page/PageRendererTest.php