‪TYPO3CMS  11.5
TYPO3\CMS\Impexp\Tests\Unit\ExportTest Class Reference
Inheritance diagram for TYPO3\CMS\Impexp\Tests\Unit\ExportTest:

Public Member Functions

 setExportFileNameSanitizesFileName (string $fileName, string $expected)
 
 setExportFileNameSanitizesFileNameProvider ()
 
 getOrGenerateExportFileNameWithFileExtensionConsidersPidAndLevels ()
 
 getOrGenerateExportFileNameWithFileExtensionConsidersRecords ()
 
 getOrGenerateExportFileNameWithFileExtensionConsidersLists ()
 
 setExportFileTypeSucceedsWithSupportedFileTypeProvider ()
 
 setExportFileTypeSucceedsWithSupportedFileType (string $fileType)
 
 setExportFileTypeFailsWithUnsupportedFileType ()
 
 fixFileIdInRelationsProcessesOriginalRelationsArray ()
 
 removeRedundantSoftRefsInRelationsProcessesOriginalRelationsArrayDataProvider ()
 
 removeRedundantSoftRefsInRelationsProcessesOriginalRelationsArray (array $relations, array $expected)
 
 exportAddFilesFromRelationsSucceedsDataProvider ()
 
 exportAddFilesFromRelationsSucceeds (array $dat, array $expected)
 

Protected Member Functions

 setUp ()
 

Protected Attributes

bool $resetSingletonInstances = true
 
Export MockObject AccessibleObjectInterface $exportMock
 

Detailed Description

Definition at line 27 of file ExportTest.php.

Member Function Documentation

◆ exportAddFilesFromRelationsSucceeds()

TYPO3\CMS\Impexp\Tests\Unit\ExportTest::exportAddFilesFromRelationsSucceeds ( array  $dat,
array  $expected 
)

Temporary test until there is a complex functional test which tests exportAddFilesFromRelations() implicitly.

Test:
‪@dataProvider exportAddFilesFromRelationsSucceedsDataProvider

Definition at line 358 of file ExportTest.php.

References TYPO3\CMS\Impexp\Tests\Unit\ExportTest\$exportMock.

◆ exportAddFilesFromRelationsSucceedsDataProvider()

TYPO3\CMS\Impexp\Tests\Unit\ExportTest::exportAddFilesFromRelationsSucceedsDataProvider ( )

Definition at line 230 of file ExportTest.php.

◆ fixFileIdInRelationsProcessesOriginalRelationsArray()

TYPO3\CMS\Impexp\Tests\Unit\ExportTest::fixFileIdInRelationsProcessesOriginalRelationsArray ( )

◆ getOrGenerateExportFileNameWithFileExtensionConsidersLists()

TYPO3\CMS\Impexp\Tests\Unit\ExportTest::getOrGenerateExportFileNameWithFileExtensionConsidersLists ( )
Test:

Definition at line 92 of file ExportTest.php.

◆ getOrGenerateExportFileNameWithFileExtensionConsidersPidAndLevels()

TYPO3\CMS\Impexp\Tests\Unit\ExportTest::getOrGenerateExportFileNameWithFileExtensionConsidersPidAndLevels ( )
Test:

Definition at line 71 of file ExportTest.php.

◆ getOrGenerateExportFileNameWithFileExtensionConsidersRecords()

TYPO3\CMS\Impexp\Tests\Unit\ExportTest::getOrGenerateExportFileNameWithFileExtensionConsidersRecords ( )
Test:

Definition at line 82 of file ExportTest.php.

◆ removeRedundantSoftRefsInRelationsProcessesOriginalRelationsArray()

TYPO3\CMS\Impexp\Tests\Unit\ExportTest::removeRedundantSoftRefsInRelationsProcessesOriginalRelationsArray ( array  $relations,
array  $expected 
)
Test:
‪@dataProvider removeRedundantSoftRefsInRelationsProcessesOriginalRelationsArrayDataProvider

Definition at line 202 of file ExportTest.php.

◆ removeRedundantSoftRefsInRelationsProcessesOriginalRelationsArrayDataProvider()

TYPO3\CMS\Impexp\Tests\Unit\ExportTest::removeRedundantSoftRefsInRelationsProcessesOriginalRelationsArrayDataProvider ( )

Definition at line 157 of file ExportTest.php.

◆ setExportFileNameSanitizesFileName()

TYPO3\CMS\Impexp\Tests\Unit\ExportTest::setExportFileNameSanitizesFileName ( string  $fileName,
string  $expected 
)
Test:
‪@dataProvider setExportFileNameSanitizesFileNameProvider
Parameters
string$fileName
string$expected

Definition at line 50 of file ExportTest.php.

◆ setExportFileNameSanitizesFileNameProvider()

TYPO3\CMS\Impexp\Tests\Unit\ExportTest::setExportFileNameSanitizesFileNameProvider ( )

Definition at line 58 of file ExportTest.php.

◆ setExportFileTypeFailsWithUnsupportedFileType()

TYPO3\CMS\Impexp\Tests\Unit\ExportTest::setExportFileTypeFailsWithUnsupportedFileType ( )
Test:

Definition at line 122 of file ExportTest.php.

◆ setExportFileTypeSucceedsWithSupportedFileType()

TYPO3\CMS\Impexp\Tests\Unit\ExportTest::setExportFileTypeSucceedsWithSupportedFileType ( string  $fileType)
Test:
‪@dataProvider setExportFileTypeSucceedsWithSupportedFileTypeProvider
Parameters
string$fileType

Definition at line 113 of file ExportTest.php.

◆ setExportFileTypeSucceedsWithSupportedFileTypeProvider()

TYPO3\CMS\Impexp\Tests\Unit\ExportTest::setExportFileTypeSucceedsWithSupportedFileTypeProvider ( )

◆ setUp()

TYPO3\CMS\Impexp\Tests\Unit\ExportTest::setUp ( )
protected

Definition at line 37 of file ExportTest.php.

Member Data Documentation

◆ $exportMock

Export MockObject AccessibleObjectInterface TYPO3\CMS\Impexp\Tests\Unit\ExportTest::$exportMock
protected

◆ $resetSingletonInstances

bool TYPO3\CMS\Impexp\Tests\Unit\ExportTest::$resetSingletonInstances = true
protected

Reset singletons created by subject

Definition at line 31 of file ExportTest.php.