‪TYPO3CMS  11.5
TYPO3\CMS\Impexp\Tests\Functional\AbstractImportExportTestCase Class Reference
Inheritance diagram for TYPO3\CMS\Impexp\Tests\Functional\AbstractImportExportTestCase:
TYPO3\CMS\Impexp\Tests\Functional\Command\ExportCommandTest TYPO3\CMS\Impexp\Tests\Functional\Command\ImportCommandTest TYPO3\CMS\Impexp\Tests\Functional\Export\ExportControllerTest TYPO3\CMS\Impexp\Tests\Functional\Export\ExportPageTreeViewTest 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\Export\PagesAndTtContentWithRelationsAndSoftrefsTest TYPO3\CMS\Impexp\Tests\Functional\Export\PresetsTest TYPO3\CMS\Impexp\Tests\Functional\ExportTest TYPO3\CMS\Impexp\Tests\Functional\Import\ImagesWithStoragesTest 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 TYPO3\CMS\Impexp\Tests\Functional\ImportExportTest TYPO3\CMS\Impexp\Tests\Functional\ImportTest TYPO3\CMS\Impexp\Tests\Functional\Utility\ImportExportUtilityTest TYPO3\CMS\Impexp\Tests\FunctionalDeprecated\Command\ExportCommandTest TYPO3\CMS\Impexp\Tests\FunctionalDeprecated\Command\ImportCommandTest

Public Member Functions

 assertXmlStringEqualsXmlFileWithIgnoredSqliteTypeInteger (string $expectedFile, string $actualXml)
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 
 isCaseSensitiveFilesystem ()
 

Protected Attributes

 $coreExtensionsToLoad = array( 'impexp', 'form' )
 
array $testFilesToDelete = []
 

Detailed Description

Abstract used by ext:impexp functional tests

Definition at line 33 of file AbstractImportExportTestCase.php.

Member Function Documentation

◆ assertXmlStringEqualsXmlFileWithIgnoredSqliteTypeInteger()

TYPO3\CMS\Impexp\Tests\Functional\AbstractImportExportTestCase::assertXmlStringEqualsXmlFileWithIgnoredSqliteTypeInteger ( string  $expectedFile,
string  $actualXml 
)

Asserts that two XML documents are equal.

Todo:
‪: This is a hack to align 'expected' fixture files on sqlite: sqlite returns integer fields as string, so the exported xml miss the 'type="integer"' attribute. This change drops 'type="integer"' from the expectations if on sqlite. This needs to be changed in impexp, after that this helper method can vanish again. SQLite also now returns the correct type as of PHP 8.1, so the string mangling is no longer necessary.
Todo:
‪: Remove this workaround method after minimum php version requirement is set to >8.1.

Definition at line 105 of file AbstractImportExportTestCase.php.

Referenced by TYPO3\CMS\Impexp\Tests\Functional\Export\IrreTutorialRecordsTest\exportIrreRecords(), TYPO3\CMS\Impexp\Tests\Functional\Export\PagesAndTtContentTest\exportPagesAndRelatedTtContent(), TYPO3\CMS\Impexp\Tests\Functional\Export\PagesAndTtContentTest\exportPagesAndRelatedTtContentWithComplexConfiguration(), TYPO3\CMS\Impexp\Tests\Functional\Export\PagesAndTtContentWithRelationsAndSoftrefsTest\exportPagesAndRelatedTtContentWithFlexFormRelation(), TYPO3\CMS\Impexp\Tests\Functional\Export\PagesAndTtContentWithRelationsAndSoftrefsTest\exportPagesAndRelatedTtContentWithFlexFormSoftrefs(), TYPO3\CMS\Impexp\Tests\Functional\Export\PagesAndTtContentWithImagesTest\exportPagesAndRelatedTtContentWithImages(), TYPO3\CMS\Impexp\Tests\Functional\Export\PagesAndTtContentWithImagesTest\exportPagesAndRelatedTtContentWithImagesButNotIncluded(), TYPO3\CMS\Impexp\Tests\Functional\Export\PagesAndTtContentWithImagesTest\exportPagesAndRelatedTtContentWithImagesButNotIncludedAndInvalidHash(), TYPO3\CMS\Impexp\Tests\Functional\Export\PagesAndTtContentWithImagesTest\exportPagesAndRelatedTtContentWithImagesFromCorruptSysFileRecord(), TYPO3\CMS\Impexp\Tests\Functional\Export\PagesAndTtContentWithRelationsAndSoftrefsTest\exportPagesAndRelatedTtContentWithSoftrefs(), and TYPO3\CMS\Impexp\Tests\Functional\ImportExportTest\importExportPingPongSucceeds().

◆ isCaseSensitiveFilesystem()

◆ setUp()

◆ tearDown()

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

Tear down for remove of the test files

Definition at line 64 of file AbstractImportExportTestCase.php.

Member Data Documentation

◆ $coreExtensionsToLoad

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

Definition at line 35 of file AbstractImportExportTestCase.php.

◆ $testFilesToDelete

array TYPO3\CMS\Impexp\Tests\Functional\AbstractImportExportTestCase::$testFilesToDelete = []
protected

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

Definition at line 41 of file AbstractImportExportTestCase.php.