[BUGFIX] Fix failing test in StorageRepositoryTest 36/22836/9
authorAnja Leichsenring <aleichsenring@ab-softlab.de>
Tue, 6 Aug 2013 08:18:00 +0000 (10:18 +0200)
committerNicole Cordes <typo3@cordes.co>
Tue, 6 Aug 2013 12:18:24 +0000 (14:18 +0200)
commit27da4cc47266fcf67242f3e59d1428aafc4216c5
tree0c8e8ab1f5dc09328964fefdf20dd60be4804dd8
parentba9e4530a025e802d6f62ca9b5861c128458a6b3
[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/22836
Reviewed-by: Ernesto Baschny
Tested-by: Ernesto Baschny
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Nicole Cordes
Tested-by: Nicole Cordes
typo3/sysext/core/Classes/Resource/StorageRepository.php
typo3/sysext/core/Tests/Unit/Resource/StorageRepositoryTest.php