Task #37608
Functional routing tests
| Status: | Resolved | Start date: | 2012-05-30 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assignee: | Bastian Waidelich | % Done: | 100% |
|
| Category: | MVC - Routing | |||
| Target version: | TYPO3 Flow Base Distribution - 1.1 | |||
| Sprint: | Has patch: | No | ||
| PHP Version: | Complexity: | |||
| Votes: | 0 |
Description
Some important routing features urgently need functional tests
Associated revisions
[TASK] Functional tests for Routing Framework
Adds testing routes to the provided Testing/Routes.yaml
file and adds tests covering mathing and resolving of
arbitrary routes.
Change-Id: Icd1b2efb06d183ba29ee5f375d62cc02a2f84f69
Resolves: #37608
Releases: 1.1, 1.2
[TASK] Functional tests for Routing Framework
Adds testing routes to the provided Testing/Routes.yaml
file and adds tests covering mathing and resolving of
arbitrary routes.
Change-Id: Icd1b2efb06d183ba29ee5f375d62cc02a2f84f69
Resolves: #37608
Releases: 1.1, 1.2
History
Updated by Bastian Waidelich 11 months ago
- Target version changed from 1.1 RC1 to 1.1
Almost ready, but not completely.. ;)
Updated by Karsten Dambekalns 11 months ago
Any news on this one?
Updated by Gerrit Code Review 11 months ago
- Status changed from Accepted to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/12379
Updated by Gerrit Code Review 11 months ago
Patch set 1 for branch FLOW3-1.1 has been pushed to the review server.
It is available at http://review.typo3.org/12380
Updated by Gerrit Code Review 11 months ago
Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/12379
Updated by Gerrit Code Review 11 months ago
Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/12379
Updated by Gerrit Code Review 11 months ago
Patch set 2 for branch FLOW3-1.1 has been pushed to the review server.
It is available at http://review.typo3.org/12380
Updated by Bastian Waidelich 11 months ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 593f84a214b8ac1f432681d2aa74872b86857ea4.
Updated by Christopher Hlubek 11 months ago
I get errors in an HTTP functional test for FLOW3 1.1 after this change. I know this worked last week in a demo application:
Uncaught Exception in FLOW3 #1301650951: No controller object was found for package "myvendor.mypackage", subpackage "Tests\Functional\Mvc\Fixtures", controller "login" in route "FLOW3 :: Functional Test: controller route parts are case insensitive". thrown in file .../Data/Temporary/Testing/Cache/Code/FLOW3_Object_Classes/TYPO3_Fluid_ViewHelpers_Link_ActionViewHelper_Original.php in line 90
I'm just generating a link inside a Fluid template (<f:link.action action="index" controller="Login">Login</f:link.action>) of a Standard controller in an indexAction.
The problem seems to be the route "FLOW3 :: Functional Test: controller route parts are case insensitive" which throws an exception after merging the given route values (which do not contain a subpackage) on the defaults (which define a subpackage Tests\Functional\...) because a controller with that name could not be found (which is correct, since the LoginController does not exist for subpackage Test\Functional\Mvc\Fixtures).
So either we have to fix the subpackage override (no or NULL subpackage overrides a given subpackage) or disable the exception and just return FALSE in resolves(...) if the controller object is not found.