‪TYPO3CMS  11.5
TYPO3\CMS\Core\Tests\Unit\Resource\Collection\FileCollectionRegistryTest Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\Unit\Resource\Collection\FileCollectionRegistryTest:
TYPO3\CMS\Core\Tests\Unit\Resource\BaseTestCase

Public Member Functions

 registeredFileCollectionClassesCanBeRetrieved ()
 
 registerFileCollectionClassThrowsExceptionIfClassDoesNotExist ()
 
 registerFileCollectionClassThrowsExceptionIfTypeIsTooLong ()
 
 registerFileCollectionClassThrowsExceptionIfTypeIsAlreadyRegistered ()
 
 registerFileCollectionClassOverridesExistingRegisteredFileCollectionClass ()
 
 getFileCollectionClassThrowsExceptionIfClassIsNotRegistered ()
 
 getFileCollectionClassAcceptsClassNameIfClassIsRegistered ()
 
 fileCollectionRegistryIsInitializedWithPreconfiguredFileCollections ()
 
 fileCollectionExistsReturnsTrueForAllExistingFileCollections ()
 
 fileCollectionExistsReturnsFalseIfFileCollectionDoesNotExist ()
 
 addNewTypeToTCA ()
 

Protected Member Functions

 setUp ()
 
 initializeTestSubject ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Core\Tests\Unit\Resource\BaseTestCase
 getMountRootUrl ()
 
 mergeToVfsContents ($contents)
 
 initializeVfs ()
 
 addToMount (array $dirStructure)
 
 getUrlInMount (string $path)
 
 addToVfs (array $dirStructure)
 
 getUrl (string $path)
 
TYPO3 CMS Core Resource File TYPO3 CMS Core Resource Folder _createFileFolderMock (string $type, string $identifier, array $mockedMethods)
 
TYPO3 CMS Core Resource File PHPUnit Framework MockObject MockObject getSimpleFileMock (string $identifier, array $mockedMethods=[])
 
TYPO3 CMS Core Resource Folder getSimpleFolderMock (string $identifier, array $mockedMethods=[])
 
TYPO3 CMS Core Resource File TYPO3 CMS Core Resource Folder getFolderMock (string $identifier, array $mockedMethods=[], array $subfolders=[], array $files=[])
 

Protected Attributes

FileCollectionRegistry $testSubject
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Core\Tests\Unit\Resource\BaseTestCase
string $basedir = 'basedir'
 
string $mountDir
 
array $vfsContents = []
 

Detailed Description

Test cases for FileCollectionRegistry

Definition at line 29 of file FileCollectionRegistryTest.php.

Member Function Documentation

◆ addNewTypeToTCA()

TYPO3\CMS\Core\Tests\Unit\Resource\Collection\FileCollectionRegistryTest::addNewTypeToTCA ( )
Test:

Definition at line 167 of file FileCollectionRegistryTest.php.

References $GLOBALS.

◆ fileCollectionExistsReturnsFalseIfFileCollectionDoesNotExist()

TYPO3\CMS\Core\Tests\Unit\Resource\Collection\FileCollectionRegistryTest::fileCollectionExistsReturnsFalseIfFileCollectionDoesNotExist ( )

◆ fileCollectionExistsReturnsTrueForAllExistingFileCollections()

TYPO3\CMS\Core\Tests\Unit\Resource\Collection\FileCollectionRegistryTest::fileCollectionExistsReturnsTrueForAllExistingFileCollections ( )

◆ fileCollectionRegistryIsInitializedWithPreconfiguredFileCollections()

TYPO3\CMS\Core\Tests\Unit\Resource\Collection\FileCollectionRegistryTest::fileCollectionRegistryIsInitializedWithPreconfiguredFileCollections ( )

◆ getFileCollectionClassAcceptsClassNameIfClassIsRegistered()

TYPO3\CMS\Core\Tests\Unit\Resource\Collection\FileCollectionRegistryTest::getFileCollectionClassAcceptsClassNameIfClassIsRegistered ( )
Test:

Definition at line 118 of file FileCollectionRegistryTest.php.

◆ getFileCollectionClassThrowsExceptionIfClassIsNotRegistered()

TYPO3\CMS\Core\Tests\Unit\Resource\Collection\FileCollectionRegistryTest::getFileCollectionClassThrowsExceptionIfClassIsNotRegistered ( )

◆ initializeTestSubject()

◆ registeredFileCollectionClassesCanBeRetrieved()

TYPO3\CMS\Core\Tests\Unit\Resource\Collection\FileCollectionRegistryTest::registeredFileCollectionClassesCanBeRetrieved ( )
Test:

Definition at line 47 of file FileCollectionRegistryTest.php.

◆ registerFileCollectionClassOverridesExistingRegisteredFileCollectionClass()

TYPO3\CMS\Core\Tests\Unit\Resource\Collection\FileCollectionRegistryTest::registerFileCollectionClassOverridesExistingRegisteredFileCollectionClass ( )
Test:

Definition at line 96 of file FileCollectionRegistryTest.php.

◆ registerFileCollectionClassThrowsExceptionIfClassDoesNotExist()

TYPO3\CMS\Core\Tests\Unit\Resource\Collection\FileCollectionRegistryTest::registerFileCollectionClassThrowsExceptionIfClassDoesNotExist ( )

◆ registerFileCollectionClassThrowsExceptionIfTypeIsAlreadyRegistered()

TYPO3\CMS\Core\Tests\Unit\Resource\Collection\FileCollectionRegistryTest::registerFileCollectionClassThrowsExceptionIfTypeIsAlreadyRegistered ( )
Test:

Definition at line 82 of file FileCollectionRegistryTest.php.

◆ registerFileCollectionClassThrowsExceptionIfTypeIsTooLong()

TYPO3\CMS\Core\Tests\Unit\Resource\Collection\FileCollectionRegistryTest::registerFileCollectionClassThrowsExceptionIfTypeIsTooLong ( )
Test:

Definition at line 69 of file FileCollectionRegistryTest.php.

◆ setUp()

TYPO3\CMS\Core\Tests\Unit\Resource\Collection\FileCollectionRegistryTest::setUp ( )
protected

Member Data Documentation

◆ $testSubject

FileCollectionRegistry TYPO3\CMS\Core\Tests\Unit\Resource\Collection\FileCollectionRegistryTest::$testSubject
protected

Definition at line 31 of file FileCollectionRegistryTest.php.