Project

General

Profile

Actions

Bug #85082

closed

Extbase translation tests don't fulfill expectations

Added by Nicole Cordes almost 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Extbase
Target version:
-
Start date:
2018-05-25
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The Extbase TranslationTest should be executed in frontend mode. A mock of the EnvironmentService is infiltrated into the GeneralUtility to be used as singleton instance. Unfortunately the whole setUpBasicFrontendEnvironment method is called after the subject (PostRepository) was initiliazed by the ObjectManager. This early initialization doesn't know the mock and generates its own EnvironmentService singleton instance.

The tests and their expectations don't use the EnvironmentServiceMock and run in another mode (backend).

Actions

Also available in: Atom PDF