[BUGFIX] Failing Resource\FactoryTest on Windows systems 94/22894/3
authorNicole Cordes <typo3@cordes.co>
Tue, 6 Aug 2013 20:00:25 +0000 (22:00 +0200)
committerSteffen Ritter <info@rs-websystems.de>
Wed, 7 Aug 2013 09:17:07 +0000 (11:17 +0200)
commitcc31a4d17b0247e9e5e2d22f43c4f16814fd34e7
treee6b703dc2aa4deaaf29f00ff0bbb45b0ae6d1aec
parent41e5916df5acdf58107ceb5c059a5959ac0f97d1
[BUGFIX] Failing Resource\FactoryTest on Windows systems

Two tests in class TYPO3\CMS\Core\Tests\Unit\Resource\FactoryTest fail
with warnings. This is because of two single issues.

First of all the test depends on a folder which (might) belong to an own
storage other than storage 0 (fileadmin). This patch changes fileadmin
to the typo3 folder as this one should be not included in any storage.

On the other hand on Windows systems a full path contains always a colon
which breaks any storage check. To solve this we have to fix any
absolute path beforehand as it is done in the sub functions as well.

Resolves: #50843
Releases: 6.2, 6.1, 6.0
Change-Id: I950a3c81222155da403ca1eb7b920e8682033450
Reviewed-on: https://review.typo3.org/22894
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
typo3/sysext/core/Classes/Resource/ResourceFactory.php
typo3/sysext/core/Tests/Unit/Resource/FactoryTest.php [deleted file]
typo3/sysext/core/Tests/Unit/Resource/ResourceFactoryTest.php [new file with mode: 0644]