‪TYPO3CMS  9.5
TYPO3\CMS\Install\Tests\Unit\FolderStructure\DirectoryNodeTest Class Reference
Inheritance diagram for TYPO3\CMS\Install\Tests\Unit\FolderStructure\DirectoryNodeTest:
TYPO3\CMS\Install\Tests\Unit\FolderStructureTestCase

Public Member Functions

 constructorThrowsExceptionIfParentIsNull ()
 
 constructorThrowsExceptionIfNameContainsForwardSlash ()
 
 constructorCallsCreateChildrenIfChildrenAreSet ()
 
 constructorSetsParent ()
 
 constructorSetsTargetPermission ()
 
 constructorSetsName ()
 
 getStatusReturnsArray ()
 
 getStatusReturnsArrayWithWarningStatusIfDirectoryNotExists ()
 
 getStatusReturnsArrayWithErrorStatusIfNodeIsNotADirectory ()
 
 getStatusReturnsArrayWithErrorStatusIfDirectoryExistsButIsNotWritable ()
 
 getStatusReturnsArrayWithNoticeStatusIfDirectoryExistsButPermissionAreNotCorrect ()
 
 getStatusReturnsArrayWithOkStatusIfDirectoryExistsAndPermissionAreCorrect ()
 
 getStatusCallsGetStatusOnChildren ()
 
 getStatusReturnsArrayWithOwnStatusAndStatusOfChild ()
 
 fixCallsFixSelfAndReturnsItsResult ()
 
 fixCallsFixOnChildrenAndReturnsMergedResult ()
 
 fixSelfCallsCreateDirectoryIfDirectoryDoesNotExistAndReturnsResult ()
 
 fixSelfReturnsErrorStatusIfNodeExistsButIsNotADirectoryAndReturnsResult ()
 
 fixSelfCallsFixPermissionIfDirectoryExistsButIsNotWritable ()
 
 createDirectoryThrowsExceptionIfNodeExists ()
 
 createDirectoryCreatesDirectory ()
 
 createDirectoryReturnsOkStatusIfDirectoryWasCreated ()
 
 createDirectoryReturnsErrorStatusIfDirectoryWasNotCreated ()
 
 createChildrenThrowsExceptionIfAChildTypeIsNotSet ()
 
 createChildrenThrowsExceptionIfAChildNameIsNotSet ()
 
 createChildrenThrowsExceptionForMultipleChildrenWithSameName ()
 
 getChildrenReturnsCreatedChild ()
 
 isWritableReturnsFalseIfNodeDoesNotExist ()
 
 isWritableReturnsTrueIfNodeExistsAndFileCanBeCreated ()
 
 isWritableReturnsFalseIfNodeExistsButFileCanNotBeCreated ()
 
 isDirectoryReturnsTrueIfNameIsADirectory ()
 
 isDirectoryReturnsFalseIfNameIsALinkToADirectory ()
 

Additional Inherited Members

- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Install\Tests\Unit\FolderStructureTestCase
string getVirtualTestDir ($prefix='root_')
 
string getVirtualTestFilePath ($prefix='file_')
 

Detailed Description

Test case

Definition at line 30 of file DirectoryNodeTest.php.

Member Function Documentation

◆ constructorCallsCreateChildrenIfChildrenAreSet()

TYPO3\CMS\Install\Tests\Unit\FolderStructure\DirectoryNodeTest::constructorCallsCreateChildrenIfChildrenAreSet ( )
Test:

Definition at line 63 of file DirectoryNodeTest.php.

◆ constructorSetsName()

TYPO3\CMS\Install\Tests\Unit\FolderStructure\DirectoryNodeTest::constructorSetsName ( )
Test:

Definition at line 120 of file DirectoryNodeTest.php.

◆ constructorSetsParent()

TYPO3\CMS\Install\Tests\Unit\FolderStructure\DirectoryNodeTest::constructorSetsParent ( )
Test:

Definition at line 88 of file DirectoryNodeTest.php.

◆ constructorSetsTargetPermission()

TYPO3\CMS\Install\Tests\Unit\FolderStructure\DirectoryNodeTest::constructorSetsTargetPermission ( )
Test:

Definition at line 103 of file DirectoryNodeTest.php.

◆ constructorThrowsExceptionIfNameContainsForwardSlash()

TYPO3\CMS\Install\Tests\Unit\FolderStructure\DirectoryNodeTest::constructorThrowsExceptionIfNameContainsForwardSlash ( )
Test:

Definition at line 47 of file DirectoryNodeTest.php.

◆ constructorThrowsExceptionIfParentIsNull()

TYPO3\CMS\Install\Tests\Unit\FolderStructure\DirectoryNodeTest::constructorThrowsExceptionIfParentIsNull ( )
Test:

Definition at line 35 of file DirectoryNodeTest.php.

◆ createChildrenThrowsExceptionForMultipleChildrenWithSameName()

TYPO3\CMS\Install\Tests\Unit\FolderStructure\DirectoryNodeTest::createChildrenThrowsExceptionForMultipleChildrenWithSameName ( )
Test:

Definition at line 529 of file DirectoryNodeTest.php.

◆ createChildrenThrowsExceptionIfAChildNameIsNotSet()

TYPO3\CMS\Install\Tests\Unit\FolderStructure\DirectoryNodeTest::createChildrenThrowsExceptionIfAChildNameIsNotSet ( )
Test:

Definition at line 512 of file DirectoryNodeTest.php.

◆ createChildrenThrowsExceptionIfAChildTypeIsNotSet()

TYPO3\CMS\Install\Tests\Unit\FolderStructure\DirectoryNodeTest::createChildrenThrowsExceptionIfAChildTypeIsNotSet ( )
Test:

Definition at line 495 of file DirectoryNodeTest.php.

◆ createDirectoryCreatesDirectory()

TYPO3\CMS\Install\Tests\Unit\FolderStructure\DirectoryNodeTest::createDirectoryCreatesDirectory ( )

◆ createDirectoryReturnsErrorStatusIfDirectoryWasNotCreated()

TYPO3\CMS\Install\Tests\Unit\FolderStructure\DirectoryNodeTest::createDirectoryReturnsErrorStatusIfDirectoryWasNotCreated ( )

◆ createDirectoryReturnsOkStatusIfDirectoryWasCreated()

TYPO3\CMS\Install\Tests\Unit\FolderStructure\DirectoryNodeTest::createDirectoryReturnsOkStatusIfDirectoryWasCreated ( )

◆ createDirectoryThrowsExceptionIfNodeExists()

TYPO3\CMS\Install\Tests\Unit\FolderStructure\DirectoryNodeTest::createDirectoryThrowsExceptionIfNodeExists ( )
Test:

Definition at line 436 of file DirectoryNodeTest.php.

◆ fixCallsFixOnChildrenAndReturnsMergedResult()

TYPO3\CMS\Install\Tests\Unit\FolderStructure\DirectoryNodeTest::fixCallsFixOnChildrenAndReturnsMergedResult ( )
Test:

Definition at line 351 of file DirectoryNodeTest.php.

◆ fixCallsFixSelfAndReturnsItsResult()

TYPO3\CMS\Install\Tests\Unit\FolderStructure\DirectoryNodeTest::fixCallsFixSelfAndReturnsItsResult ( )
Test:

Definition at line 333 of file DirectoryNodeTest.php.

◆ fixSelfCallsCreateDirectoryIfDirectoryDoesNotExistAndReturnsResult()

TYPO3\CMS\Install\Tests\Unit\FolderStructure\DirectoryNodeTest::fixSelfCallsCreateDirectoryIfDirectoryDoesNotExistAndReturnsResult ( )
Test:

Definition at line 374 of file DirectoryNodeTest.php.

◆ fixSelfCallsFixPermissionIfDirectoryExistsButIsNotWritable()

TYPO3\CMS\Install\Tests\Unit\FolderStructure\DirectoryNodeTest::fixSelfCallsFixPermissionIfDirectoryExistsButIsNotWritable ( )
Test:

Definition at line 416 of file DirectoryNodeTest.php.

◆ fixSelfReturnsErrorStatusIfNodeExistsButIsNotADirectoryAndReturnsResult()

TYPO3\CMS\Install\Tests\Unit\FolderStructure\DirectoryNodeTest::fixSelfReturnsErrorStatusIfNodeExistsButIsNotADirectoryAndReturnsResult ( )

◆ getChildrenReturnsCreatedChild()

TYPO3\CMS\Install\Tests\Unit\FolderStructure\DirectoryNodeTest::getChildrenReturnsCreatedChild ( )
Test:

Definition at line 551 of file DirectoryNodeTest.php.

◆ getStatusCallsGetStatusOnChildren()

TYPO3\CMS\Install\Tests\Unit\FolderStructure\DirectoryNodeTest::getStatusCallsGetStatusOnChildren ( )
Test:

Definition at line 280 of file DirectoryNodeTest.php.

◆ getStatusReturnsArray()

TYPO3\CMS\Install\Tests\Unit\FolderStructure\DirectoryNodeTest::getStatusReturnsArray ( )

◆ getStatusReturnsArrayWithErrorStatusIfDirectoryExistsButIsNotWritable()

TYPO3\CMS\Install\Tests\Unit\FolderStructure\DirectoryNodeTest::getStatusReturnsArrayWithErrorStatusIfDirectoryExistsButIsNotWritable ( )

◆ getStatusReturnsArrayWithErrorStatusIfNodeIsNotADirectory()

TYPO3\CMS\Install\Tests\Unit\FolderStructure\DirectoryNodeTest::getStatusReturnsArrayWithErrorStatusIfNodeIsNotADirectory ( )

◆ getStatusReturnsArrayWithNoticeStatusIfDirectoryExistsButPermissionAreNotCorrect()

TYPO3\CMS\Install\Tests\Unit\FolderStructure\DirectoryNodeTest::getStatusReturnsArrayWithNoticeStatusIfDirectoryExistsButPermissionAreNotCorrect ( )

◆ getStatusReturnsArrayWithOkStatusIfDirectoryExistsAndPermissionAreCorrect()

TYPO3\CMS\Install\Tests\Unit\FolderStructure\DirectoryNodeTest::getStatusReturnsArrayWithOkStatusIfDirectoryExistsAndPermissionAreCorrect ( )

◆ getStatusReturnsArrayWithOwnStatusAndStatusOfChild()

TYPO3\CMS\Install\Tests\Unit\FolderStructure\DirectoryNodeTest::getStatusReturnsArrayWithOwnStatusAndStatusOfChild ( )

◆ getStatusReturnsArrayWithWarningStatusIfDirectoryNotExists()

TYPO3\CMS\Install\Tests\Unit\FolderStructure\DirectoryNodeTest::getStatusReturnsArrayWithWarningStatusIfDirectoryNotExists ( )

◆ isDirectoryReturnsFalseIfNameIsALinkToADirectory()

TYPO3\CMS\Install\Tests\Unit\FolderStructure\DirectoryNodeTest::isDirectoryReturnsFalseIfNameIsALinkToADirectory ( )
Test:
See also
https://github.com/mikey179/vfsStream/wiki/Known-Issues - symlink doesn't work with vfsStream

Definition at line 631 of file DirectoryNodeTest.php.

References $dir, and TYPO3\CMS\Core\Core\Environment\getVarPath().

◆ isDirectoryReturnsTrueIfNameIsADirectory()

TYPO3\CMS\Install\Tests\Unit\FolderStructure\DirectoryNodeTest::isDirectoryReturnsTrueIfNameIsADirectory ( )

◆ isWritableReturnsFalseIfNodeDoesNotExist()

TYPO3\CMS\Install\Tests\Unit\FolderStructure\DirectoryNodeTest::isWritableReturnsFalseIfNodeDoesNotExist ( )

◆ isWritableReturnsFalseIfNodeExistsButFileCanNotBeCreated()

TYPO3\CMS\Install\Tests\Unit\FolderStructure\DirectoryNodeTest::isWritableReturnsFalseIfNodeExistsButFileCanNotBeCreated ( )

◆ isWritableReturnsTrueIfNodeExistsAndFileCanBeCreated()

TYPO3\CMS\Install\Tests\Unit\FolderStructure\DirectoryNodeTest::isWritableReturnsTrueIfNodeExistsAndFileCanBeCreated ( )