‪TYPO3CMS  10.4
TYPO3\CMS\Impexp\Tests\Functional\AbstractImportExportTestCase Class Reference
Inheritance diagram for TYPO3\CMS\Impexp\Tests\Functional\AbstractImportExportTestCase:
TYPO3\CMS\Impexp\Tests\Functional\Export\ExportControllerTest TYPO3\CMS\Impexp\Tests\Functional\Export\IrreTutorialRecordsTest TYPO3\CMS\Impexp\Tests\Functional\Export\PagesAndTtContentTest TYPO3\CMS\Impexp\Tests\Functional\Export\PagesAndTtContentWithImagesTest TYPO3\CMS\Impexp\Tests\Functional\Import\IrreTutorialRecordsTest TYPO3\CMS\Impexp\Tests\Functional\Import\PagesAndTtContentTest TYPO3\CMS\Impexp\Tests\Functional\Import\PagesAndTtContentWithImagesInEmptyDatabaseTest TYPO3\CMS\Impexp\Tests\Functional\Import\PagesAndTtContentWithImagesInFilledDatabaseTest TYPO3\CMS\Impexp\Tests\Functional\Import\PagesAndTtContentWithRteImagesAndFileLinkTest

Protected Member Functions

 setUp ()
 
 tearDown ()
 
 setPageTree (Export $export, $pidToStart, $depth=1)
 
 addRecordsForPid (Export $export, $pid, array $tables)
 
array forceStringsOnRowValues (array $row)
 
bool isCaseSensitiveFilesystem ()
 

Protected Attributes

array $coreExtensionsToLoad
 
array $testFilesToDelete = array( )
 

Detailed Description

Abstract used by ext:impexp functional tests

Definition at line 30 of file AbstractImportExportTestCase.php.

Member Function Documentation

◆ addRecordsForPid()

TYPO3\CMS\Impexp\Tests\Functional\AbstractImportExportTestCase::addRecordsForPid ( Export  $export,
  $pid,
array  $tables 
)
protected

Adds records to the export object for a specific page id.

Used in export tests.

Parameters
$exportExport instance
int$pid‪Page id for which to select records to add
array$tables‪Array of table names to select from

Definition at line 111 of file AbstractImportExportTestCase.php.

References $GLOBALS, TYPO3\CMS\Impexp\Export\export_addRecord(), TYPO3\CMS\Impexp\Tests\Functional\AbstractImportExportTestCase\forceStringsOnRowValues(), and TYPO3\CMS\Core\Database\Query\QueryHelper\parseOrderBy().

Referenced by TYPO3\CMS\Impexp\Tests\Functional\Export\IrreTutorialRecordsTest\exportIrreRecords().

◆ forceStringsOnRowValues()

array TYPO3\CMS\Impexp\Tests\Functional\AbstractImportExportTestCase::forceStringsOnRowValues ( array  $row)
protected

◆ isCaseSensitiveFilesystem()

◆ setPageTree()

TYPO3\CMS\Impexp\Tests\Functional\AbstractImportExportTestCase::setPageTree ( Export  $export,
  $pidToStart,
  $depth = 1 
)
protected

Builds a flat array containing the page tree with the PageTreeView based on given start pid and depth and set it in the Export object.

Used in export tests

Parameters
$exportExport instance
int$pidToStart
int$depth

Definition at line 81 of file AbstractImportExportTestCase.php.

References $GLOBALS, and TYPO3\CMS\Impexp\Export\setPageTree().

Referenced by TYPO3\CMS\Impexp\Tests\Functional\Export\PagesAndTtContentWithImagesTest\compileExportPagesAndRelatedTtContentWithImages(), TYPO3\CMS\Impexp\Tests\Functional\Export\IrreTutorialRecordsTest\exportIrreRecords(), and TYPO3\CMS\Impexp\Tests\Functional\Export\PagesAndTtContentTest\exportPagesAndRelatedTtContent().

◆ setUp()

TYPO3\CMS\Impexp\Tests\Functional\AbstractImportExportTestCase::setUp ( )
protected

◆ tearDown()

TYPO3\CMS\Impexp\Tests\Functional\AbstractImportExportTestCase::tearDown ( )
protected

Tear down for remove of the test files

Definition at line 61 of file AbstractImportExportTestCase.php.

Member Data Documentation

◆ $coreExtensionsToLoad

array TYPO3\CMS\Impexp\Tests\Functional\AbstractImportExportTestCase::$coreExtensionsToLoad
protected
Initial value:
= array(
'impexp',
)

Definition at line 34 of file AbstractImportExportTestCase.php.

◆ $testFilesToDelete

array TYPO3\CMS\Impexp\Tests\Functional\AbstractImportExportTestCase::$testFilesToDelete = array( )
protected

Absolute path to files that must be removed after a test - handled in tearDown

Definition at line 43 of file AbstractImportExportTestCase.php.