Bug #50844
closedFailing tests in TYPO3\CMS\Core\Tests\Unit\Resource\Driver\LocalDriverTest on Windows systems
100%
Description
There are multiple tests failing on Windows systems:
createdFilesAreEmpty
Error in test case createdFilesAreEmpty
File: C:\Users\Nicole\Version Control\Git\TYPO3\TYPO3.CMS\master\typo3\sysext\core\Classes\Resource\Driver\LocalDriver.php
Line: 1171
file_get_contents(C:/Users/Nicole/Server/typo3-master.local/typo3temp/fal-test-52015817c50c7/) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: No such file or directory
getFileListReturnsAllFilesInDirectory
Failure in test case getFileListReturnsAllFilesInDirectory
File: C:\Users\Nicole\Version Control\Git\TYPO3\TYPO3.CMS\master\typo3\sysext\core\Tests\Unit\Resource\Driver\LocalDriverTest.php
Line: 740
Failed asserting that two arrays are equal.
Array ( 0 =>'file1' 1 =>'file2' )
getFileListReturnsAllFilesInSubdirectoryIfRecursiveParameterIsSet
Failure in test case getFileListReturnsAllFilesInSubdirectoryIfRecursiveParameterIsSet
File: C:\Users\Nicole\Version Control\Git\TYPO3\TYPO3.CMS\master\typo3\sysext\core\Tests\Unit\Resource\Driver\LocalDriverTest.php
Line: 765
Failed asserting that two arrays are equal.
Array ( 0 =>'aDir/subdir/file4' 1 =>'aDir/file3' 2 =>'file1' 3 =>'file2' )
getFolderListReturnsAllDirectoriesInDirectory
Failure in test case getFolderListReturnsAllDirectoriesInDirectory
File: C:\Users\Nicole\Version Control\Git\TYPO3\TYPO3.CMS\master\typo3\sysext\core\Tests\Unit\Resource\Driver\LocalDriverTest.php
Line: 857
Failed asserting that two arrays are equal.
Array ( 0 =>'dir1' 1 =>'dir2' )
getFolderListReturnsHiddenFoldersByDefault
Failure in test case getFolderListReturnsHiddenFoldersByDefault
File: C:\Users\Nicole\Version Control\Git\TYPO3\TYPO3.CMS\master\typo3\sysext\core\Tests\Unit\Resource\Driver\LocalDriverTest.php
Line: 876
Failed asserting that two arrays are equal.
Array ( 0 =>'.someHiddenDir' 1 =>'aDir' )
getFolderListUsesCorrectPathForItems
Failure in test case getFolderListUsesCorrectPathForItems
File: C:\Users\Nicole\Version Control\Git\TYPO3\TYPO3.CMS\master\typo3\sysext\core\Tests\Unit\Resource\Driver\LocalDriverTest.php
Line: 892
Failed asserting that null matches expected '/dir1/'.
copyFolderWithinStorageCopiesSingleSubFolderToNewFolderName
! Error in test case copyFolderWithinStorageCopiesSingleSubFolderToNewFolderName
File: C:\Users\Nicole\Version Control\Composer\phpunit\vendor\mikey179\vfsStream\src\main\php\org\bovigo\vfs\vfsStreamWrapper.php
Line: 816
mkdir(): Path vfs://base-5201581c47251/targetFolder/newFolderName/subFolder exists
copyFolderWithinStorageCopiesFileInSingleSubFolderToNewFolderName
! Error in test case copyFolderWithinStorageCopiesFileInSingleSubFolderToNewFolderName
File: C:\Users\Nicole\Version Control\Composer\phpunit\vendor\mikey179\vfsStream\src\main\php\org\bovigo\vfs\vfsStreamWrapper.php
Line: 816
mkdir(): Path vfs://base-5201581c5bfd6/targetFolder/newFolderName/subFolder exists