[TASK] Add functional test for route enhanced link handling 61/58461/7
authorOliver Hader <oliver@typo3.org>
Sat, 29 Sep 2018 15:44:42 +0000 (17:44 +0200)
committerGeorg Ringer <georg.ringer@gmail.com>
Sun, 30 Sep 2018 06:59:23 +0000 (08:59 +0200)
commit9376fc233d5385349745f27e1145b6ee92b09f23
tree068dbb8e219ee51ba56b4fcf72d2b80f522dc689
parent67fd85a0edee0543873f8f5c55207896bb8f2217
[TASK] Add functional test for route enhanced link handling

* adds test cases for resolving and generating enhanced links
* fixes locale issues when dealing with persisted mappers
* removes PersistedAliasMapper.valueFieldName and uses TCA
  'uid' field per default, which is required for proper
  language based resolving as well
* introduces language based resolving to PersistedAliasMapper
  and PersistedPatternMapper

Resolves: #86444
Releases: master
Change-Id: Ib9c9ea8efc25a8a5adb727f8402a2b6b1e6a1602
Reviewed-on: https://review.typo3.org/58461
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
12 files changed:
typo3/sysext/core/Classes/Routing/Aspect/PersistedAliasMapper.php
typo3/sysext/core/Classes/Routing/Aspect/PersistedPatternMapper.php
typo3/sysext/core/Classes/Routing/Aspect/StaticValueMapper.php
typo3/sysext/core/Documentation/Changelog/master/Feature-86365-RoutingEnhancersAndAspects.rst
typo3/sysext/frontend/Tests/Functional/SiteHandling/AbstractTestCase.php
typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerLinkGeneratorTest.php [new file with mode: 0644]
typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerSiteRequestTest.php [new file with mode: 0644]
typo3/sysext/frontend/Tests/Functional/SiteHandling/Fixtures/LinkGenerator.typoscript
typo3/sysext/frontend/Tests/Functional/SiteHandling/Fixtures/LinkGeneratorController.php [deleted file]
typo3/sysext/frontend/Tests/Functional/SiteHandling/Fixtures/LinkHandlingController.php [new file with mode: 0644]
typo3/sysext/frontend/Tests/Functional/SiteHandling/Fixtures/LinkRequest.typoscript [new file with mode: 0644]
typo3/sysext/frontend/Tests/Functional/SiteHandling/Fixtures/SlugScenario.yaml