‪TYPO3CMS  9.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)
 
string getUrlInMount ($path)
 
 addToVfs (array $dirStructure)
 
string getUrl ($path)
 
TYPO3 CMS Core Resource File TYPO3 CMS Core Resource Folder _createFileFolderMock ($type, $identifier, $mockedMethods)
 
TYPO3 CMS Core Resource File PHPUnit_Framework_MockObject_MockObject getSimpleFileMock ($identifier, $mockedMethods=[])
 
TYPO3 CMS Core Resource Folder getSimpleFolderMock ($identifier, $mockedMethods=[])
 
TYPO3 CMS Core Resource File TYPO3 CMS Core Resource Folder getFolderMock ($identifier, $mockedMethods=[], $subfolders=[], $files=[])
 

Protected Attributes

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

Detailed Description

Test cases for FileCollectionRegistry

Definition at line 20 of file FileCollectionRegistryTest.php.

Member Function Documentation

◆ addNewTypeToTCA()

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

Definition at line 159 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 110 of file FileCollectionRegistryTest.php.

◆ getFileCollectionClassThrowsExceptionIfClassIsNotRegistered()

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

Definition at line 99 of file FileCollectionRegistryTest.php.

◆ initializeTestSubject()

◆ registeredFileCollectionClassesCanBeRetrieved()

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

Definition at line 39 of file FileCollectionRegistryTest.php.

◆ registerFileCollectionClassOverridesExistingRegisteredFileCollectionClass()

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

Definition at line 88 of file FileCollectionRegistryTest.php.

◆ registerFileCollectionClassThrowsExceptionIfClassDoesNotExist()

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

Definition at line 50 of file FileCollectionRegistryTest.php.

◆ registerFileCollectionClassThrowsExceptionIfTypeIsAlreadyRegistered()

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

Definition at line 74 of file FileCollectionRegistryTest.php.

◆ registerFileCollectionClassThrowsExceptionIfTypeIsTooLong()

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

Definition at line 61 of file FileCollectionRegistryTest.php.

◆ setUp()

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

Member Data Documentation

◆ $testSubject

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

Definition at line 24 of file FileCollectionRegistryTest.php.