Issue Bug Closed

#64409Failing unit tests on windows because of symlinks

Stephan Großberndt 01/21/15, 18:15 updated 10/02/18, 11:46

Description

When running the TYPO3 CMS unit tests on Windows errors ocurr, if the windows configuration is not set accordingly:

1) TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\FileHandlingUtilityTest::removeDirectoryRemovesSymlink
symlink(): Cannot create symlink, error code(1314)

D:\typo3\master\typo3\sysext\extensionmanager\Tests\Unit\Utility\FileHandlingUtilityTest.php:172
D:\typo3\master\Packages\Libraries\phpunit\phpunit\phpunit:62

2) TYPO3\CMS\Extensionmanager\Tests\Unit\Utility\FileHandlingUtilityTest::removeDirectoryDoesNotRemoveContentOfSymlinkedTargetDirectory
symlink(): Cannot create symlink, error code(1314)

D:\typo3\master\typo3\sysext\extensionmanager\Tests\Unit\Utility\FileHandlingUtilityTest.php:193
D:\typo3\master\Packages\Libraries\phpunit\phpunit\phpunit:62

According to http://wiki.typo3.org/Flow_Installation_Hints special rights have to be set on Windows in order to be able to create symlinks.

If TYPO3 is running on Windows, the install tool should try to create a symlink and display a warning if it fails and hint to the according configuration help.

Reviews 2