[TASK] Prepare Frontend Tests for additional site handling tests 63/60363/4
authorBenni Mack <benni@typo3.org>
Wed, 3 Apr 2019 09:55:36 +0000 (11:55 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Wed, 3 Apr 2019 14:12:12 +0000 (16:12 +0200)
commit2223b060e48c83cb098e01181aab92c2c91a0414
tree3ed7036633131bb718f7da2c95ba22611fe0d41f
parentdaf592dac63c318f59351eb4aef2393ea619a4d6
[TASK] Prepare Frontend Tests for additional site handling tests

Some test functionality regarding Site Handling is now sorted out in order
to add more tests.

- SiteConfiguration setup for tests is moved into a separate Trait.
- Code which is also used (in the future) for EXT:core and not
   just frontend is moved to EXT:core
- LocalizedFrontendPages now have a slug field as well.
- Regular Frontend JsonRenderer now also renders values
  from SiteLanguage config + context aspect

Resolves: #88060
Releases: master, 9.5
Change-Id: If859da89e4fcec16e3d1c2abb934eef040d4f386
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/60363
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Daniel Goerz <daniel.goerz@posteo.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Daniel Goerz <daniel.goerz@posteo.de>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
16 files changed:
typo3/sysext/core/Tests/Functional/Fixtures/Frontend/FluidError.html [new file with mode: 0644]
typo3/sysext/core/Tests/Functional/Fixtures/Frontend/FluidJson.html [new file with mode: 0644]
typo3/sysext/core/Tests/Functional/Fixtures/Frontend/JsonRenderer.typoscript
typo3/sysext/core/Tests/Functional/Fixtures/Frontend/PageError.txt [new file with mode: 0644]
typo3/sysext/core/Tests/Functional/Fixtures/Frontend/PhpError.php [new file with mode: 0644]
typo3/sysext/core/Tests/Functional/SiteHandling/SiteBasedTestTrait.php [new file with mode: 0644]
typo3/sysext/frontend/Tests/Functional/Rendering/DataSet/LiveDefaultPages.csv
typo3/sysext/frontend/Tests/Functional/SiteHandling/AbstractTestCase.php
typo3/sysext/frontend/Tests/Functional/SiteHandling/Fixtures/FluidError.html [deleted file]
typo3/sysext/frontend/Tests/Functional/SiteHandling/Fixtures/FluidJson.html [deleted file]
typo3/sysext/frontend/Tests/Functional/SiteHandling/Fixtures/PageError.txt [deleted file]
typo3/sysext/frontend/Tests/Functional/SiteHandling/Fixtures/PhpError.php [deleted file]
typo3/sysext/frontend/Tests/Functional/SiteHandling/PlainRequestTest.php
typo3/sysext/frontend/Tests/Functional/SiteHandling/SiteRequestTest.php
typo3/sysext/frontend/Tests/Functional/SiteHandling/SlugSiteRequestTest.php
typo3/sysext/frontend/Tests/Unit/Middleware/SiteBaseRedirectResolverTest.php