Issue Bug Closed

#79759Failing unit tests on Windows system in TYPO3\CMS\Install\Tests\Unit\UpgradeAnalysis\DocumentationFileTest

Nicole Hummel 02/11/17, 17:10 updated 10/17/17, 23:24

Description

Due to wrong path handling in \TYPO3\CMS\Install\UpgradeAnalysis\DocumentationFile several unit tests fail on Windows systems because of the usage of DIRECTORY_SEPARATOR constant.

TYPO3\CMS\Install\Tests\Unit\UpgradeAnalysis\DocumentationFileTest::findDocumentationFilesReturnsArrayOfFiles
InvalidArgumentException: the given file does not belong to the changelog dir. Aborting

D:\Version Control\Git\TYPO3\TYPO3.CMS\master\typo3\sysext\install\Classes\UpgradeAnalysis\DocumentationFile.php:95
D:\Version Control\Git\TYPO3\TYPO3.CMS\master\typo3\sysext\install\Classes\UpgradeAnalysis\DocumentationFile.php:236
D:\Version Control\Git\TYPO3\TYPO3.CMS\master\typo3\sysext\install\Classes\UpgradeAnalysis\DocumentationFile.php:79
D:\Version Control\Git\TYPO3\TYPO3.CMS\master\typo3\sysext\install\tests\Unit\UpgradeAnalysis\DocumentationFileTest.php:145

TYPO3\CMS\Install\Tests\Unit\UpgradeAnalysis\DocumentationFileTest::extractingTagsProvidesTagsAsDesired
InvalidArgumentException: the given file does not belong to the changelog dir. Aborting

D:\Version Control\Git\TYPO3\TYPO3.CMS\master\typo3\sysext\install\Classes\UpgradeAnalysis\DocumentationFile.php:95
D:\Version Control\Git\TYPO3\TYPO3.CMS\master\typo3\sysext\install\Classes\UpgradeAnalysis\DocumentationFile.php:236
D:\Version Control\Git\TYPO3\TYPO3.CMS\master\typo3\sysext\install\Classes\UpgradeAnalysis\DocumentationFile.php:79
D:\Version Control\Git\TYPO3\TYPO3.CMS\master\typo3\sysext\install\tests\Unit\UpgradeAnalysis\DocumentationFileTest.php:158

TYPO3\CMS\Install\Tests\Unit\UpgradeAnalysis\DocumentationFileTest::filesAreFilteredByUsersChoice
InvalidArgumentException: the given file does not belong to the changelog dir. Aborting

Reviews 1