[BUGFIX] Fix failing test in StorageRepositoryTest 41/22841/3
authorAnja Leichsenring <aleichsenring@ab-softlab.de>
Tue, 6 Aug 2013 08:18:00 +0000 (10:18 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Tue, 6 Aug 2013 12:50:10 +0000 (14:50 +0200)
commit7e568f05f08a7db8c47ddec7f03a19356e004398
tree2b407fbe332de06fb81a3d3a150242edecd464c0
parentb991af68a1a32500799cab5f335718070c0d83b0
[BUGFIX] Fix failing test in StorageRepositoryTest

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.

Resolves: #50809
Relates: #50803
Releases: 6.2, 6.1, 6.0
Change-Id: I7319d8ccef530feff69a7f9885df24dba0beed4d
Reviewed-on: https://review.typo3.org/22841
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
typo3/sysext/core/Classes/Resource/StorageRepository.php
typo3/sysext/core/Tests/Unit/Resource/StorageRepositoryTest.php