diff --git a/typo3/sysext/install/Tests/Unit/FolderStructure/DirectoryNodeTest.php b/typo3/sysext/install/Tests/Unit/FolderStructure/DirectoryNodeTest.php
index 4f943bb5c179e80e24676d27fe66867723847b80..38188f9b78b46521126ed8c8a13a6581d333fa66 100644
--- a/typo3/sysext/install/Tests/Unit/FolderStructure/DirectoryNodeTest.php
+++ b/typo3/sysext/install/Tests/Unit/FolderStructure/DirectoryNodeTest.php
@@ -17,7 +17,6 @@ declare(strict_types=1);
 
 namespace TYPO3\CMS\Install\Tests\Unit\FolderStructure;
 
-use org\bovigo\vfs\vfsStream;
 use TYPO3\CMS\Core\Core\Environment;
 use TYPO3\CMS\Core\Messaging\FlashMessage;
 use TYPO3\CMS\Core\Type\ContextualFeedbackSeverity;
@@ -30,9 +29,6 @@ use TYPO3\CMS\Install\FolderStructure\NodeInterface;
 use TYPO3\CMS\Install\FolderStructure\RootNodeInterface;
 use TYPO3\CMS\Install\Tests\Unit\FolderStructureTestCase;
 
-/**
- * Test case
- */
 class DirectoryNodeTest extends FolderStructureTestCase
 {
     /**
@@ -448,23 +444,6 @@ class DirectoryNodeTest extends FolderStructureTestCase
         self::assertSame(ContextualFeedbackSeverity::OK, $node->_call('createDirectory')->getSeverity());
     }
 
-    /**
-     * @test
-     */
-    public function createDirectoryReturnsErrorStatusIfDirectoryWasNotCreated(): void
-    {
-        $node = $this->getAccessibleMock(DirectoryNode::class, ['exists', 'getAbsolutePath', 'getRelativePathBelowSiteRoot'], [], '', false);
-        // using vfs here to avoid inconsistent behaviour of file systems concerning permissions
-        $root = vfsStream::setup();
-        $path = $root->url() . '/typo3temp/var/tests/' . StringUtility::getUniqueId('root_');
-        chmod($path, 00440);
-        $subPath = $path . '/' . StringUtility::getUniqueId('dir_');
-        $node->expects(self::once())->method('exists')->willReturn(false);
-        $node->method('getAbsolutePath')->willReturn($subPath);
-        $node->method('getRelativePathBelowSiteRoot')->willReturn($subPath);
-        self::assertSame(ContextualFeedbackSeverity::ERROR, $node->_call('createDirectory')->getSeverity());
-    }
-
     /**
      * @test
      */
diff --git a/typo3/sysext/install/Tests/Unit/FolderStructure/FileNodeTest.php b/typo3/sysext/install/Tests/Unit/FolderStructure/FileNodeTest.php
index b8648af535424c6f192812cd4bddb453e343e545..405045cdfc7d1867416908de65da06feb0415b09 100644
--- a/typo3/sysext/install/Tests/Unit/FolderStructure/FileNodeTest.php
+++ b/typo3/sysext/install/Tests/Unit/FolderStructure/FileNodeTest.php
@@ -17,7 +17,6 @@ declare(strict_types=1);
 
 namespace TYPO3\CMS\Install\Tests\Unit\FolderStructure;
 
-use org\bovigo\vfs\vfsStream;
 use TYPO3\CMS\Core\Core\Environment;
 use TYPO3\CMS\Core\Messaging\FlashMessage;
 use TYPO3\CMS\Core\Type\ContextualFeedbackSeverity;
@@ -30,9 +29,6 @@ use TYPO3\CMS\Install\FolderStructure\NodeInterface;
 use TYPO3\CMS\Install\FolderStructure\RootNodeInterface;
 use TYPO3\CMS\Install\Tests\Unit\FolderStructureTestCase;
 
-/**
- * Test case
- */
 class FileNodeTest extends FolderStructureTestCase
 {
     /**
@@ -564,23 +560,6 @@ class FileNodeTest extends FolderStructureTestCase
         self::assertTrue(is_file($path));
     }
 
-    /**
-     * @test
-     */
-    public function createFileReturnsErrorStatusIfFileWasNotCreated(): void
-    {
-        $node = $this->getAccessibleMock(FileNode::class, ['exists', 'getAbsolutePath', 'getRelativePathBelowSiteRoot'], [], '', false);
-        // using vfs here to avoid inconsistent behaviour of file systems concerning permissions
-        $root = vfsStream::setup();
-        $path = $root->url() . '/typo3temp/var/tests/' . StringUtility::getUniqueId();
-        chmod($path, 00440);
-        $subPath = $path . '/' . StringUtility::getUniqueId('file_');
-        $node->expects(self::once())->method('exists')->willReturn(false);
-        $node->method('getAbsolutePath')->willReturn($subPath);
-        $node->method('getRelativePathBelowSiteRoot')->willReturn($subPath);
-        self::assertSame(ContextualFeedbackSeverity::ERROR, $node->_call('createFile')->getSeverity());
-    }
-
     /**
      * @test
      */