[BUGFIX] Failing Resource\FactoryTest on Windows systems 12/22912/2
authorNicole Cordes <typo3@cordes.co>
Tue, 6 Aug 2013 20:00:25 +0000 (22:00 +0200)
committerNicole Cordes <typo3@cordes.co>
Wed, 7 Aug 2013 09:53:45 +0000 (11:53 +0200)
commit903024c47ad5d9637d8f84674f587edea881279a
tree751ce4c6e736f1b23e5aecdbb8ace579c85a91fa
parentd65c36043ee67c8a7503dd0832149d6c353015d6
[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/22912
Reviewed-by: Nicole Cordes
Tested-by: Nicole Cordes
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]