‪TYPO3CMS  ‪main
TYPO3\CMS\Impexp\Tests\Functional\Import\PagesAndTtContentWithImagesInFilledDatabaseTest Class Reference
Inheritance diagram for TYPO3\CMS\Impexp\Tests\Functional\Import\PagesAndTtContentWithImagesInFilledDatabaseTest:
TYPO3\CMS\Impexp\Tests\Functional\AbstractImportExportTestCase

Public Member Functions

 importPagesAndRelatedTtContentWithDifferentImageToExistingData ()
 
 updatePagesAndRelatedTtContentWithDifferentImageToExistingData ()
 
 updatePagesAndRelatedTtContentWithDifferentImageToExistingDataAndPagesAsNew ()
 
 updatePagesAndRelatedTtContentKeepsRelationsBetweenImportedPagesAndRecords ()
 
 importPagesAndRelatedTtContentWithSameImageToExistingData ()
 
 importPagesAndTtContentWithRemappingNewSysFileEntries ()
 
 importImageIntoSystemAndMatchingThePathOfTheSecondStorage ()
 
 importPagesAndRelatedTtContentKeepsRelationBetweenImportedFlexFormsAndPages ()
 
 importPagesAndRelatedTtContentKeepsRelationBetweenImportedFlexFormSoftReferenceAndRelatedRecord ()
 
 importPagesAndRelatedTtContentCanKeepOriginalFlexFormSoftReference ()
 
 importPagesAndRelatedTtContentCanEditFlexFormSoftReference ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Impexp\Tests\Functional\AbstractImportExportTestCase
 assertXmlStringEqualsXmlFileWithIgnoredSqliteTypeInteger (string $expectedFile, string $actualXml)
 

Protected Member Functions

 getFlexFormSoftReferenceDataStructure ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Impexp\Tests\Functional\AbstractImportExportTestCase
 setUp ()
 
 tearDown ()
 
 isCaseSensitiveFilesystem ()
 

Protected Attributes

array $additionalFoldersToCreate
 
array $pathsToProvideInTestInstance
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Impexp\Tests\Functional\AbstractImportExportTestCase
array $coreExtensionsToLoad = ['impexp', 'form']
 
array $testFilesToDelete = []
 

Detailed Description

Member Function Documentation

◆ getFlexFormSoftReferenceDataStructure()

◆ importImageIntoSystemAndMatchingThePathOfTheSecondStorage()

TYPO3\CMS\Impexp\Tests\Functional\Import\PagesAndTtContentWithImagesInFilledDatabaseTest::importImageIntoSystemAndMatchingThePathOfTheSecondStorage ( )

◆ importPagesAndRelatedTtContentCanEditFlexFormSoftReference()

TYPO3\CMS\Impexp\Tests\Functional\Import\PagesAndTtContentWithImagesInFilledDatabaseTest::importPagesAndRelatedTtContentCanEditFlexFormSoftReference ( )

◆ importPagesAndRelatedTtContentCanKeepOriginalFlexFormSoftReference()

TYPO3\CMS\Impexp\Tests\Functional\Import\PagesAndTtContentWithImagesInFilledDatabaseTest::importPagesAndRelatedTtContentCanKeepOriginalFlexFormSoftReference ( )

◆ importPagesAndRelatedTtContentKeepsRelationBetweenImportedFlexFormsAndPages()

TYPO3\CMS\Impexp\Tests\Functional\Import\PagesAndTtContentWithImagesInFilledDatabaseTest::importPagesAndRelatedTtContentKeepsRelationBetweenImportedFlexFormsAndPages ( )

Definition at line 236 of file PagesAndTtContentWithImagesInFilledDatabaseTest.php.

References $GLOBALS.

◆ importPagesAndRelatedTtContentKeepsRelationBetweenImportedFlexFormSoftReferenceAndRelatedRecord()

TYPO3\CMS\Impexp\Tests\Functional\Import\PagesAndTtContentWithImagesInFilledDatabaseTest::importPagesAndRelatedTtContentKeepsRelationBetweenImportedFlexFormSoftReferenceAndRelatedRecord ( )

◆ importPagesAndRelatedTtContentWithDifferentImageToExistingData()

TYPO3\CMS\Impexp\Tests\Functional\Import\PagesAndTtContentWithImagesInFilledDatabaseTest::importPagesAndRelatedTtContentWithDifferentImageToExistingData ( )

◆ importPagesAndRelatedTtContentWithSameImageToExistingData()

TYPO3\CMS\Impexp\Tests\Functional\Import\PagesAndTtContentWithImagesInFilledDatabaseTest::importPagesAndRelatedTtContentWithSameImageToExistingData ( )

◆ importPagesAndTtContentWithRemappingNewSysFileEntries()

TYPO3\CMS\Impexp\Tests\Functional\Import\PagesAndTtContentWithImagesInFilledDatabaseTest::importPagesAndTtContentWithRemappingNewSysFileEntries ( )

This test checks multiple remapping does not occur - issue #67188 Scenario:

  • ‪Have a local sys_file:1 entry to some image
  • ‪Have an import file with 3 tt_content, first element pointing to sys_file:1 image "used-1.jpg" (different from locally existing one), and the other two pointing to sys_file:2 "used-2.jpg" (also not existing locally) Upon import, the following is expected:
  • ‪sys_file:1 from import file becomes sys_file:2 locally
  • ‪sys_file:2 from import file becomes sys_file:3 locally
  • ‪content element:1 should reference sys_file:2
  • ‪content element:2 & 3 should reference sys_file:3 The issue from #67188 is that tt_content:1 was first mapped to sys_file:2 and when tt_content:2 and tt_content:3 were processed, tt_content:1 image reference was mapped a second time to the not correct relation sys_file:3, ending up in mixed sys_file_reference entries. This test verifies first content element still points to the image used-1.jpg while the other two point to point to image used-2.jpg Note the internal handler mixes up insert orders resulting in former tt_content:1 ending up as tt_content:3 and 2/3 ending up as 2/1 uid-wise ... making this issue even harder to grasp.

Definition at line 201 of file PagesAndTtContentWithImagesInFilledDatabaseTest.php.

References TYPO3\CMS\Core\Core\Environment\getPublicPath().

◆ updatePagesAndRelatedTtContentKeepsRelationsBetweenImportedPagesAndRecords()

TYPO3\CMS\Impexp\Tests\Functional\Import\PagesAndTtContentWithImagesInFilledDatabaseTest::updatePagesAndRelatedTtContentKeepsRelationsBetweenImportedPagesAndRecords ( )

◆ updatePagesAndRelatedTtContentWithDifferentImageToExistingData()

TYPO3\CMS\Impexp\Tests\Functional\Import\PagesAndTtContentWithImagesInFilledDatabaseTest::updatePagesAndRelatedTtContentWithDifferentImageToExistingData ( )

◆ updatePagesAndRelatedTtContentWithDifferentImageToExistingDataAndPagesAsNew()

TYPO3\CMS\Impexp\Tests\Functional\Import\PagesAndTtContentWithImagesInFilledDatabaseTest::updatePagesAndRelatedTtContentWithDifferentImageToExistingDataAndPagesAsNew ( )

Member Data Documentation

◆ $additionalFoldersToCreate

array TYPO3\CMS\Impexp\Tests\Functional\Import\PagesAndTtContentWithImagesInFilledDatabaseTest::$additionalFoldersToCreate
protected
Initial value:
= [
'/fileadmin/user_upload',
]

Definition at line 28 of file PagesAndTtContentWithImagesInFilledDatabaseTest.php.

◆ $pathsToProvideInTestInstance

array TYPO3\CMS\Impexp\Tests\Functional\Import\PagesAndTtContentWithImagesInFilledDatabaseTest::$pathsToProvideInTestInstance
protected
Initial value:
= [
'typo3/sysext/impexp/Tests/Functional/Fixtures/Folders/fileadmin/user_upload/typo3_image2.jpg' => 'fileadmin/user_upload/typo3_image2.jpg',
]

Definition at line 32 of file PagesAndTtContentWithImagesInFilledDatabaseTest.php.