[TASK] Reduce complexity in frontend functional tests 15/30515/5
authorOliver Hader <oliver@typo3.org>
Fri, 30 May 2014 15:56:06 +0000 (17:56 +0200)
committerOliver Hader <oliver.hader@typo3.org>
Thu, 12 Jun 2014 15:52:02 +0000 (17:52 +0200)
commit85f37a098d2050e9faeab6ea27bd507b19bc72e2
tree1dc01f0bb5776b97278d5ea754b89548b2fe3b55
parentebce207f18311b0042369bb04248bc0695f03a82
[TASK] Reduce complexity in frontend functional tests

Testing the frontend behavior in functional tests creates
currently an own PHP sub-request to execute TypoScript in
frontent context.
Several hooks collect called cObjects and try to find the
correct nesting levels. Albeit this is working for the
current tests, it is way too complex for extending the
tests for further scenarios like for FAL and Extbase.

The hook magic is resolved and explicit render functions,
called via TypoScript, collect the data an output aggregated
JSON data in the end. Besides that the PHP sub-request
execution now re-uses the PHPUnit utilities to determine
and run the accordant executables.

Resolves: #59487
Releases: 6.2
Change-Id: Ic9eeadee5471a3e0e40d2dffb69b38dec16a0aa1
Reviewed-on: https://review.typo3.org/30515
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
13 files changed:
typo3/sysext/core/Tests/Functional/Fixtures/Frontend/AdditionalConfiguration.php
typo3/sysext/core/Tests/Functional/Fixtures/Frontend/JsonRenderer.ts
typo3/sysext/core/Tests/Functional/Fixtures/Frontend/request.tpl [new file with mode: 0644]
typo3/sysext/core/Tests/Functional/Framework/Frontend/Hook/ContentObjectRendererWatcher.php [deleted file]
typo3/sysext/core/Tests/Functional/Framework/Frontend/Hook/DatabaseConnectionWatcher.php [deleted file]
typo3/sysext/core/Tests/Functional/Framework/Frontend/RenderElement.php [deleted file]
typo3/sysext/core/Tests/Functional/Framework/Frontend/RenderLevel.php [deleted file]
typo3/sysext/core/Tests/Functional/Framework/Frontend/Renderer.php [new file with mode: 0644]
typo3/sysext/core/Tests/Functional/Framework/Frontend/RequestBootstrap.php
typo3/sysext/core/Tests/Functional/Framework/Scripts/Request.php [deleted file]
typo3/sysext/core/Tests/FunctionalTestCase.php
typo3/sysext/frontend/Classes/ContentObject/ContentContentObject.php
typo3/sysext/frontend/Classes/ContentObject/FilesContentObject.php