Issue Task Closed

#87973LinkGeneratorTests should use a proper backend user context for versioned link generation checks

Benjamin Franzke 03/21/19, 09:20 updated 05/07/19, 12:10

Description

Currently typo3/sysext/frontend/Tests/Functional/SiteHandling/SlugLinkGeneratorTest.php linkIsGeneratedForPageVersionDataProvider() does only specify a workspaceId, but misses a backend user id.

In that case the workspace id was ignored ignored by the test framework, see TYPO3\JsonResponse\Middleware\BackendUserMiddleware: https://github.com/TYPO3/testing-framework/blob/3d03574ce47d247f1c893cd8bd49292982418d0b/Resources/Core/Functional/Extensions/json_response/Classes/Middleware/BackendUserHandler.php#L53-L54

Some of the current todos fail because the test context is wrong.

Reviews 2