Bug #38435

Reset the router for each functional test

Added by Bastian Waidelich almost 10 years ago. Updated almost 10 years ago.

Status:
Resolved
Priority:
Must have
Category:
- Testing -
Start date:
2012-06-27
Due date:
% Done:

100%

Estimated time:
PHP Version:
Has patch:
No
Complexity:
no-brainer

Description

Currently all functional tests share the same instance of \TYPO3\FLOW3\Mvc\Routing\Router because the InternalRequestEngine is of scope singleton.
This leads to unexpected results and failing tests if tests add custom routes.

The router instance should be reset for each test case.

Also available in: Atom PDF