‪TYPO3CMS  9.5
TYPO3\CMS\Form\Tests\Unit\Mvc\Persistence\FormPersistenceManagerTest Class Reference
Inheritance diagram for TYPO3\CMS\Form\Tests\Unit\Mvc\Persistence\FormPersistenceManagerTest:

Public Member Functions

 loadThrowsExceptionIfPersistenceIdentifierHasNoYamlExtension ()
 
 loadThrowsExceptionIfPersistenceIdentifierIsAExtensionLocationWhichIsNotAllowed ()
 
 saveThrowsExceptionIfPersistenceIdentifierHasNoYamlExtension ()
 
 saveThrowsExceptionIfPersistenceIdentifierIsAExtensionLocationAndSaveToExtensionLocationIsNotAllowed ()
 
 saveThrowsExceptionIfPersistenceIdentifierIsAExtensionLocationWhichIsNotAllowed ()
 
 deleteThrowsExceptionIfPersistenceIdentifierHasNoYamlExtension ()
 
 deleteThrowsExceptionIfPersistenceIdentifierFileDoesNotExists ()
 
 deleteThrowsExceptionIfPersistenceIdentifierIsExtensionLocationAndDeleteFromExtensionLocationsIsNotAllowed ()
 
 deleteThrowsExceptionIfPersistenceIdentifierIsExtensionLocationWhichIsNotAllowed ()
 
 deleteThrowsExceptionIfPersistenceIdentifierIsStorageLocationAndDeleteFromStorageIsNotAllowed ()
 
 existsReturnsTrueIfPersistenceIdentifierIsExtensionLocationAndFileExistsAndFileHasYamlExtension ()
 
 existsReturnsFalseIfPersistenceIdentifierIsExtensionLocationAndFileExistsAndFileHasNoYamlExtension ()
 
 existsReturnsFalseIfPersistenceIdentifierIsExtensionLocationAndFileExistsAndExtensionLocationIsNotAllowed ()
 
 existsReturnsFalseIfPersistenceIdentifierIsExtensionLocationAndFileNotExistsAndFileHasYamlExtension ()
 
 existsReturnsTrueIfPersistenceIdentifierIsStorageLocationAndFileExistsAndFileHasYamlExtension ()
 
 existsReturnsFalseIfPersistenceIdentifierIsStorageLocationAndFileExistsAndFileNoYamlExtension ()
 
 existsReturnsFalseIfPersistenceIdentifierIsStorageLocationAndFileNotExistsAndFileHasYamlExtension ()
 
 getUniquePersistenceIdentifierAppendNumberIfPersistenceIdentifierExists ()
 
 getUniquePersistenceIdentifierAppendTimestampIfPersistenceIdentifierExists ()
 
 getUniqueIdentifierThrowsExceptionIfIdentifierExists ()
 
 getUniqueIdentifierAppendTimestampIfIdentifierExists ()
 
 checkForDuplicateIdentifierReturnsTrueIfIdentifierIsUsed ()
 
 checkForDuplicateIdentifierReturnsFalseIfIdentifierIsUsed ()
 
 retrieveFileByPersistenceIdentifierThrowsExceptionIfReadFromStorageIsNotAllowed ()
 
 getOrCreateFileThrowsExceptionIfFolderNotExistsInStorage ()
 
 getOrCreateFileThrowsExceptionIfWriteToStorageIsNotAllowed ()
 
 getStorageByUidThrowsExceptionIfStorageNotExists ()
 
 getStorageByUidThrowsExceptionIfStorageIsNotBrowsable ()
 
 isAllowedPersistencePathReturnsPropperValuesDataProvider ()
 
 isAllowedPersistencePathReturnsPropperValues (string $persistencePath, array $allowedExtensionPaths, array $allowedFileMounts, $expected)
 

Detailed Description

Test case

Definition at line 32 of file FormPersistenceManagerTest.php.

Member Function Documentation

◆ checkForDuplicateIdentifierReturnsFalseIfIdentifierIsUsed()

TYPO3\CMS\Form\Tests\Unit\Mvc\Persistence\FormPersistenceManagerTest::checkForDuplicateIdentifierReturnsFalseIfIdentifierIsUsed ( )
Test:

Definition at line 602 of file FormPersistenceManagerTest.php.

◆ checkForDuplicateIdentifierReturnsTrueIfIdentifierIsUsed()

TYPO3\CMS\Form\Tests\Unit\Mvc\Persistence\FormPersistenceManagerTest::checkForDuplicateIdentifierReturnsTrueIfIdentifierIsUsed ( )
Test:

Definition at line 580 of file FormPersistenceManagerTest.php.

◆ deleteThrowsExceptionIfPersistenceIdentifierFileDoesNotExists()

TYPO3\CMS\Form\Tests\Unit\Mvc\Persistence\FormPersistenceManagerTest::deleteThrowsExceptionIfPersistenceIdentifierFileDoesNotExists ( )
Test:

Definition at line 188 of file FormPersistenceManagerTest.php.

◆ deleteThrowsExceptionIfPersistenceIdentifierHasNoYamlExtension()

TYPO3\CMS\Form\Tests\Unit\Mvc\Persistence\FormPersistenceManagerTest::deleteThrowsExceptionIfPersistenceIdentifierHasNoYamlExtension ( )
Test:

Definition at line 172 of file FormPersistenceManagerTest.php.

◆ deleteThrowsExceptionIfPersistenceIdentifierIsExtensionLocationAndDeleteFromExtensionLocationsIsNotAllowed()

TYPO3\CMS\Form\Tests\Unit\Mvc\Persistence\FormPersistenceManagerTest::deleteThrowsExceptionIfPersistenceIdentifierIsExtensionLocationAndDeleteFromExtensionLocationsIsNotAllowed ( )
Test:

Definition at line 209 of file FormPersistenceManagerTest.php.

◆ deleteThrowsExceptionIfPersistenceIdentifierIsExtensionLocationWhichIsNotAllowed()

TYPO3\CMS\Form\Tests\Unit\Mvc\Persistence\FormPersistenceManagerTest::deleteThrowsExceptionIfPersistenceIdentifierIsExtensionLocationWhichIsNotAllowed ( )
Test:

Definition at line 236 of file FormPersistenceManagerTest.php.

◆ deleteThrowsExceptionIfPersistenceIdentifierIsStorageLocationAndDeleteFromStorageIsNotAllowed()

TYPO3\CMS\Form\Tests\Unit\Mvc\Persistence\FormPersistenceManagerTest::deleteThrowsExceptionIfPersistenceIdentifierIsStorageLocationAndDeleteFromStorageIsNotAllowed ( )
Test:

Definition at line 276 of file FormPersistenceManagerTest.php.

◆ existsReturnsFalseIfPersistenceIdentifierIsExtensionLocationAndFileExistsAndExtensionLocationIsNotAllowed()

TYPO3\CMS\Form\Tests\Unit\Mvc\Persistence\FormPersistenceManagerTest::existsReturnsFalseIfPersistenceIdentifierIsExtensionLocationAndFileExistsAndExtensionLocationIsNotAllowed ( )
Test:

Definition at line 364 of file FormPersistenceManagerTest.php.

◆ existsReturnsFalseIfPersistenceIdentifierIsExtensionLocationAndFileExistsAndFileHasNoYamlExtension()

TYPO3\CMS\Form\Tests\Unit\Mvc\Persistence\FormPersistenceManagerTest::existsReturnsFalseIfPersistenceIdentifierIsExtensionLocationAndFileExistsAndFileHasNoYamlExtension ( )
Test:

Definition at line 351 of file FormPersistenceManagerTest.php.

◆ existsReturnsFalseIfPersistenceIdentifierIsExtensionLocationAndFileNotExistsAndFileHasYamlExtension()

TYPO3\CMS\Form\Tests\Unit\Mvc\Persistence\FormPersistenceManagerTest::existsReturnsFalseIfPersistenceIdentifierIsExtensionLocationAndFileNotExistsAndFileHasYamlExtension ( )
Test:

Definition at line 383 of file FormPersistenceManagerTest.php.

◆ existsReturnsFalseIfPersistenceIdentifierIsStorageLocationAndFileExistsAndFileNoYamlExtension()

TYPO3\CMS\Form\Tests\Unit\Mvc\Persistence\FormPersistenceManagerTest::existsReturnsFalseIfPersistenceIdentifierIsStorageLocationAndFileExistsAndFileNoYamlExtension ( )
Test:

Definition at line 422 of file FormPersistenceManagerTest.php.

◆ existsReturnsFalseIfPersistenceIdentifierIsStorageLocationAndFileNotExistsAndFileHasYamlExtension()

TYPO3\CMS\Form\Tests\Unit\Mvc\Persistence\FormPersistenceManagerTest::existsReturnsFalseIfPersistenceIdentifierIsStorageLocationAndFileNotExistsAndFileHasYamlExtension ( )
Test:

Definition at line 448 of file FormPersistenceManagerTest.php.

◆ existsReturnsTrueIfPersistenceIdentifierIsExtensionLocationAndFileExistsAndFileHasYamlExtension()

TYPO3\CMS\Form\Tests\Unit\Mvc\Persistence\FormPersistenceManagerTest::existsReturnsTrueIfPersistenceIdentifierIsExtensionLocationAndFileExistsAndFileHasYamlExtension ( )
Test:

Definition at line 318 of file FormPersistenceManagerTest.php.

◆ existsReturnsTrueIfPersistenceIdentifierIsStorageLocationAndFileExistsAndFileHasYamlExtension()

TYPO3\CMS\Form\Tests\Unit\Mvc\Persistence\FormPersistenceManagerTest::existsReturnsTrueIfPersistenceIdentifierIsStorageLocationAndFileExistsAndFileHasYamlExtension ( )
Test:

Definition at line 396 of file FormPersistenceManagerTest.php.

◆ getOrCreateFileThrowsExceptionIfFolderNotExistsInStorage()

TYPO3\CMS\Form\Tests\Unit\Mvc\Persistence\FormPersistenceManagerTest::getOrCreateFileThrowsExceptionIfFolderNotExistsInStorage ( )
Test:

Definition at line 662 of file FormPersistenceManagerTest.php.

◆ getOrCreateFileThrowsExceptionIfWriteToStorageIsNotAllowed()

TYPO3\CMS\Form\Tests\Unit\Mvc\Persistence\FormPersistenceManagerTest::getOrCreateFileThrowsExceptionIfWriteToStorageIsNotAllowed ( )
Test:

Definition at line 692 of file FormPersistenceManagerTest.php.

◆ getStorageByUidThrowsExceptionIfStorageIsNotBrowsable()

TYPO3\CMS\Form\Tests\Unit\Mvc\Persistence\FormPersistenceManagerTest::getStorageByUidThrowsExceptionIfStorageIsNotBrowsable ( )
Test:

Definition at line 758 of file FormPersistenceManagerTest.php.

◆ getStorageByUidThrowsExceptionIfStorageNotExists()

TYPO3\CMS\Form\Tests\Unit\Mvc\Persistence\FormPersistenceManagerTest::getStorageByUidThrowsExceptionIfStorageNotExists ( )
Test:

Definition at line 733 of file FormPersistenceManagerTest.php.

◆ getUniqueIdentifierAppendTimestampIfIdentifierExists()

TYPO3\CMS\Form\Tests\Unit\Mvc\Persistence\FormPersistenceManagerTest::getUniqueIdentifierAppendTimestampIfIdentifierExists ( )
Test:

Definition at line 552 of file FormPersistenceManagerTest.php.

◆ getUniqueIdentifierThrowsExceptionIfIdentifierExists()

TYPO3\CMS\Form\Tests\Unit\Mvc\Persistence\FormPersistenceManagerTest::getUniqueIdentifierThrowsExceptionIfIdentifierExists ( )
Test:

Definition at line 531 of file FormPersistenceManagerTest.php.

◆ getUniquePersistenceIdentifierAppendNumberIfPersistenceIdentifierExists()

TYPO3\CMS\Form\Tests\Unit\Mvc\Persistence\FormPersistenceManagerTest::getUniquePersistenceIdentifierAppendNumberIfPersistenceIdentifierExists ( )
Test:

Definition at line 474 of file FormPersistenceManagerTest.php.

◆ getUniquePersistenceIdentifierAppendTimestampIfPersistenceIdentifierExists()

TYPO3\CMS\Form\Tests\Unit\Mvc\Persistence\FormPersistenceManagerTest::getUniquePersistenceIdentifierAppendTimestampIfPersistenceIdentifierExists ( )
Test:

Definition at line 503 of file FormPersistenceManagerTest.php.

◆ isAllowedPersistencePathReturnsPropperValues()

TYPO3\CMS\Form\Tests\Unit\Mvc\Persistence\FormPersistenceManagerTest::isAllowedPersistencePathReturnsPropperValues ( string  $persistencePath,
array  $allowedExtensionPaths,
array  $allowedFileMounts,
  $expected 
)
Test:
‪@dataProvider isAllowedPersistencePathReturnsPropperValuesDataProvider

Definition at line 965 of file FormPersistenceManagerTest.php.

◆ isAllowedPersistencePathReturnsPropperValuesDataProvider()

TYPO3\CMS\Form\Tests\Unit\Mvc\Persistence\FormPersistenceManagerTest::isAllowedPersistencePathReturnsPropperValuesDataProvider ( )

Definition at line 789 of file FormPersistenceManagerTest.php.

◆ loadThrowsExceptionIfPersistenceIdentifierHasNoYamlExtension()

TYPO3\CMS\Form\Tests\Unit\Mvc\Persistence\FormPersistenceManagerTest::loadThrowsExceptionIfPersistenceIdentifierHasNoYamlExtension ( )
Test:

Definition at line 37 of file FormPersistenceManagerTest.php.

◆ loadThrowsExceptionIfPersistenceIdentifierIsAExtensionLocationWhichIsNotAllowed()

TYPO3\CMS\Form\Tests\Unit\Mvc\Persistence\FormPersistenceManagerTest::loadThrowsExceptionIfPersistenceIdentifierIsAExtensionLocationWhichIsNotAllowed ( )
Test:

Definition at line 65 of file FormPersistenceManagerTest.php.

◆ retrieveFileByPersistenceIdentifierThrowsExceptionIfReadFromStorageIsNotAllowed()

TYPO3\CMS\Form\Tests\Unit\Mvc\Persistence\FormPersistenceManagerTest::retrieveFileByPersistenceIdentifierThrowsExceptionIfReadFromStorageIsNotAllowed ( )
Test:

Definition at line 624 of file FormPersistenceManagerTest.php.

◆ saveThrowsExceptionIfPersistenceIdentifierHasNoYamlExtension()

TYPO3\CMS\Form\Tests\Unit\Mvc\Persistence\FormPersistenceManagerTest::saveThrowsExceptionIfPersistenceIdentifierHasNoYamlExtension ( )
Test:

Definition at line 99 of file FormPersistenceManagerTest.php.

◆ saveThrowsExceptionIfPersistenceIdentifierIsAExtensionLocationAndSaveToExtensionLocationIsNotAllowed()

TYPO3\CMS\Form\Tests\Unit\Mvc\Persistence\FormPersistenceManagerTest::saveThrowsExceptionIfPersistenceIdentifierIsAExtensionLocationAndSaveToExtensionLocationIsNotAllowed ( )
Test:

Definition at line 115 of file FormPersistenceManagerTest.php.

◆ saveThrowsExceptionIfPersistenceIdentifierIsAExtensionLocationWhichIsNotAllowed()

TYPO3\CMS\Form\Tests\Unit\Mvc\Persistence\FormPersistenceManagerTest::saveThrowsExceptionIfPersistenceIdentifierIsAExtensionLocationWhichIsNotAllowed ( )
Test:

Definition at line 137 of file FormPersistenceManagerTest.php.