[TASK] Tests: Decouple InstallTool unit tests from real filesystem 01/44301/2
authorMorton Jonuschat <m.jonuschat@mojocode.de>
Mon, 26 Oct 2015 18:24:14 +0000 (19:24 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 29 Oct 2015 09:35:39 +0000 (10:35 +0100)
commit35ebf64619296e8356f6f4f06d4084dc17c06264
tree18f52824e5b43e1935f779b4f3ccef7c6cec9352
parentc1eae866dacab3c1e74e3c2fa31419403fe375b1
[TASK] Tests: Decouple InstallTool unit tests from real filesystem

Change the FolderStructure tests to use a vfsStream virtual filesystem
for all tests that work with files, directories and permissions to make
the tests less reliant on the capabilities of the user running the
testsuite and the real filesystem.

Resolves: #71053
Releases: master
Change-Id: Ife42f43008215b382f70d5fe956d3dcf9590f5b9
Reviewed-on: https://review.typo3.org/44301
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/install/Tests/Unit/FolderStructure/AbstractNodeTest.php
typo3/sysext/install/Tests/Unit/FolderStructure/DirectoryNodeTest.php
typo3/sysext/install/Tests/Unit/FolderStructure/FileNodeTest.php
typo3/sysext/install/Tests/Unit/FolderStructure/LinkNodeTest.php
typo3/sysext/install/Tests/Unit/FolderStructureTestCase.php [new file with mode: 0644]