‪TYPO3CMS  10.4
TYPO3\CMS\Core\Tests\Unit\Resource\ResourceFactoryTest Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\Unit\Resource\ResourceFactoryTest:

Public Member Functions

 createStorageCollectionObjectCreatesCollectionWithCorrectArguments ()
 
 getDriverObjectAcceptsDriverClassName ()
 
 retrieveFileOrFolderObjectCallsGetFolderObjectFromCombinedIdentifierWithRelativePath ()
 
 retrieveFileOrFolderObjectCallsGetFolderObjectFromCombinedIdentifierWithAbsolutePath ()
 
 retrieveFileOrFolderObjectReturnsFileIfPathIsGiven ()
 
 findBestMatchingStorageByLocalPathReturnsDefaultStorageIfNoMatchIsFound (array $storageConfiguration, $path, $expectedStorageId)
 
array storageDetectionDataProvider ()
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 

Protected Attributes

bool $resetSingletonInstances = true
 
ResourceFactory $subject
 
array $filesCreated = array( )
 

Private Member Functions

 asRelativePath (string $value)
 

Detailed Description

Test case

Definition at line 32 of file ResourceFactoryTest.php.

Member Function Documentation

◆ asRelativePath()

TYPO3\CMS\Core\Tests\Unit\Resource\ResourceFactoryTest::asRelativePath ( string  $value)
private

◆ createStorageCollectionObjectCreatesCollectionWithCorrectArguments()

TYPO3\CMS\Core\Tests\Unit\Resource\ResourceFactoryTest::createStorageCollectionObjectCreatesCollectionWithCorrectArguments ( )

◆ findBestMatchingStorageByLocalPathReturnsDefaultStorageIfNoMatchIsFound()

TYPO3\CMS\Core\Tests\Unit\Resource\ResourceFactoryTest::findBestMatchingStorageByLocalPathReturnsDefaultStorageIfNoMatchIsFound ( array  $storageConfiguration,
  $path,
  $expectedStorageId 
)
Parameters
array$storageConfiguration
string$path
int$expectedStorageId
Test:
‪@dataProvider storageDetectionDataProvider

Definition at line 172 of file ResourceFactoryTest.php.

References TYPO3\CMS\Core\Resource\ResourceFactory\findBestMatchingStorageByLocalPath().

◆ getDriverObjectAcceptsDriverClassName()

TYPO3\CMS\Core\Tests\Unit\Resource\ResourceFactoryTest::getDriverObjectAcceptsDriverClassName ( )
Test:

Definition at line 89 of file ResourceFactoryTest.php.

◆ retrieveFileOrFolderObjectCallsGetFolderObjectFromCombinedIdentifierWithAbsolutePath()

TYPO3\CMS\Core\Tests\Unit\Resource\ResourceFactoryTest::retrieveFileOrFolderObjectCallsGetFolderObjectFromCombinedIdentifierWithAbsolutePath ( )

◆ retrieveFileOrFolderObjectCallsGetFolderObjectFromCombinedIdentifierWithRelativePath()

TYPO3\CMS\Core\Tests\Unit\Resource\ResourceFactoryTest::retrieveFileOrFolderObjectCallsGetFolderObjectFromCombinedIdentifierWithRelativePath ( )

◆ retrieveFileOrFolderObjectReturnsFileIfPathIsGiven()

TYPO3\CMS\Core\Tests\Unit\Resource\ResourceFactoryTest::retrieveFileOrFolderObjectReturnsFileIfPathIsGiven ( )

◆ setUp()

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

Set up

Definition at line 49 of file ResourceFactoryTest.php.

◆ storageDetectionDataProvider()

array TYPO3\CMS\Core\Tests\Unit\Resource\ResourceFactoryTest::storageDetectionDataProvider ( )
Returns
‪array

Definition at line 185 of file ResourceFactoryTest.php.

◆ tearDown()

TYPO3\CMS\Core\Tests\Unit\Resource\ResourceFactoryTest::tearDown ( )
protected

Tear down

Definition at line 58 of file ResourceFactoryTest.php.

Member Data Documentation

◆ $filesCreated

array TYPO3\CMS\Core\Tests\Unit\Resource\ResourceFactoryTest::$filesCreated = array( )
protected

Definition at line 44 of file ResourceFactoryTest.php.

◆ $resetSingletonInstances

bool TYPO3\CMS\Core\Tests\Unit\Resource\ResourceFactoryTest::$resetSingletonInstances = true
protected

Reset singletons created by subject

Definition at line 36 of file ResourceFactoryTest.php.

◆ $subject