‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Tests\Functional\Resource\StorageRepositoryTest Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\Functional\Resource\StorageRepositoryTest:

Public Member Functions

 bestStorageIsResolved (string $sourceIdentifier, string $expectedCombinedIdentifier)
 
 getNestedProcessingFolderTest ()
 
 isWithinFileMountBoundariesRespectsReadOnlyFileMounts (string $targetDirectory, string $fileMountFolder, bool $isFileMountReadOnly, bool $checkWriteAccess, bool $expectedResult)
 
 getProcessingRootFolderTest ()
 
 getRoleReturnsDefaultForRegularFolders ()
 
 replaceFileFailsIfLocalFileDoesNotExist ()
 
 createFolderThrowsExceptionIfParentFolderDoesNotExist ()
 
 deleteFileMovesFileToRecyclerFolderIfAvailable ()
 
 deleteFileUnlinksFileIfNoRecyclerFolderAvailable ()
 
 searchFilesFindsFilesInFolder (string $searchTerm, ?string $searchFolder, bool $recursive, array $filters, array $expectedIdentifiers)
 
 copyFolderThrowsErrorWhenFolderAlreadyExistsInTargetFolderAndConflictModeIsCancel ()
 
 copyFolderGeneratesNewFolderNameWhenFolderAlreadyExistsInTargetFolderAndConflictModeIsRename ()
 
 copyFileThrowsErrorWhenFileWithSameNameAlreadyExistsInTargetFolderAndConflictModeIsCancel ()
 
 copyFileGeneratesNewFileNameWhenFileAlreadyExistsInTargetFolderAndConflictModeIsRename ()
 
 copyFileCopiesMetadata ()
 

Static Public Member Functions

static bestStorageIsResolvedDataProvider ()
 
static isWithinFileMountBoundariesDataProvider ()
 
static searchFilesFindsFilesInFolderDataProvider ()
 

Protected Member Functions

 tearDown ()
 

Detailed Description

Definition at line 36 of file StorageRepositoryTest.php.

Member Function Documentation

◆ bestStorageIsResolved()

TYPO3\CMS\Core\Tests\Functional\Resource\StorageRepositoryTest::bestStorageIsResolved ( string  $sourceIdentifier,
string  $expectedCombinedIdentifier 
)
Test:
‪@dataProvider bestStorageIsResolvedDataProvider

Definition at line 102 of file StorageRepositoryTest.php.

References TYPO3\CMS\Core\Core\Environment\getPublicPath().

◆ bestStorageIsResolvedDataProvider()

static TYPO3\CMS\Core\Tests\Functional\Resource\StorageRepositoryTest::bestStorageIsResolvedDataProvider ( )
static

Definition at line 46 of file StorageRepositoryTest.php.

◆ copyFileCopiesMetadata()

TYPO3\CMS\Core\Tests\Functional\Resource\StorageRepositoryTest::copyFileCopiesMetadata ( )

◆ copyFileGeneratesNewFileNameWhenFileAlreadyExistsInTargetFolderAndConflictModeIsRename()

TYPO3\CMS\Core\Tests\Functional\Resource\StorageRepositoryTest::copyFileGeneratesNewFileNameWhenFileAlreadyExistsInTargetFolderAndConflictModeIsRename ( )

◆ copyFileThrowsErrorWhenFileWithSameNameAlreadyExistsInTargetFolderAndConflictModeIsCancel()

TYPO3\CMS\Core\Tests\Functional\Resource\StorageRepositoryTest::copyFileThrowsErrorWhenFileWithSameNameAlreadyExistsInTargetFolderAndConflictModeIsCancel ( )

◆ copyFolderGeneratesNewFolderNameWhenFolderAlreadyExistsInTargetFolderAndConflictModeIsRename()

TYPO3\CMS\Core\Tests\Functional\Resource\StorageRepositoryTest::copyFolderGeneratesNewFolderNameWhenFolderAlreadyExistsInTargetFolderAndConflictModeIsRename ( )

◆ copyFolderThrowsErrorWhenFolderAlreadyExistsInTargetFolderAndConflictModeIsCancel()

TYPO3\CMS\Core\Tests\Functional\Resource\StorageRepositoryTest::copyFolderThrowsErrorWhenFolderAlreadyExistsInTargetFolderAndConflictModeIsCancel ( )

◆ createFolderThrowsExceptionIfParentFolderDoesNotExist()

TYPO3\CMS\Core\Tests\Functional\Resource\StorageRepositoryTest::createFolderThrowsExceptionIfParentFolderDoesNotExist ( )
Test:

Definition at line 286 of file StorageRepositoryTest.php.

◆ deleteFileMovesFileToRecyclerFolderIfAvailable()

TYPO3\CMS\Core\Tests\Functional\Resource\StorageRepositoryTest::deleteFileMovesFileToRecyclerFolderIfAvailable ( )

◆ deleteFileUnlinksFileIfNoRecyclerFolderAvailable()

TYPO3\CMS\Core\Tests\Functional\Resource\StorageRepositoryTest::deleteFileUnlinksFileIfNoRecyclerFolderAvailable ( )

◆ getNestedProcessingFolderTest()

TYPO3\CMS\Core\Tests\Functional\Resource\StorageRepositoryTest::getNestedProcessingFolderTest ( )

◆ getProcessingRootFolderTest()

TYPO3\CMS\Core\Tests\Functional\Resource\StorageRepositoryTest::getProcessingRootFolderTest ( )
Test:

Definition at line 241 of file StorageRepositoryTest.php.

◆ getRoleReturnsDefaultForRegularFolders()

TYPO3\CMS\Core\Tests\Functional\Resource\StorageRepositoryTest::getRoleReturnsDefaultForRegularFolders ( )

◆ isWithinFileMountBoundariesDataProvider()

static TYPO3\CMS\Core\Tests\Functional\Resource\StorageRepositoryTest::isWithinFileMountBoundariesDataProvider ( )
static

Definition at line 166 of file StorageRepositoryTest.php.

◆ isWithinFileMountBoundariesRespectsReadOnlyFileMounts()

TYPO3\CMS\Core\Tests\Functional\Resource\StorageRepositoryTest::isWithinFileMountBoundariesRespectsReadOnlyFileMounts ( string  $targetDirectory,
string  $fileMountFolder,
bool  $isFileMountReadOnly,
bool  $checkWriteAccess,
bool  $expectedResult 
)
Test:
‪@dataProvider isWithinFileMountBoundariesDataProvider

Definition at line 218 of file StorageRepositoryTest.php.

References TYPO3\CMS\Core\Core\Environment\getPublicPath().

◆ replaceFileFailsIfLocalFileDoesNotExist()

TYPO3\CMS\Core\Tests\Functional\Resource\StorageRepositoryTest::replaceFileFailsIfLocalFileDoesNotExist ( )

◆ searchFilesFindsFilesInFolder()

TYPO3\CMS\Core\Tests\Functional\Resource\StorageRepositoryTest::searchFilesFindsFilesInFolder ( string  $searchTerm,
?string  $searchFolder,
bool  $recursive,
array  $filters,
array  $expectedIdentifiers 
)

◆ searchFilesFindsFilesInFolderDataProvider()

static TYPO3\CMS\Core\Tests\Functional\Resource\StorageRepositoryTest::searchFilesFindsFilesInFolderDataProvider ( )
static

Definition at line 331 of file StorageRepositoryTest.php.

◆ tearDown()

TYPO3\CMS\Core\Tests\Functional\Resource\StorageRepositoryTest::tearDown ( )
protected