‪TYPO3CMS  ‪main
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)
 
 getOrGenerateExportFileNameWithFileExtensionConsidersPidAndLevels ()
 
 getOrGenerateExportFileNameWithFileExtensionConsidersRecords ()
 
 getOrGenerateExportFileNameWithFileExtensionConsidersLists ()
 
 setExportFileTypeSucceedsWithSupportedFileType (string $fileType)
 
 setExportFileTypeFailsWithUnsupportedFileType ()
 
 fixFileIdInRelationsProcessesOriginalRelationsArray ()
 
 removeRedundantSoftRefsInRelationsProcessesOriginalRelationsArray (array $relations, array $expected)
 
 exportAddFilesFromRelationsSucceeds (array $dat, array $expected)
 

Static Public Member Functions

static setExportFileNameSanitizesFileNameProvider ()
 
static setExportFileTypeSucceedsWithSupportedFileTypeProvider ()
 
static removeRedundantSoftRefsInRelationsProcessesOriginalRelationsArrayDataProvider ()
 
static exportAddFilesFromRelationsSucceedsDataProvider ()
 

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 351 of file ExportTest.php.

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

◆ exportAddFilesFromRelationsSucceedsDataProvider()

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

Definition at line 223 of file ExportTest.php.

◆ fixFileIdInRelationsProcessesOriginalRelationsArray()

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

◆ getOrGenerateExportFileNameWithFileExtensionConsidersLists()

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

Definition at line 86 of file ExportTest.php.

◆ getOrGenerateExportFileNameWithFileExtensionConsidersPidAndLevels()

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

Definition at line 65 of file ExportTest.php.

◆ getOrGenerateExportFileNameWithFileExtensionConsidersRecords()

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

Definition at line 76 of file ExportTest.php.

◆ removeRedundantSoftRefsInRelationsProcessesOriginalRelationsArray()

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

Definition at line 195 of file ExportTest.php.

◆ removeRedundantSoftRefsInRelationsProcessesOriginalRelationsArrayDataProvider()

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

Definition at line 150 of file ExportTest.php.

◆ setExportFileNameSanitizesFileName()

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

Definition at line 44 of file ExportTest.php.

◆ setExportFileNameSanitizesFileNameProvider()

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

Definition at line 52 of file ExportTest.php.

◆ setExportFileTypeFailsWithUnsupportedFileType()

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

Definition at line 115 of file ExportTest.php.

◆ setExportFileTypeSucceedsWithSupportedFileType()

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

Definition at line 106 of file ExportTest.php.

◆ setExportFileTypeSucceedsWithSupportedFileTypeProvider()

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

◆ setUp()

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

Definition at line 33 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

Definition at line 29 of file ExportTest.php.