With #50803 the usage of the constant TYPO3_MODE was introduced. This
leads to the failing test, after the constant can not be redefined
for test purposes.
To work around this, a method that can be mocked is introduced, and
specifically set to "FE" for this test to work again.