[TASK] Refactor ext:impexp functional tests 81/52981/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Wed, 31 May 2017 15:18:15 +0000 (17:18 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Wed, 31 May 2017 19:30:58 +0000 (21:30 +0200)
The ext:impexp functional tests are rather hard to read and
follow. The patch untangles them to make them better maintainable:

* Combine the two different import / export abstract classes into 1 class
* Don't inherit from AbstractDataHandlerActionTestCase anymore
* Give single test cases better file names and do not hide them in sub dirs
* Move all fixtures to Fixtures/ dir
* Use less helper methods to import and test things
* File paths are more straight and with less helper magic

Change-Id: Iae36771b94045f99444f394129cbcf183168b584
Resolves: #81393
Releases: master, 8.7
Reviewed-on: https://review.typo3.org/52981
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
149 files changed:
typo3/sysext/impexp/Tests/Functional/AbstractImportExportTestCase.php [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Export/AbstractExportTestCase.php [deleted file]
typo3/sysext/impexp/Tests/Functional/Export/GroupFileAndFileReferenceItem/ExportTest.php [deleted file]
typo3/sysext/impexp/Tests/Functional/Export/GroupFileAndFileReferenceItemInFlexForm/ExportTest.php [deleted file]
typo3/sysext/impexp/Tests/Functional/Export/GroupFileAndFileReferenceItemInFlexFormTest.php [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Export/GroupFileAndFileReferenceItemTest.php [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Export/IrreTutorialRecords/ExportTest.php [deleted file]
typo3/sysext/impexp/Tests/Functional/Export/IrreTutorialRecordsTest.php [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Export/PagesAndTtContent/ExportTest.php [deleted file]
typo3/sysext/impexp/Tests/Functional/Export/PagesAndTtContent/Fixtures/Database/sys_file.xml [deleted file]
typo3/sysext/impexp/Tests/Functional/Export/PagesAndTtContentTest.php [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Export/PagesAndTtContentWithImages/ExportTest.php [deleted file]
typo3/sysext/impexp/Tests/Functional/Export/PagesAndTtContentWithImagesTest.php [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/Database/irre_tutorial.xml [deleted file]
typo3/sysext/impexp/Tests/Functional/Fixtures/Database/pages.xml [deleted file]
typo3/sysext/impexp/Tests/Functional/Fixtures/Database/sys_file.xml [deleted file]
typo3/sysext/impexp/Tests/Functional/Fixtures/Database/sys_file_corrupt.xml [deleted file]
typo3/sysext/impexp/Tests/Functional/Fixtures/Database/sys_file_metadata.xml [deleted file]
typo3/sysext/impexp/Tests/Functional/Fixtures/Database/sys_file_reference.xml [deleted file]
typo3/sysext/impexp/Tests/Functional/Fixtures/Database/sys_file_storage.xml [deleted file]
typo3/sysext/impexp/Tests/Functional/Fixtures/Database/sys_language.xml [deleted file]
typo3/sysext/impexp/Tests/Functional/Fixtures/Database/tt_content-with-image.xml [deleted file]
typo3/sysext/impexp/Tests/Functional/Fixtures/Database/tt_content-with-rte-image-n-file-link.xml [deleted file]
typo3/sysext/impexp/Tests/Functional/Fixtures/Database/tt_content.xml [deleted file]
typo3/sysext/impexp/Tests/Functional/Fixtures/Database/tx_impexpgroupfiles_item.xml [deleted file]
typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importGroupFileAndFileReferenceItem.csv [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importGroupFileAndFileReferenceItemInFlexForm.csv [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importGroupFileAndFileReferenceItemWithRootLevelAndPagesAllowed.csv [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importGroupFileAndFileReferenceItemWithRootLevelNotAllowed.csv [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importGroupFileAndFileReferenceItemWithRootLevelOnlyAllowed.csv [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importIrreRecords.csv [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importPagesAndRelatedTtContent.csv [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importPagesAndRelatedTtContentWithDifferentImageToExistingData.csv [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importPagesAndRelatedTtContentWithImageWithForcedUids.csv [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importPagesAndRelatedTtContentWithImagesButNotIncluded.csv [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importPagesAndRelatedTtContentWithImagesButWithoutStorageOnCaseInsensitiveFilesystems.csv [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importPagesAndRelatedTtContentWithImagesButWithoutStorageOnCaseSensitiveFilesystems.csv [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importPagesAndRelatedTtContentWithImagesOnCaseInsensitiveFilesystems.csv [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importPagesAndRelatedTtContentWithImagesOnCaseSensitiveFilesystems.csv [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importPagesAndRelatedTtContentWithImagesWithSpacesInPath.csv [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importPagesAndRelatedTtContentWithRteImagesAndFileLink.csv [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importPagesAndRelatedTtContentWithSameImageToExistingData.csv [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseImports/irre_tutorial.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseImports/pages.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseImports/sys_file-export-pages-and-tt-content.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseImports/sys_file.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseImports/sys_file_corrupt.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseImports/sys_file_metadata.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseImports/sys_file_reference.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseImports/sys_file_storage.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseImports/sys_language.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseImports/tt_content-with-image.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseImports/tt_content.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseImports/tx_impexpgroupfiles_item.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/FileAssertions/typo3_image2_01.jpg [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/MySQL/impexp-group-file-and-file_reference-item-but-images-not-included.xml [deleted file]
typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/MySQL/impexp-group-file-and-file_reference-item-but-images-not-included.xml.files/c3511df85d21bc578faf71c6a19eeb3ff44af370 [deleted file]
typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/MySQL/impexp-group-file-and-file_reference-item-but-images-not-included.xml.files/e1c5c4e1e34e19e2facb438752e06c3f [deleted file]
typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/MySQL/impexp-group-file-and-file_reference-item-in-ff.xml [deleted file]
typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/MySQL/impexp-group-file-and-file_reference-item.xml [deleted file]
typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/MySQL/irre-records.xml [deleted file]
typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/MySQL/pages-and-ttcontent-with-corrupt-image.xml [deleted file]
typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/MySQL/pages-and-ttcontent-with-image-but-not-included.xml [deleted file]
typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/MySQL/pages-and-ttcontent-with-image-but-not-included.xml.files/da9acdf1e105784a57bbffec9520969578287797 [deleted file]
typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/MySQL/pages-and-ttcontent-with-image.xml [deleted file]
typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/MySQL/pages-and-ttcontent-with-rte-image-n-file-link.xml [deleted file]
typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/MySQL/pages-and-ttcontent.xml [deleted file]
typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/PDO/impexp-group-file-and-file_reference-item-but-images-not-included.xml [deleted file]
typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/PDO/impexp-group-file-and-file_reference-item-but-images-not-included.xml.files/c3511df85d21bc578faf71c6a19eeb3ff44af370 [deleted file]
typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/PDO/impexp-group-file-and-file_reference-item-but-images-not-included.xml.files/e1c5c4e1e34e19e2facb438752e06c3f [deleted file]
typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/PDO/impexp-group-file-and-file_reference-item-in-ff.xml [deleted file]
typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/PDO/impexp-group-file-and-file_reference-item.xml [deleted file]
typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/PDO/irre-records.xml [deleted file]
typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/PDO/pages-and-ttcontent-with-corrupt-image.xml [deleted file]
typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/PDO/pages-and-ttcontent-with-image-but-not-included.xml [deleted file]
typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/PDO/pages-and-ttcontent-with-image-but-not-included.xml.files/da9acdf1e105784a57bbffec9520969578287797 [deleted file]
typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/PDO/pages-and-ttcontent-with-image.xml [deleted file]
typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/PDO/pages-and-ttcontent-with-rte-image-n-file-link.xml [deleted file]
typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/PDO/pages-and-ttcontent.xml [deleted file]
typo3/sysext/impexp/Tests/Functional/Fixtures/XmlExports/mysql/impexp-group-file-and-file_reference-item-but-images-not-included.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/XmlExports/mysql/impexp-group-file-and-file_reference-item-in-ff.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/XmlExports/mysql/impexp-group-file-and-file_reference-item.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/XmlExports/mysql/irre-records.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/XmlExports/mysql/pages-and-ttcontent-with-corrupt-image.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/XmlExports/mysql/pages-and-ttcontent-with-image-but-not-included.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/XmlExports/mysql/pages-and-ttcontent-with-image.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/XmlExports/mysql/pages-and-ttcontent.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/XmlExports/postgresql/impexp-group-file-and-file_reference-item-but-images-not-included.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/XmlExports/postgresql/impexp-group-file-and-file_reference-item-in-ff.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/XmlExports/postgresql/impexp-group-file-and-file_reference-item.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/XmlExports/postgresql/irre-records.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/XmlExports/postgresql/pages-and-ttcontent-with-corrupt-image.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/XmlExports/postgresql/pages-and-ttcontent-with-image-but-not-included.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/XmlExports/postgresql/pages-and-ttcontent-with-image.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/XmlExports/postgresql/pages-and-ttcontent.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/XmlImports/impexp-group-file-and-file_reference-item-but-images-not-included.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/XmlImports/impexp-group-file-and-file_reference-item-in-ff.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/XmlImports/impexp-group-file-and-file_reference-item-on-pid-zero.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/XmlImports/impexp-group-file-and-file_reference-item.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/XmlImports/irre-records.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/XmlImports/pages-and-ttcontent-with-existing-different-image.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/XmlImports/pages-and-ttcontent-with-existing-same-image.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/XmlImports/pages-and-ttcontent-with-image-but-not-included.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/XmlImports/pages-and-ttcontent-with-image-but-not-included.xml.files/da9acdf1e105784a57bbffec9520969578287797 [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/XmlImports/pages-and-ttcontent-with-image-with-forced-uids.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/XmlImports/pages-and-ttcontent-with-image-with-spaces-in-path.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/XmlImports/pages-and-ttcontent-with-image-without-storage.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/XmlImports/pages-and-ttcontent-with-image.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/XmlImports/pages-and-ttcontent-with-rte-image-n-file-link.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/XmlImports/pages-and-ttcontent.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Import/AbstractImportTestCase.php [deleted file]
typo3/sysext/impexp/Tests/Functional/Import/GroupFileAndFileReferenceItem/DataSet/Assertion/importGroupFileAndFileReferenceItem.csv [deleted file]
typo3/sysext/impexp/Tests/Functional/Import/GroupFileAndFileReferenceItem/DataSet/Assertion/importGroupFileAndFileReferenceItemWithRootLevelAndPagesAllowed.csv [deleted file]
typo3/sysext/impexp/Tests/Functional/Import/GroupFileAndFileReferenceItem/DataSet/Assertion/importGroupFileAndFileReferenceItemWithRootLevelNotAllowed.csv [deleted file]
typo3/sysext/impexp/Tests/Functional/Import/GroupFileAndFileReferenceItem/DataSet/Assertion/importGroupFileAndFileReferenceItemWithRootLevelOnlyAllowed.csv [deleted file]
typo3/sysext/impexp/Tests/Functional/Import/GroupFileAndFileReferenceItem/ImportExportXml/impexp-group-file-and-file_reference-item-on-pid-zero.xml [deleted file]
typo3/sysext/impexp/Tests/Functional/Import/GroupFileAndFileReferenceItem/ImportInEmptyDatabaseTest.php [deleted file]
typo3/sysext/impexp/Tests/Functional/Import/GroupFileAndFileReferenceItemInFlexForm/DataSet/Assertion/importGroupFileAndFileReferenceItemInFlexForm.csv [deleted file]
typo3/sysext/impexp/Tests/Functional/Import/GroupFileAndFileReferenceItemInFlexForm/ImportInEmptyDatabaseTest.php [deleted file]
typo3/sysext/impexp/Tests/Functional/Import/GroupFileAndFileReferenceItemInFlexFormTest.php [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Import/GroupFileAndFileReferenceItemTest.php [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Import/IrreTutorialRecords/DataSet/Assertion/importIrreRecords.csv [deleted file]
typo3/sysext/impexp/Tests/Functional/Import/IrreTutorialRecords/ImportInEmptyDatabaseTest.php [deleted file]
typo3/sysext/impexp/Tests/Functional/Import/IrreTutorialRecordsTest.php [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContent/DataSet/Assertion/importPagesAndRelatedTtContent.csv [deleted file]
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContent/ImportInEmptyDatabaseTest.php [deleted file]
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentTest.php [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImages/DataSet/Assertion/importPagesAndRelatedTtContentWithDifferentImageToExistingData.csv [deleted file]
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImages/DataSet/Assertion/importPagesAndRelatedTtContentWithImageWithForcedUids.csv [deleted file]
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImages/DataSet/Assertion/importPagesAndRelatedTtContentWithImagesButNotIncluded.csv [deleted file]
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImages/DataSet/Assertion/importPagesAndRelatedTtContentWithImagesButWithoutStorageOnCaseInsensitiveFilesystems.csv [deleted file]
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImages/DataSet/Assertion/importPagesAndRelatedTtContentWithImagesButWithoutStorageOnCaseSensitiveFilesystems.csv [deleted file]
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImages/DataSet/Assertion/importPagesAndRelatedTtContentWithImagesOnCaseInsensitiveFilesystems.csv [deleted file]
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImages/DataSet/Assertion/importPagesAndRelatedTtContentWithImagesOnCaseSensitiveFilesystems.csv [deleted file]
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImages/DataSet/Assertion/importPagesAndRelatedTtContentWithImagesWithSpacesInPath.csv [deleted file]
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImages/DataSet/Assertion/importPagesAndRelatedTtContentWithSameImageToExistingData.csv [deleted file]
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImages/Folders/Assertion/fileadmin/user_upload/typo3_image2_01.jpg [deleted file]
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImages/ImportExportXml/pages-and-ttcontent-with-existing-different-image.xml [deleted file]
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImages/ImportExportXml/pages-and-ttcontent-with-existing-same-image.xml [deleted file]
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImages/ImportExportXml/pages-and-ttcontent-with-image-with-forced-uids.xml [deleted file]
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImages/ImportExportXml/pages-and-ttcontent-with-image-with-spaces-in-path.xml [deleted file]
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImages/ImportExportXml/pages-and-ttcontent-with-image-without-storage.xml [deleted file]
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImages/ImportInEmptyDatabaseTest.php [deleted file]
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImages/ImportInFilledDatabaseTest.php [deleted file]
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImagesInEmptyDatabaseTest.php [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImagesInFilledDatabaseTest.php [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithRteImagesAndFileLink/DataSet/Assertion/importPagesAndRelatedTtContentWithRteImagesAndFileLink.csv [deleted file]
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithRteImagesAndFileLink/ImportInEmptyDatabaseTest.php [deleted file]
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithRteImagesAndFileLinkTest.php [new file with mode: 0644]

diff --git a/typo3/sysext/impexp/Tests/Functional/AbstractImportExportTestCase.php b/typo3/sysext/impexp/Tests/Functional/AbstractImportExportTestCase.php
new file mode 100644 (file)
index 0000000..3653ed5
--- /dev/null
@@ -0,0 +1,182 @@
+<?php
+namespace TYPO3\CMS\Impexp\Tests\Functional;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use TYPO3\CMS\Backend\Tree\View\PageTreeView;
+use TYPO3\CMS\Core\Core\Bootstrap;
+use TYPO3\CMS\Core\Database\ConnectionPool;
+use TYPO3\CMS\Core\Database\Query\QueryHelper;
+use TYPO3\CMS\Core\Database\Query\Restriction\DeletedRestriction;
+use TYPO3\CMS\Core\Utility\GeneralUtility;
+use TYPO3\CMS\Impexp\Export;
+use TYPO3\TestingFramework\Core\Functional\FunctionalTestCase;
+
+/**
+ * Abstract used by ext:impexp functional tests
+ */
+abstract class AbstractImportExportTestCase extends FunctionalTestCase
+{
+    /**
+     * @var array
+     */
+    protected $coreExtensionsToLoad = [
+        'impexp',
+    ];
+
+    /**
+     * Absolute path to files that must be removed
+     * after a test - handled in tearDown
+     *
+     * @var array
+     */
+    protected $testFilesToDelete = [];
+
+    /**
+     * Different DBMS export different field types, the result XML is thus slightly different.
+     * This var is used to select a suitable XML export fixture to compare with.
+     *
+     * @var string
+     */
+    protected $databasePlatform;
+
+    /**
+     * Set up for set up the backend user, initialize the language object
+     * and creating the Export instance
+     */
+    protected function setUp()
+    {
+        parent::setUp();
+
+        $this->databasePlatform = $this->getConnectionPool()
+            ->getConnectionByName(ConnectionPool::DEFAULT_CONNECTION_NAME)
+            ->getDatabasePlatform()
+            ->getName();
+
+        $backendUser = $this->setUpBackendUserFromFixture(1);
+        $backendUser->workspace = 0;
+        Bootstrap::getInstance()->initializeLanguageObject();
+    }
+
+    /**
+     * Tear down for remove of the test files
+     */
+    protected function tearDown()
+    {
+        foreach ($this->testFilesToDelete as $absoluteFileName) {
+            if (@is_file($absoluteFileName)) {
+                unlink($absoluteFileName);
+            }
+        }
+        parent::tearDown();
+    }
+
+    /**
+     * 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
+     *
+     * @param $export Export instance
+     * @param int $pidToStart
+     * @param int $depth
+     */
+    protected function setPageTree(Export $export, $pidToStart, $depth = 1)
+    {
+        $permsClause = $GLOBALS['BE_USER']->getPagePermsClause(1);
+
+        $tree = GeneralUtility::makeInstance(PageTreeView::class);
+        $tree->init('AND ' . $permsClause);
+        $tree->tree[] = ['row' => $pidToStart];
+        $tree->buffer_idH = [];
+        if ($depth > 0) {
+            $tree->getTree($pidToStart, $depth, '');
+        }
+
+        $idH[$pidToStart]['uid'] = $pidToStart;
+        if (!empty($tree->buffer_idH)) {
+            $idH[$pidToStart]['subrow'] = $tree->buffer_idH;
+        }
+
+        $export->setPageTree($idH);
+    }
+
+    /**
+     * Adds records to the export object for a specific page id.
+     *
+     * Used in export tests.
+     *
+     * @param $export Export instance
+     * @param int $pid Page id for which to select records to add
+     * @param array $tables Array of table names to select from
+     */
+    protected function addRecordsForPid(Export $export, $pid, array $tables)
+    {
+        foreach ($GLOBALS['TCA'] as $table => $value) {
+            if ($table !== 'pages' && (in_array($table, $tables) || in_array('_ALL', $tables))) {
+                if ($GLOBALS['BE_USER']->check('tables_select', $table) && !$GLOBALS['TCA'][$table]['ctrl']['is_static']) {
+                    $orderBy = $GLOBALS['TCA'][$table]['ctrl']['sortby'] ?: $GLOBALS['TCA'][$table]['ctrl']['default_sortby'];
+
+                    $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)
+                        ->getQueryBuilderForTable($table);
+
+                    $queryBuilder->getRestrictions()
+                        ->removeAll()
+                        ->add(GeneralUtility::makeInstance(DeletedRestriction::class));
+
+                    $queryBuilder
+                        ->select('*')
+                        ->from($table)
+                        ->where(
+                            $queryBuilder->expr()->eq(
+                                'pid',
+                                $queryBuilder->createNamedParameter($pid, \PDO::PARAM_INT)
+                            )
+                        );
+
+                    foreach (QueryHelper::parseOrderBy((string)$orderBy) as $orderPair) {
+                        list($fieldName, $order) = $orderPair;
+                        $queryBuilder->addOrderBy($fieldName, $order);
+                    }
+
+                    $result = $queryBuilder->execute();
+                    while ($row = $result->fetch()) {
+                        $export->export_addRecord($table, $row);
+                    }
+                }
+            }
+        }
+    }
+
+    /**
+     * Test if the local filesystem is case sensitive.
+     * Needed for some export related tests
+     *
+     * @return bool
+     */
+    protected function isCaseSensitiveFilesystem()
+    {
+        $caseSensitive = true;
+        $path = GeneralUtility::tempnam('aAbB');
+
+        // do the actual sensitivity check
+        if (@file_exists(strtoupper($path)) && @file_exists(strtolower($path))) {
+            $caseSensitive = false;
+        }
+
+        // clean filesystem
+        unlink($path);
+        return $caseSensitive;
+    }
+}
diff --git a/typo3/sysext/impexp/Tests/Functional/Export/AbstractExportTestCase.php b/typo3/sysext/impexp/Tests/Functional/Export/AbstractExportTestCase.php
deleted file mode 100644 (file)
index ba13bae..0000000
+++ /dev/null
@@ -1,135 +0,0 @@
-<?php
-namespace TYPO3\CMS\Impexp\Tests\Functional\Export;
-
-/*
- * This file is part of the TYPO3 CMS project.
- *
- * It is free software; you can redistribute it and/or modify it under
- * the terms of the GNU General Public License, either version 2
- * of the License, or any later version.
- *
- * For the full copyright and license information, please read the
- * LICENSE.txt file that was distributed with this source code.
- *
- * The TYPO3 project - inspiring people to share!
- */
-
-use TYPO3\CMS\Core\Database\ConnectionPool;
-use TYPO3\CMS\Core\Database\Query\QueryHelper;
-use TYPO3\CMS\Core\Database\Query\Restriction\DeletedRestriction;
-use TYPO3\CMS\Core\Utility\GeneralUtility;
-
-/**
- * Functional test for the Export
- */
-abstract class AbstractExportTestCase extends \TYPO3\TestingFramework\Core\Functional\FunctionalTestCase
-{
-    /**
-     * Path to a XML fixture dependent on the current database.
-     * @var string
-     */
-    protected $fixturePath = __DIR__ . '/../Fixtures/ImportExportXml/';
-
-    /**
-     * @var array
-     */
-    protected $coreExtensionsToLoad = ['impexp'];
-
-    /**
-     * @var \TYPO3\CMS\Impexp\Export
-     */
-    protected $export;
-
-    /**
-     * @var string
-     */
-    protected $databasePlatform;
-
-    /**
-     * Set up for set up the backend user, initialize the language object
-     * and creating the Export instance
-     */
-    protected function setUp()
-    {
-        parent::setUp();
-
-        $this->setUpBackendUserFromFixture(1);
-
-        \TYPO3\CMS\Core\Core\Bootstrap::getInstance()->initializeLanguageObject();
-
-        $this->export = GeneralUtility::makeInstance(\TYPO3\CMS\Impexp\Export::class);
-        $this->export->init(0, 'export');
-    }
-
-    /**
-     * 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.
-     *
-     * @param int $pidToStart
-     * @param int $depth
-     */
-    protected function setPageTree($pidToStart, $depth = 1)
-    {
-        $permsClause = $GLOBALS['BE_USER']->getPagePermsClause(1);
-
-        /** @var $tree \TYPO3\CMS\Backend\Tree\View\PageTreeView */
-        $tree = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Tree\View\PageTreeView::class);
-        $tree->init('AND ' . $permsClause);
-        $tree->tree[] = ['row' => $pidToStart];
-        $tree->buffer_idH = [];
-        if ($depth > 0) {
-            $tree->getTree($pidToStart, $depth, '');
-        }
-
-        $idH[$pidToStart]['uid'] = $pidToStart;
-        if (!empty($tree->buffer_idH)) {
-            $idH[$pidToStart]['subrow'] = $tree->buffer_idH;
-        }
-
-        $this->export->setPageTree($idH);
-    }
-
-    /**
-     * Adds records to the export object for a specific page id.
-     *
-     * @param int $pid Page id for which to select records to add
-     * @param array $tables Array of table names to select from
-     */
-    protected function addRecordsForPid($pid, array $tables)
-    {
-        foreach ($GLOBALS['TCA'] as $table => $value) {
-            if ($table !== 'pages' && (in_array($table, $tables) || in_array('_ALL', $tables))) {
-                if ($GLOBALS['BE_USER']->check('tables_select', $table) && !$GLOBALS['TCA'][$table]['ctrl']['is_static']) {
-                    $orderBy = $GLOBALS['TCA'][$table]['ctrl']['sortby'] ?: $GLOBALS['TCA'][$table]['ctrl']['default_sortby'];
-
-                    $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)
-                        ->getQueryBuilderForTable($table);
-
-                    $queryBuilder->getRestrictions()
-                        ->removeAll()
-                        ->add(GeneralUtility::makeInstance(DeletedRestriction::class));
-
-                    $queryBuilder
-                        ->select('*')
-                        ->from($table)
-                        ->where(
-                            $queryBuilder->expr()->eq(
-                                'pid',
-                                $queryBuilder->createNamedParameter($pid, \PDO::PARAM_INT)
-                            )
-                        );
-
-                    foreach (QueryHelper::parseOrderBy((string)$orderBy) as $orderPair) {
-                        list($fieldName, $order) = $orderPair;
-                        $queryBuilder->addOrderBy($fieldName, $order);
-                    }
-
-                    $result = $queryBuilder->execute();
-                    while ($row = $result->fetch()) {
-                        $this->export->export_addRecord($table, $row);
-                    }
-                }
-            }
-        }
-    }
-}
diff --git a/typo3/sysext/impexp/Tests/Functional/Export/GroupFileAndFileReferenceItem/ExportTest.php b/typo3/sysext/impexp/Tests/Functional/Export/GroupFileAndFileReferenceItem/ExportTest.php
deleted file mode 100644 (file)
index 2246cb7..0000000
+++ /dev/null
@@ -1,161 +0,0 @@
-<?php
-namespace TYPO3\CMS\Impexp\Tests\Functional\Export\GroupFileAndFileReferenceItem;
-
-/*
- * This file is part of the TYPO3 CMS project.
- *
- * It is free software; you can redistribute it and/or modify it under
- * the terms of the GNU General Public License, either version 2
- * of the License, or any later version.
- *
- * For the full copyright and license information, please read the
- * LICENSE.txt file that was distributed with this source code.
- *
- * The TYPO3 project - inspiring people to share!
- */
-
-use TYPO3\CMS\Backend\Utility\BackendUtility;
-
-/**
- * Functional test for the Export
- */
-class ExportTest extends \TYPO3\CMS\Impexp\Tests\Functional\Export\AbstractExportTestCase
-{
-    /**
-     * @var array
-     */
-    protected $testExtensionsToLoad = [
-        'typo3/sysext/impexp/Tests/Functional/Fixtures/Extensions/impexp_group_files'
-    ];
-
-    /**
-     * @var array
-     */
-    protected $pathsToLinkInTestInstance = [
-        'typo3/sysext/impexp/Tests/Functional/Fixtures/Folders/fileadmin/user_upload' => 'fileadmin/user_upload',
-        'typo3/sysext/impexp/Tests/Functional/Fixtures/Folders/uploads/tx_impexpgroupfiles' => 'uploads/tx_impexpgroupfiles'
-    ];
-
-    protected function setUp()
-    {
-        parent::setUp();
-
-        $this->importDataSet(__DIR__ . '/../../Fixtures/Database/pages.xml');
-        $this->importDataSet(__DIR__ . '/../../Fixtures/Database/sys_file.xml');
-        $this->importDataSet(__DIR__ . '/../../Fixtures/Database/sys_file_storage.xml');
-        $this->importDataSet(__DIR__ . '/../../Fixtures/Database/tx_impexpgroupfiles_item.xml');
-    }
-
-    /**
-     * @test
-     */
-    public function exportGroupFileAndFileReferenceItem()
-    {
-        $this->compileExportGroupFileAndFileReferenceItem();
-
-        $out = $this->export->compileMemoryToFileContent('xml');
-        // 'impexp-group-file-and-file_reference-item-but-images-not-included.xml'
-        $this->assertXmlStringEqualsXmlFile(
-            $this->getXmlFilePath('impexp-group-file-and-file_reference-item.xml'),
-            $out
-        );
-    }
-
-    /**
-     * @test
-     */
-    public function exportGroupFileAndFileReferenceItemButImagesNotIncluded()
-    {
-        $this->export->setSaveFilesOutsideExportFile(true);
-
-        $this->compileExportGroupFileAndFileReferenceItem();
-
-        $out = $this->export->compileMemoryToFileContent('xml');
-
-        $this->assertXmlStringEqualsXmlFile(
-            $this->getXmlFilePath('impexp-group-file-and-file_reference-item-but-images-not-included.xml'),
-            $out
-        );
-
-        $temporaryFilesDirectory = $this->export->getTemporaryFilesPathForExport();
-        $this->assertFileEquals(__DIR__ . '/../../Fixtures/Folders/uploads/tx_impexpgroupfiles/typo3_image4.jpg', $temporaryFilesDirectory . 'e1c5c4e1e34e19e2facb438752e06c3f');
-        $this->assertFileEquals(__DIR__ . '/../../Fixtures/Folders/fileadmin/user_upload/typo3_image5.jpg', $temporaryFilesDirectory . 'c3511df85d21bc578faf71c6a19eeb3ff44af370');
-    }
-
-    protected function compileExportGroupFileAndFileReferenceItem()
-    {
-        $this->export->setRecordTypesIncludeFields(
-            [
-                'pages' => [
-                    'title',
-                    'deleted',
-                    'doktype',
-                    'hidden',
-                    'perms_everybody'
-                ],
-                'sys_file' => [
-                    'storage',
-                    'type',
-                    'metadata',
-                    'extension',
-                    'identifier',
-                    'identifier_hash',
-                    'folder_hash',
-                    'mime_type',
-                    'name',
-                    'sha1',
-                    'size',
-                    'creation_date',
-                    'modification_date',
-                ],
-                'sys_file_storage' => [
-                    'name',
-                    'description',
-                    'driver',
-                    'configuration',
-                    'is_default',
-                    'is_browsable',
-                    'is_public',
-                    'is_writable',
-                    'is_online'
-                ],
-                'tx_impexpgroupfiles_item' => [
-                    'title',
-                    'deleted',
-                    'hidden',
-                    'images',
-                    'image_references'
-                ],
-
-            ]
-        );
-
-        $this->export->relOnlyTables = [
-            'sys_file',
-            'sys_file_storage'
-        ];
-
-        $this->export->export_addRecord('pages', BackendUtility::getRecord('pages', 1));
-        $this->export->export_addRecord('tx_impexpgroupfiles_item', BackendUtility::getRecord('tx_impexpgroupfiles_item', 1));
-
-        $this->setPageTree(1, 0);
-
-        // After adding ALL records we set relations:
-        for ($a = 0; $a < 10; $a++) {
-            $addR = $this->export->export_addDBRelations($a);
-            if (empty($addR)) {
-                break;
-            }
-        }
-
-        // hacky, but the timestamp will change on every clone, so set the file
-        // modification timestamp to the asserted value
-        $success = @touch(PATH_site . 'uploads/tx_impexpgroupfiles/typo3_image4.jpg', 1393866824);
-        if (!$success) {
-            $this->markTestSkipped('Could not set file modification timestamp for a fixture binary file. This is required for running the test successful.');
-        }
-
-        $this->export->export_addFilesFromRelations();
-        $this->export->export_addFilesFromSysFilesRecords();
-    }
-}
diff --git a/typo3/sysext/impexp/Tests/Functional/Export/GroupFileAndFileReferenceItemInFlexForm/ExportTest.php b/typo3/sysext/impexp/Tests/Functional/Export/GroupFileAndFileReferenceItemInFlexForm/ExportTest.php
deleted file mode 100644 (file)
index eb1ec7d..0000000
+++ /dev/null
@@ -1,136 +0,0 @@
-<?php
-namespace TYPO3\CMS\Impexp\Tests\Functional\Export\GroupFileAndFileReferenceItemInFlexForm;
-
-/*
- * This file is part of the TYPO3 CMS project.
- *
- * It is free software; you can redistribute it and/or modify it under
- * the terms of the GNU General Public License, either version 2
- * of the License, or any later version.
- *
- * For the full copyright and license information, please read the
- * LICENSE.txt file that was distributed with this source code.
- *
- * The TYPO3 project - inspiring people to share!
- */
-
-use TYPO3\CMS\Backend\Utility\BackendUtility;
-
-/**
- * Functional test for the Export
- */
-class ExportTest extends \TYPO3\CMS\Impexp\Tests\Functional\Export\AbstractExportTestCase
-{
-    /**
-     * @var array
-     */
-    protected $testExtensionsToLoad = [
-        'typo3/sysext/impexp/Tests/Functional/Fixtures/Extensions/impexp_group_files'
-    ];
-
-    /**
-     * @var array
-     */
-    protected $pathsToLinkInTestInstance = [
-        'typo3/sysext/impexp/Tests/Functional/Fixtures/Folders/fileadmin/user_upload' => 'fileadmin/user_upload',
-        'typo3/sysext/impexp/Tests/Functional/Fixtures/Folders/uploads/tx_impexpgroupfiles' => 'uploads/tx_impexpgroupfiles'
-    ];
-
-    protected function setUp()
-    {
-        parent::setUp();
-
-        $this->importDataSet(__DIR__ . '/../../Fixtures/Database/pages.xml');
-        $this->importDataSet(__DIR__ . '/../../Fixtures/Database/sys_file.xml');
-        $this->importDataSet(__DIR__ . '/../../Fixtures/Database/sys_file_storage.xml');
-        $this->importDataSet(__DIR__ . '/../../Fixtures/Database/tx_impexpgroupfiles_item.xml');
-    }
-
-    /**
-     * @test
-     */
-    public function exportGroupFileAndFileReferenceItem()
-    {
-        $this->export->setRecordTypesIncludeFields(
-            [
-                'pages' => [
-                    'title',
-                    'deleted',
-                    'doktype',
-                    'hidden',
-                    'perms_everybody'
-                ],
-                'sys_file' => [
-                    'storage',
-                    'type',
-                    'metadata',
-                    'extension',
-                    'identifier',
-                    'identifier_hash',
-                    'folder_hash',
-                    'mime_type',
-                    'name',
-                    'sha1',
-                    'size',
-                    'creation_date',
-                    'modification_date',
-                ],
-                'sys_file_storage' => [
-                    'name',
-                    'description',
-                    'driver',
-                    'configuration',
-                    'is_default',
-                    'is_browsable',
-                    'is_public',
-                    'is_writable',
-                    'is_online'
-                ],
-                'tx_impexpgroupfiles_item' => [
-                    'title',
-                    'deleted',
-                    'hidden',
-                    'images',
-                    'image_references',
-                    'flexform'
-                ],
-
-            ]
-        );
-
-        $this->export->relOnlyTables = [
-            'sys_file',
-            'sys_file_storage'
-        ];
-
-        $this->export->export_addRecord('pages', BackendUtility::getRecord('pages', 2));
-        $this->export->export_addRecord('tx_impexpgroupfiles_item', BackendUtility::getRecord('tx_impexpgroupfiles_item', 2));
-
-        $this->setPageTree(2, 0);
-
-        // After adding ALL records we set relations:
-        for ($a = 0; $a < 10; $a++) {
-            $addR = $this->export->export_addDBRelations($a);
-            if (empty($addR)) {
-                break;
-            }
-        }
-
-        // hacky, but the timestamp will change on every clone, so set the file
-        // modification timestamp to the asserted value
-        $success = @touch(PATH_site . 'uploads/tx_impexpgroupfiles/typo3_image4.jpg', 1393866824);
-        if (!$success) {
-            $this->markTestSkipped('Could not set file modification timestamp for a fixture binary file. This is required for running the test successful.');
-        }
-
-        $this->export->export_addFilesFromRelations();
-        $this->export->export_addFilesFromSysFilesRecords();
-
-        $out = $this->export->compileMemoryToFileContent('xml');
-
-        $this->assertXmlStringEqualsXmlFile(
-            $this->getXmlFilePath('impexp-group-file-and-file_reference-item-in-ff.xml'),
-            $out
-        );
-    }
-}
diff --git a/typo3/sysext/impexp/Tests/Functional/Export/GroupFileAndFileReferenceItemInFlexFormTest.php b/typo3/sysext/impexp/Tests/Functional/Export/GroupFileAndFileReferenceItemInFlexFormTest.php
new file mode 100644 (file)
index 0000000..82d52bf
--- /dev/null
@@ -0,0 +1,142 @@
+<?php
+namespace TYPO3\CMS\Impexp\Tests\Functional\Export;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use TYPO3\CMS\Backend\Utility\BackendUtility;
+use TYPO3\CMS\Core\Utility\GeneralUtility;
+use TYPO3\CMS\Impexp\Export;
+use TYPO3\CMS\Impexp\Tests\Functional\AbstractImportExportTestCase;
+
+/**
+ * Test case
+ */
+class GroupFileAndFileReferenceItemInFlexFormTest extends AbstractImportExportTestCase
+{
+    /**
+     * @var array
+     */
+    protected $testExtensionsToLoad = [
+        'typo3/sysext/impexp/Tests/Functional/Fixtures/Extensions/impexp_group_files'
+    ];
+
+    /**
+     * @var array
+     */
+    protected $pathsToLinkInTestInstance = [
+        'typo3/sysext/impexp/Tests/Functional/Fixtures/Folders/fileadmin/user_upload' => 'fileadmin/user_upload',
+        'typo3/sysext/impexp/Tests/Functional/Fixtures/Folders/uploads/tx_impexpgroupfiles' => 'uploads/tx_impexpgroupfiles'
+    ];
+
+    protected function setUp()
+    {
+        parent::setUp();
+
+        $this->importDataSet(__DIR__ . '/../Fixtures/DatabaseImports/pages.xml');
+        $this->importDataSet(__DIR__ . '/../Fixtures/DatabaseImports/sys_file.xml');
+        $this->importDataSet(__DIR__ . '/../Fixtures/DatabaseImports/sys_file_storage.xml');
+        $this->importDataSet(__DIR__ . '/../Fixtures/DatabaseImports/tx_impexpgroupfiles_item.xml');
+    }
+
+    /**
+     * @test
+     */
+    public function exportGroupFileAndFileReferenceItem()
+    {
+        $subject = GeneralUtility::makeInstance(Export::class);
+        $subject->init();
+
+        $subject->setRecordTypesIncludeFields(
+            [
+                'pages' => [
+                    'title',
+                    'deleted',
+                    'doktype',
+                    'hidden',
+                    'perms_everybody'
+                ],
+                'sys_file' => [
+                    'storage',
+                    'type',
+                    'metadata',
+                    'extension',
+                    'identifier',
+                    'identifier_hash',
+                    'folder_hash',
+                    'mime_type',
+                    'name',
+                    'sha1',
+                    'size',
+                    'creation_date',
+                    'modification_date',
+                ],
+                'sys_file_storage' => [
+                    'name',
+                    'description',
+                    'driver',
+                    'configuration',
+                    'is_default',
+                    'is_browsable',
+                    'is_public',
+                    'is_writable',
+                    'is_online'
+                ],
+                'tx_impexpgroupfiles_item' => [
+                    'title',
+                    'deleted',
+                    'hidden',
+                    'images',
+                    'image_references',
+                    'flexform'
+                ],
+
+            ]
+        );
+
+        $subject->relOnlyTables = [
+            'sys_file',
+            'sys_file_storage'
+        ];
+
+        $subject->export_addRecord('pages', BackendUtility::getRecord('pages', 2));
+        $subject->export_addRecord('tx_impexpgroupfiles_item', BackendUtility::getRecord('tx_impexpgroupfiles_item', 2));
+
+        $this->setPageTree($subject, 2, 0);
+
+        // After adding ALL records we set relations:
+        for ($a = 0; $a < 10; $a++) {
+            $addR = $subject->export_addDBRelations($a);
+            if (empty($addR)) {
+                break;
+            }
+        }
+
+        // hacky, but the timestamp will change on every clone, so set the file
+        // modification timestamp to the asserted value
+        $success = @touch(PATH_site . 'uploads/tx_impexpgroupfiles/typo3_image4.jpg', 1393866824);
+        if (!$success) {
+            $this->markTestSkipped('Could not set file modification timestamp for a fixture binary file. This is required for running the test successful.');
+        }
+
+        $subject->export_addFilesFromRelations();
+        $subject->export_addFilesFromSysFilesRecords();
+
+        $out = $subject->compileMemoryToFileContent('xml');
+
+        $this->assertXmlStringEqualsXmlFile(
+            __DIR__ . '/../Fixtures/XmlExports/' . $this->databasePlatform . '/impexp-group-file-and-file_reference-item-in-ff.xml',
+            $out
+        );
+    }
+}
diff --git a/typo3/sysext/impexp/Tests/Functional/Export/GroupFileAndFileReferenceItemTest.php b/typo3/sysext/impexp/Tests/Functional/Export/GroupFileAndFileReferenceItemTest.php
new file mode 100644 (file)
index 0000000..6129926
--- /dev/null
@@ -0,0 +1,175 @@
+<?php
+namespace TYPO3\CMS\Impexp\Tests\Functional\Export;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use TYPO3\CMS\Backend\Utility\BackendUtility;
+use TYPO3\CMS\Core\Utility\GeneralUtility;
+use TYPO3\CMS\Impexp\Export;
+use TYPO3\CMS\Impexp\Tests\Functional\AbstractImportExportTestCase;
+
+/**
+ * Test case
+ */
+class GroupFileAndFileReferenceItemTest extends AbstractImportExportTestCase
+{
+    /**
+     * @var array
+     */
+    protected $testExtensionsToLoad = [
+        'typo3/sysext/impexp/Tests/Functional/Fixtures/Extensions/impexp_group_files'
+    ];
+
+    /**
+     * @var array
+     */
+    protected $pathsToLinkInTestInstance = [
+        'typo3/sysext/impexp/Tests/Functional/Fixtures/Folders/fileadmin/user_upload' => 'fileadmin/user_upload',
+        'typo3/sysext/impexp/Tests/Functional/Fixtures/Folders/uploads/tx_impexpgroupfiles' => 'uploads/tx_impexpgroupfiles'
+    ];
+
+    protected function setUp()
+    {
+        parent::setUp();
+
+        $this->importDataSet(__DIR__ . '/../Fixtures/DatabaseImports/pages.xml');
+        $this->importDataSet(__DIR__ . '/../Fixtures/DatabaseImports/sys_file.xml');
+        $this->importDataSet(__DIR__ . '/../Fixtures/DatabaseImports/sys_file_storage.xml');
+        $this->importDataSet(__DIR__ . '/../Fixtures/DatabaseImports/tx_impexpgroupfiles_item.xml');
+    }
+
+    /**
+     * @test
+     */
+    public function exportGroupFileAndFileReferenceItem()
+    {
+        $subject = GeneralUtility::makeInstance(Export::class);
+        $subject->init();
+
+        $this->compileExportGroupFileAndFileReferenceItem($subject);
+
+        $out = $subject->compileMemoryToFileContent('xml');
+
+        $this->assertXmlStringEqualsXmlFile(
+            __DIR__ . '/../Fixtures/XmlExports/' . $this->databasePlatform . '/impexp-group-file-and-file_reference-item.xml',
+            $out
+        );
+    }
+
+    /**
+     * @test
+     */
+    public function exportGroupFileAndFileReferenceItemButImagesNotIncluded()
+    {
+        $subject = GeneralUtility::makeInstance(Export::class);
+        $subject->init();
+
+        $subject->setSaveFilesOutsideExportFile(true);
+
+        $this->compileExportGroupFileAndFileReferenceItem($subject);
+
+        $out = $subject->compileMemoryToFileContent('xml');
+
+        $this->assertXmlStringEqualsXmlFile(
+            __DIR__ . '/../Fixtures/XmlExports/' . $this->databasePlatform . '/impexp-group-file-and-file_reference-item-but-images-not-included.xml',
+            $out
+        );
+
+        $temporaryFilesDirectory = $subject->getTemporaryFilesPathForExport();
+        $this->assertFileEquals(__DIR__ . '/../Fixtures/Folders/uploads/tx_impexpgroupfiles/typo3_image4.jpg', $temporaryFilesDirectory . 'e1c5c4e1e34e19e2facb438752e06c3f');
+        $this->assertFileEquals(__DIR__ . '/../Fixtures/Folders/fileadmin/user_upload/typo3_image5.jpg', $temporaryFilesDirectory . 'c3511df85d21bc578faf71c6a19eeb3ff44af370');
+    }
+
+    /**
+     * Add default set of records to export
+     *
+     * @param $subject Export
+     */
+    protected function compileExportGroupFileAndFileReferenceItem(Export $subject)
+    {
+        $subject->setRecordTypesIncludeFields(
+            [
+                'pages' => [
+                    'title',
+                    'deleted',
+                    'doktype',
+                    'hidden',
+                    'perms_everybody'
+                ],
+                'sys_file' => [
+                    'storage',
+                    'type',
+                    'metadata',
+                    'extension',
+                    'identifier',
+                    'identifier_hash',
+                    'folder_hash',
+                    'mime_type',
+                    'name',
+                    'sha1',
+                    'size',
+                    'creation_date',
+                    'modification_date',
+                ],
+                'sys_file_storage' => [
+                    'name',
+                    'description',
+                    'driver',
+                    'configuration',
+                    'is_default',
+                    'is_browsable',
+                    'is_public',
+                    'is_writable',
+                    'is_online'
+                ],
+                'tx_impexpgroupfiles_item' => [
+                    'title',
+                    'deleted',
+                    'hidden',
+                    'images',
+                    'image_references'
+                ],
+
+            ]
+        );
+
+        $subject->relOnlyTables = [
+            'sys_file',
+            'sys_file_storage'
+        ];
+
+        $subject->export_addRecord('pages', BackendUtility::getRecord('pages', 1));
+        $subject->export_addRecord('tx_impexpgroupfiles_item', BackendUtility::getRecord('tx_impexpgroupfiles_item', 1));
+
+        $this->setPageTree($subject, 1, 0);
+
+        // After adding ALL records we set relations:
+        for ($a = 0; $a < 10; $a++) {
+            $addR = $subject->export_addDBRelations($a);
+            if (empty($addR)) {
+                break;
+            }
+        }
+
+        // hacky, but the timestamp will change on every clone, so set the file
+        // modification timestamp to the asserted value
+        $success = @touch(PATH_site . 'uploads/tx_impexpgroupfiles/typo3_image4.jpg', 1393866824);
+        if (!$success) {
+            $this->markTestSkipped('Could not set file modification timestamp for a fixture binary file. This is required for running the test successful.');
+        }
+
+        $subject->export_addFilesFromRelations();
+        $subject->export_addFilesFromSysFilesRecords();
+    }
+}
diff --git a/typo3/sysext/impexp/Tests/Functional/Export/IrreTutorialRecords/ExportTest.php b/typo3/sysext/impexp/Tests/Functional/Export/IrreTutorialRecords/ExportTest.php
deleted file mode 100644 (file)
index 35d7388..0000000
+++ /dev/null
@@ -1,302 +0,0 @@
-<?php
-namespace TYPO3\CMS\Impexp\Tests\Functional\Export\IrreTutorialRecords;
-
-/*
- * This file is part of the TYPO3 CMS project.
- *
- * It is free software; you can redistribute it and/or modify it under
- * the terms of the GNU General Public License, either version 2
- * of the License, or any later version.
- *
- * For the full copyright and license information, please read the
- * LICENSE.txt file that was distributed with this source code.
- *
- * The TYPO3 project - inspiring people to share!
- */
-
-use TYPO3\CMS\Backend\Utility\BackendUtility;
-
-/**
- * Functional test for the Export
- */
-class ExportTest extends \TYPO3\CMS\Impexp\Tests\Functional\Export\AbstractExportTestCase
-{
-    /**
-     * @var array
-     */
-    protected $testExtensionsToLoad = [
-        'typo3/sysext/core/Tests/Functional/Fixtures/Extensions/irre_tutorial',
-    ];
-
-    protected function setUp()
-    {
-        parent::setUp();
-
-        $this->importDataSet(__DIR__ . '/../../Fixtures/Database/irre_tutorial.xml');
-    }
-
-    /**
-     * @test
-     */
-    public function exportIrreRecords()
-    {
-        $recordTypesIncludeFields = [
-            'pages' => [
-                'title',
-                'deleted',
-                'doktype',
-                'hidden',
-                'perms_everybody'
-            ],
-            'tt_content' => [
-                'CType',
-                'header',
-                'deleted',
-                'hidden',
-                't3ver_oid',
-                'tx_irretutorial_1nff_hotels',
-                'tx_irretutorial_1ncsv_hotels'
-            ],
-            'tx_irretutorial_1ncsv_hotel' => [
-                'cruser_id',
-                'sys_language_uid',
-                'l18n_parent',
-                'sorting',
-                'deleted',
-                'hidden',
-                'title',
-                'offers',
-            ],
-            'tx_irretutorial_1ncsv_offer' => [
-                'cruser_id',
-                'sys_language_uid',
-                'l18n_parent',
-                'sorting',
-                'deleted',
-                'hidden',
-                'title',
-                'prices',
-            ],
-            'tx_irretutorial_1ncsv_price' => [
-                'cruser_id',
-                'sys_language_uid',
-                'l18n_parent',
-                'sorting',
-                'deleted',
-                'hidden',
-                'title',
-                'price',
-            ],
-            'tx_irretutorial_1nff_hotel' => [
-                'cruser_id',
-                'sys_language_uid',
-                'l18n_parent',
-                'sorting',
-                'deleted',
-                'hidden',
-                'parentid',
-                'parenttable',
-                'parentidentifier',
-                'title',
-                'offers',
-            ],
-            'tx_irretutorial_1nff_offer' => [
-                'cruser_id',
-                'sys_language_uid',
-                'l18n_parent',
-                'sorting',
-                'deleted',
-                'hidden',
-                'parentid',
-                'parenttable',
-                'parentidentifier',
-                'title',
-                'prices',
-            ],
-            'tx_irretutorial_1nff_price' => [
-                'cruser_id',
-                'sys_language_uid',
-                'l18n_parent',
-                'sorting',
-                'deleted',
-                'hidden',
-                'parentid',
-                'parenttable',
-                'parentidentifier',
-                'title',
-                'price',
-            ],
-            'tx_irretutorial_mnasym_hotel' => [
-                'cruser_id',
-                'sys_language_uid',
-                'l18n_parent',
-                'sorting',
-                'deleted',
-                'hidden',
-                'title',
-                'offers',
-            ],
-            'tx_irretutorial_mnasym_hotel_offer_rel' => [
-                'cruser_id',
-                'sys_language_uid',
-                'l18n_parent',
-                'deleted',
-                'hidden',
-                'hotelid',
-                'offerid',
-                'hotelsort',
-                'offersort',
-                'prices',
-            ],
-            'tx_irretutorial_mnasym_offer' => [
-                'cruser_id',
-                'sys_language_uid',
-                'l18n_parent',
-                'sorting',
-                'deleted',
-                'hidden',
-                'title',
-                'hotels',
-            ],
-            'tx_irretutorial_mnasym_price' => [
-                'cruser_id',
-                'sys_language_uid',
-                'l18n_parent',
-                'sorting',
-                'deleted',
-                'hidden',
-                'parentid',
-                'title',
-                'price',
-            ],
-            'tx_irretutorial_mnattr_hotel' => [
-                'cruser_id',
-                'sys_language_uid',
-                'l18n_parent',
-                'sorting',
-                'deleted',
-                'hidden',
-                'title',
-                'offers',
-            ],
-            'tx_irretutorial_mnattr_hotel_offer_rel' => [
-                'cruser_id',
-                'sys_language_uid',
-                'l18n_parent',
-                'deleted',
-                'hidden',
-                'hotelid',
-                'offerid',
-                'hotelsort',
-                'offersort',
-                'quality',
-                'allincl',
-            ],
-            'tx_irretutorial_mnattr_offer' => [
-                'cruser_id',
-                'sys_language_uid',
-                'l18n_parent',
-                'sorting',
-                'deleted',
-                'hidden',
-                'title',
-                'hotels',
-            ],
-            'tx_irretutorial_mnmmasym_hotel' => [
-                'cruser_id',
-                'sys_language_uid',
-                'l18n_parent',
-                'sorting',
-                'deleted',
-                'hidden',
-                'title',
-                'offers',
-            ],
-            'tx_irretutorial_mnmmasym_hotel_offer_rel' => [
-                'uid_local',
-                'uid_foreign',
-                'tablenames',
-                'sorting',
-                'sorting_foreign',
-                'ident',
-            ],
-            'tx_irretutorial_mnmmasym_offer' => [
-                'cruser_id',
-                'sys_language_uid',
-                'l18n_parent',
-                'sorting',
-                'deleted',
-                'hidden',
-                'title',
-                'hotels',
-                'prices',
-            ],
-            'tx_irretutorial_mnmmasym_offer_price_rel' => [
-                'uid_local',
-                'uid_foreign',
-                'tablenames',
-                'sorting',
-                'sorting_foreign',
-                'ident',
-            ],
-            'tx_irretutorial_mnmmasym_price' => [
-                'cruser_id',
-                'sys_language_uid',
-                'l18n_parent',
-                'sorting',
-                'deleted',
-                'hidden',
-                'title',
-                'price',
-                'offers',
-            ],
-            'tx_irretutorial_mnsym_hotel' => [
-                'cruser_id',
-                'sys_language_uid',
-                'l18n_parent',
-                'sorting',
-                'deleted',
-                'hidden',
-                'title',
-                'branches',
-            ],
-            'tx_irretutorial_mnsym_hotel_rel' => [
-                'cruser_id',
-                'sys_language_uid',
-                'l18n_parent',
-                'deleted',
-                'hidden',
-                'hotelid',
-                'branchid',
-                'hotelsort',
-                'branchsort',
-            ]
-
-        ];
-
-        $this->export->setRecordTypesIncludeFields($recordTypesIncludeFields);
-
-        $this->export->export_addRecord('pages', BackendUtility::getRecord('pages', 1));
-        $this->addRecordsForPid(1, array_keys($recordTypesIncludeFields));
-
-        $this->setPageTree(1);
-
-        // After adding ALL records we set relations:
-        for ($a = 0; $a < 10; $a++) {
-            $addR = $this->export->export_addDBRelations($a);
-            if (empty($addR)) {
-                break;
-            }
-        }
-
-        $this->export->export_addFilesFromRelations();
-        $this->export->export_addFilesFromSysFilesRecords();
-
-        $out = $this->export->compileMemoryToFileContent('xml');
-
-        $this->assertXmlStringEqualsXmlFile(
-            $this->getXmlFilePath('irre-records.xml'),
-            $out
-        );
-    }
-}
diff --git a/typo3/sysext/impexp/Tests/Functional/Export/IrreTutorialRecordsTest.php b/typo3/sysext/impexp/Tests/Functional/Export/IrreTutorialRecordsTest.php
new file mode 100644 (file)
index 0000000..17a4138
--- /dev/null
@@ -0,0 +1,303 @@
+<?php
+namespace TYPO3\CMS\Impexp\Tests\Functional\Export;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use TYPO3\CMS\Backend\Utility\BackendUtility;
+use TYPO3\CMS\Core\Utility\GeneralUtility;
+use TYPO3\CMS\Impexp\Export;
+use TYPO3\CMS\Impexp\Tests\Functional\AbstractImportExportTestCase;
+
+/**
+ * Test case
+ */
+class IrreTutorialRecordsTest extends AbstractImportExportTestCase
+{
+    /**
+     * @var array
+     */
+    protected $testExtensionsToLoad = [
+        'typo3/sysext/core/Tests/Functional/Fixtures/Extensions/irre_tutorial',
+    ];
+
+    /**
+     * @test
+     */
+    public function exportIrreRecords()
+    {
+        $recordTypesIncludeFields = [
+            'pages' => [
+                'title',
+                'deleted',
+                'doktype',
+                'hidden',
+                'perms_everybody'
+            ],
+            'tt_content' => [
+                'CType',
+                'header',
+                'deleted',
+                'hidden',
+                't3ver_oid',
+                'tx_irretutorial_1nff_hotels',
+                'tx_irretutorial_1ncsv_hotels'
+            ],
+            'tx_irretutorial_1ncsv_hotel' => [
+                'cruser_id',
+                'sys_language_uid',
+                'l18n_parent',
+                'sorting',
+                'deleted',
+                'hidden',
+                'title',
+                'offers',
+            ],
+            'tx_irretutorial_1ncsv_offer' => [
+                'cruser_id',
+                'sys_language_uid',
+                'l18n_parent',
+                'sorting',
+                'deleted',
+                'hidden',
+                'title',
+                'prices',
+            ],
+            'tx_irretutorial_1ncsv_price' => [
+                'cruser_id',
+                'sys_language_uid',
+                'l18n_parent',
+                'sorting',
+                'deleted',
+                'hidden',
+                'title',
+                'price',
+            ],
+            'tx_irretutorial_1nff_hotel' => [
+                'cruser_id',
+                'sys_language_uid',
+                'l18n_parent',
+                'sorting',
+                'deleted',
+                'hidden',
+                'parentid',
+                'parenttable',
+                'parentidentifier',
+                'title',
+                'offers',
+            ],
+            'tx_irretutorial_1nff_offer' => [
+                'cruser_id',
+                'sys_language_uid',
+                'l18n_parent',
+                'sorting',
+                'deleted',
+                'hidden',
+                'parentid',
+                'parenttable',
+                'parentidentifier',
+                'title',
+                'prices',
+            ],
+            'tx_irretutorial_1nff_price' => [
+                'cruser_id',
+                'sys_language_uid',
+                'l18n_parent',
+                'sorting',
+                'deleted',
+                'hidden',
+                'parentid',
+                'parenttable',
+                'parentidentifier',
+                'title',
+                'price',
+            ],
+            'tx_irretutorial_mnasym_hotel' => [
+                'cruser_id',
+                'sys_language_uid',
+                'l18n_parent',
+                'sorting',
+                'deleted',
+                'hidden',
+                'title',
+                'offers',
+            ],
+            'tx_irretutorial_mnasym_hotel_offer_rel' => [
+                'cruser_id',
+                'sys_language_uid',
+                'l18n_parent',
+                'deleted',
+                'hidden',
+                'hotelid',
+                'offerid',
+                'hotelsort',
+                'offersort',
+                'prices',
+            ],
+            'tx_irretutorial_mnasym_offer' => [
+                'cruser_id',
+                'sys_language_uid',
+                'l18n_parent',
+                'sorting',
+                'deleted',
+                'hidden',
+                'title',
+                'hotels',
+            ],
+            'tx_irretutorial_mnasym_price' => [
+                'cruser_id',
+                'sys_language_uid',
+                'l18n_parent',
+                'sorting',
+                'deleted',
+                'hidden',
+                'parentid',
+                'title',
+                'price',
+            ],
+            'tx_irretutorial_mnattr_hotel' => [
+                'cruser_id',
+                'sys_language_uid',
+                'l18n_parent',
+                'sorting',
+                'deleted',
+                'hidden',
+                'title',
+                'offers',
+            ],
+            'tx_irretutorial_mnattr_hotel_offer_rel' => [
+                'cruser_id',
+                'sys_language_uid',
+                'l18n_parent',
+                'deleted',
+                'hidden',
+                'hotelid',
+                'offerid',
+                'hotelsort',
+                'offersort',
+                'quality',
+                'allincl',
+            ],
+            'tx_irretutorial_mnattr_offer' => [
+                'cruser_id',
+                'sys_language_uid',
+                'l18n_parent',
+                'sorting',
+                'deleted',
+                'hidden',
+                'title',
+                'hotels',
+            ],
+            'tx_irretutorial_mnmmasym_hotel' => [
+                'cruser_id',
+                'sys_language_uid',
+                'l18n_parent',
+                'sorting',
+                'deleted',
+                'hidden',
+                'title',
+                'offers',
+            ],
+            'tx_irretutorial_mnmmasym_hotel_offer_rel' => [
+                'uid_local',
+                'uid_foreign',
+                'tablenames',
+                'sorting',
+                'sorting_foreign',
+                'ident',
+            ],
+            'tx_irretutorial_mnmmasym_offer' => [
+                'cruser_id',
+                'sys_language_uid',
+                'l18n_parent',
+                'sorting',
+                'deleted',
+                'hidden',
+                'title',
+                'hotels',
+                'prices',
+            ],
+            'tx_irretutorial_mnmmasym_offer_price_rel' => [
+                'uid_local',
+                'uid_foreign',
+                'tablenames',
+                'sorting',
+                'sorting_foreign',
+                'ident',
+            ],
+            'tx_irretutorial_mnmmasym_price' => [
+                'cruser_id',
+                'sys_language_uid',
+                'l18n_parent',
+                'sorting',
+                'deleted',
+                'hidden',
+                'title',
+                'price',
+                'offers',
+            ],
+            'tx_irretutorial_mnsym_hotel' => [
+                'cruser_id',
+                'sys_language_uid',
+                'l18n_parent',
+                'sorting',
+                'deleted',
+                'hidden',
+                'title',
+                'branches',
+            ],
+            'tx_irretutorial_mnsym_hotel_rel' => [
+                'cruser_id',
+                'sys_language_uid',
+                'l18n_parent',
+                'deleted',
+                'hidden',
+                'hotelid',
+                'branchid',
+                'hotelsort',
+                'branchsort',
+            ]
+
+        ];
+
+        $this->importDataSet(__DIR__ . '/../Fixtures/DatabaseImports/irre_tutorial.xml');
+
+        $subject = GeneralUtility::makeInstance(Export::class);
+        $subject->init();
+
+        $subject->setRecordTypesIncludeFields($recordTypesIncludeFields);
+
+        $subject->export_addRecord('pages', BackendUtility::getRecord('pages', 1));
+        $this->addRecordsForPid($subject, 1, array_keys($recordTypesIncludeFields));
+
+        $this->setPageTree($subject, 1);
+
+        // After adding ALL records we set relations:
+        for ($a = 0; $a < 10; $a++) {
+            $addR = $subject->export_addDBRelations($a);
+            if (empty($addR)) {
+                break;
+            }
+        }
+
+        $subject->export_addFilesFromRelations();
+        $subject->export_addFilesFromSysFilesRecords();
+
+        $out = $subject->compileMemoryToFileContent('xml');
+
+        $this->assertXmlStringEqualsXmlFile(
+            __DIR__ . '/../Fixtures/XmlExports/' . $this->databasePlatform . '/irre-records.xml',
+            $out
+        );
+    }
+}
diff --git a/typo3/sysext/impexp/Tests/Functional/Export/PagesAndTtContent/ExportTest.php b/typo3/sysext/impexp/Tests/Functional/Export/PagesAndTtContent/ExportTest.php
deleted file mode 100644 (file)
index 22eebcd..0000000
+++ /dev/null
@@ -1,116 +0,0 @@
-<?php
-namespace TYPO3\CMS\Impexp\Tests\Functional\Export\PagesAndTtContent;
-
-/*
- * This file is part of the TYPO3 CMS project.
- *
- * It is free software; you can redistribute it and/or modify it under
- * the terms of the GNU General Public License, either version 2
- * of the License, or any later version.
- *
- * For the full copyright and license information, please read the
- * LICENSE.txt file that was distributed with this source code.
- *
- * The TYPO3 project - inspiring people to share!
- */
-
-use TYPO3\CMS\Backend\Utility\BackendUtility;
-
-/**
- * Functional test for the Export
- */
-class ExportTest extends \TYPO3\CMS\Impexp\Tests\Functional\Export\AbstractExportTestCase
-{
-    /**
-     * @var array
-     */
-    protected $pathsToLinkInTestInstance = [
-            'typo3/sysext/impexp/Tests/Functional/Fixtures/Folders/fileadmin/user_upload' => 'fileadmin/user_upload'
-    ];
-
-    /**
-     * @var array
-     */
-    protected $testExtensionsToLoad = [
-            'typo3/sysext/impexp/Tests/Functional/Fixtures/Extensions/template_extension'
-    ];
-
-    protected function setUp()
-    {
-        parent::setUp();
-
-        $this->importDataSet(__DIR__ . '/../../Fixtures/Database/pages.xml');
-        $this->importDataSet(__DIR__ . '/../../Fixtures/Database/tt_content.xml');
-        $this->importDataSet(__DIR__ . '/../../Fixtures/Database/sys_file.xml');
-        $this->importDataSet(__DIR__ . '/Fixtures/Database/sys_file.xml');
-    }
-
-    /**
-     * @test
-     */
-    public function exportPagesAndRelatedTtContent()
-    {
-        $this->export->setRecordTypesIncludeFields(
-            [
-                'pages' => [
-                    'title',
-                    'deleted',
-                    'doktype',
-                    'hidden',
-                    'perms_everybody'
-                ],
-                'tt_content' => [
-                    'CType',
-                    'header',
-                    'header_link',
-                    'deleted',
-                    'hidden',
-                    't3ver_oid'
-                ],
-                'sys_file' => [
-                    'storage',
-                    'type',
-                    'metadata',
-                    'identifier',
-                    'identifier_hash',
-                    'folder_hash',
-                    'mime_type',
-                    'name',
-                    'sha1',
-                    'size',
-                    'creation_date',
-                    'modification_date',
-                ],
-            ]
-        );
-
-        $this->export->relOnlyTables = [
-                'sys_file',
-        ];
-
-        $this->export->export_addRecord('pages', BackendUtility::getRecord('pages', 1));
-        $this->export->export_addRecord('pages', BackendUtility::getRecord('pages', 2));
-        $this->export->export_addRecord('tt_content', BackendUtility::getRecord('tt_content', 1));
-        $this->export->export_addRecord('tt_content', BackendUtility::getRecord('tt_content', 2));
-
-        $this->setPageTree(1, 1);
-
-        // After adding ALL records we set relations:
-        for ($a = 0; $a < 10; $a++) {
-            $addR = $this->export->export_addDBRelations($a);
-            if (empty($addR)) {
-                break;
-            }
-        }
-
-        $this->export->export_addFilesFromRelations();
-        $this->export->export_addFilesFromSysFilesRecords();
-
-        $out = $this->export->compileMemoryToFileContent('xml');
-
-        $this->assertXmlStringEqualsXmlFile(
-            $this->getXmlFilePath('pages-and-ttcontent.xml'),
-            $out
-        );
-    }
-}
diff --git a/typo3/sysext/impexp/Tests/Functional/Export/PagesAndTtContent/Fixtures/Database/sys_file.xml b/typo3/sysext/impexp/Tests/Functional/Export/PagesAndTtContent/Fixtures/Database/sys_file.xml
deleted file mode 100644 (file)
index 4b62a14..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<dataset>
-       <sys_file>
-               <uid>4</uid>
-               <pid>0</pid>
-               <storage>0</storage>
-               <type>1</type>
-               <identifier>/typo3conf/ext/template_extension/Resources/Public/Templates/Empty.html</identifier>
-               <identifier_hash>ae03df120da87352822f4aae6d476086cb8c0cf8</identifier_hash>
-               <folder_hash>85051482e1ba204348a9b9f6c1a37069e77de027</folder_hash>
-               <extension>html</extension>
-               <mime_type>text/html</mime_type>
-               <name>Empty.html</name>
-               <sha1>4a53ba5b5a156b82e3efd443f9a402f8c6e6dd08</sha1>
-               <size>92</size>
-               <creation_date>1400176659</creation_date>
-               <modification_date>1400176659</modification_date>
-       </sys_file>
-</dataset>
\ No newline at end of file
diff --git a/typo3/sysext/impexp/Tests/Functional/Export/PagesAndTtContentTest.php b/typo3/sysext/impexp/Tests/Functional/Export/PagesAndTtContentTest.php
new file mode 100644 (file)
index 0000000..67a0ec3
--- /dev/null
@@ -0,0 +1,122 @@
+<?php
+namespace TYPO3\CMS\Impexp\Tests\Functional\Export;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use TYPO3\CMS\Backend\Utility\BackendUtility;
+use TYPO3\CMS\Core\Utility\GeneralUtility;
+use TYPO3\CMS\Impexp\Export;
+use TYPO3\CMS\Impexp\Tests\Functional\AbstractImportExportTestCase;
+
+/**
+ * Test case
+ */
+class PagesAndTtContentTest extends AbstractImportExportTestCase
+{
+    /**
+     * @var array
+     */
+    protected $pathsToLinkInTestInstance = [
+            'typo3/sysext/impexp/Tests/Functional/Fixtures/Folders/fileadmin/user_upload' => 'fileadmin/user_upload'
+    ];
+
+    /**
+     * @var array
+     */
+    protected $testExtensionsToLoad = [
+            'typo3/sysext/impexp/Tests/Functional/Fixtures/Extensions/template_extension'
+    ];
+
+    protected function setUp()
+    {
+        parent::setUp();
+
+        $this->importDataSet(__DIR__ . '/../Fixtures/DatabaseImports/pages.xml');
+        $this->importDataSet(__DIR__ . '/../Fixtures/DatabaseImports/tt_content.xml');
+        $this->importDataSet(__DIR__ . '/../Fixtures/DatabaseImports/sys_file.xml');
+        $this->importDataSet(__DIR__ . '/../Fixtures/DatabaseImports/sys_file-export-pages-and-tt-content.xml');
+    }
+
+    /**
+     * @test
+     */
+    public function exportPagesAndRelatedTtContent()
+    {
+        $subject = GeneralUtility::makeInstance(Export::class);
+        $subject->init();
+
+        $subject->setRecordTypesIncludeFields(
+            [
+                'pages' => [
+                    'title',
+                    'deleted',
+                    'doktype',
+                    'hidden',
+                    'perms_everybody'
+                ],
+                'tt_content' => [
+                    'CType',
+                    'header',
+                    'header_link',
+                    'deleted',
+                    'hidden',
+                    't3ver_oid'
+                ],
+                'sys_file' => [
+                    'storage',
+                    'type',
+                    'metadata',
+                    'identifier',
+                    'identifier_hash',
+                    'folder_hash',
+                    'mime_type',
+                    'name',
+                    'sha1',
+                    'size',
+                    'creation_date',
+                    'modification_date',
+                ],
+            ]
+        );
+
+        $subject->relOnlyTables = [
+                'sys_file',
+        ];
+
+        $subject->export_addRecord('pages', BackendUtility::getRecord('pages', 1));
+        $subject->export_addRecord('pages', BackendUtility::getRecord('pages', 2));
+        $subject->export_addRecord('tt_content', BackendUtility::getRecord('tt_content', 1));
+        $subject->export_addRecord('tt_content', BackendUtility::getRecord('tt_content', 2));
+
+        $this->setPageTree($subject, 1, 1);
+
+        // After adding ALL records we set relations:
+        for ($a = 0; $a < 10; $a++) {
+            $addR = $subject->export_addDBRelations($a);
+            if (empty($addR)) {
+                break;
+            }
+        }
+
+        $subject->export_addFilesFromRelations();
+        $subject->export_addFilesFromSysFilesRecords();
+
+        $out = $subject->compileMemoryToFileContent('xml');
+
+        $this->assertXmlStringEqualsXmlFile(
+            __DIR__ . '/../Fixtures/XmlExports/' . $this->databasePlatform . '/pages-and-ttcontent.xml',
+            $out
+        );
+    }
+}
diff --git a/typo3/sysext/impexp/Tests/Functional/Export/PagesAndTtContentWithImages/ExportTest.php b/typo3/sysext/impexp/Tests/Functional/Export/PagesAndTtContentWithImages/ExportTest.php
deleted file mode 100644 (file)
index 8ceac06..0000000
+++ /dev/null
@@ -1,212 +0,0 @@
-<?php
-namespace TYPO3\CMS\Impexp\Tests\Functional\Export\PagesAndTtContentWithImages;
-
-/*
- * This file is part of the TYPO3 CMS project.
- *
- * It is free software; you can redistribute it and/or modify it under
- * the terms of the GNU General Public License, either version 2
- * of the License, or any later version.
- *
- * For the full copyright and license information, please read the
- * LICENSE.txt file that was distributed with this source code.
- *
- * The TYPO3 project - inspiring people to share!
- */
-
-use TYPO3\CMS\Backend\Utility\BackendUtility;
-
-/**
- * Functional test for the Export
- */
-class ExportTest extends \TYPO3\CMS\Impexp\Tests\Functional\Export\AbstractExportTestCase
-{
-    /**
-     * @var array
-     */
-    protected $pathsToLinkInTestInstance = [
-        'typo3/sysext/impexp/Tests/Functional/Fixtures/Folders/fileadmin/user_upload' => 'fileadmin/user_upload'
-    ];
-
-    protected function setUp()
-    {
-        parent::setUp();
-
-        $this->importDataSet(__DIR__ . '/../../Fixtures/Database/pages.xml');
-        $this->importDataSet(__DIR__ . '/../../Fixtures/Database/tt_content-with-image.xml');
-        $this->importDataSet(__DIR__ . '/../../Fixtures/Database/sys_language.xml');
-        $this->importDataSet(__DIR__ . '/../../Fixtures/Database/sys_file_metadata.xml');
-        $this->importDataSet(__DIR__ . '/../../Fixtures/Database/sys_file_reference.xml');
-        $this->importDataSet(__DIR__ . '/../../Fixtures/Database/sys_file_storage.xml');
-    }
-
-    /**
-     * @test
-     */
-    public function exportPagesAndRelatedTtContentWithImages()
-    {
-        $this->importDataSet(__DIR__ . '/../../Fixtures/Database/sys_file.xml');
-
-        $this->compileExportPagesAndRelatedTtContentWithImages();
-
-        $out = $this->export->compileMemoryToFileContent('xml');
-
-        $errors = $this->export->printErrorLog();
-        $this->assertSame('', $errors);
-
-        $this->assertXmlStringEqualsXmlFile(
-            $this->getXmlFilePath('pages-and-ttcontent-with-image.xml'),
-            $out
-        );
-    }
-
-    /**
-     * @test
-     */
-    public function exportPagesAndRelatedTtContentWithImagesFromCorruptSysFileRecord()
-    {
-        $this->importDataSet(__DIR__ . '/../../Fixtures/Database/sys_file_corrupt.xml');
-
-        $this->compileExportPagesAndRelatedTtContentWithImages();
-
-        $out = $this->export->compileMemoryToFileContent('xml');
-
-        $expectedErrors = [
-            'File size of 1:/user_upload/typo3_image2.jpg is not up-to-date in index! File added with current size.',
-            'File sha1 hash of 1:/user_upload/typo3_image2.jpg is not up-to-date in index! File added on current sha1.'
-        ];
-        $errors = $this->export->errorLog;
-        $this->assertSame($expectedErrors, $errors);
-
-        $this->assertXmlStringEqualsXmlFile(
-            $this->getXmlFilePath('pages-and-ttcontent-with-corrupt-image.xml'),
-            $out
-        );
-    }
-
-    /**
-     * @test
-     */
-    public function exportPagesAndRelatedTtContentWithImagesButNotIncluded()
-    {
-        $this->importDataSet(__DIR__ . '/../../Fixtures/Database/sys_file.xml');
-
-        $this->export->setSaveFilesOutsideExportFile(true);
-
-        $this->compileExportPagesAndRelatedTtContentWithImages();
-
-        $out = $this->export->compileMemoryToFileContent('xml');
-
-        $this->assertXmlStringEqualsXmlFile(
-            $this->getXmlFilePath('pages-and-ttcontent-with-image-but-not-included.xml'),
-            $out
-        );
-
-        $temporaryFilesDirectory = $this->export->getTemporaryFilesPathForExport();
-        $this->assertFileEquals(__DIR__ . '/../../Fixtures/Folders/fileadmin/user_upload/typo3_image2.jpg', $temporaryFilesDirectory . 'da9acdf1e105784a57bbffec9520969578287797');
-    }
-
-    protected function compileExportPagesAndRelatedTtContentWithImages()
-    {
-        $this->export->setRecordTypesIncludeFields(
-            [
-                'pages' => [
-                    'title',
-                    'deleted',
-                    'doktype',
-                    'hidden',
-                    'perms_everybody'
-                ],
-                'tt_content' => [
-                    'CType',
-                    'header',
-                    'header_link',
-                    'deleted',
-                    'hidden',
-                    'image',
-                    't3ver_oid'
-                ],
-                'sys_language' => [
-                    'uid',
-                    'pid',
-                    'hidden',
-                    'title',
-                    'flag'
-                ],
-                'sys_file_reference' => [
-                    'uid_local',
-                    'uid_foreign',
-                    'tablenames',
-                    'fieldname',
-                    'sorting_foreign',
-                    'table_local',
-                    'title',
-                    'description',
-                    'alternative',
-                    'link',
-                ],
-                'sys_file' => [
-                    'storage',
-                    'type',
-                    'metadata',
-                    'identifier',
-                    'identifier_hash',
-                    'folder_hash',
-                    'mime_type',
-                    'name',
-                    'sha1',
-                    'size',
-                    'creation_date',
-                    'modification_date',
-                ],
-                'sys_file_storage' => [
-                    'name',
-                    'description',
-                    'driver',
-                    'configuration',
-                    'is_default',
-                    'is_browsable',
-                    'is_public',
-                    'is_writable',
-                    'is_online'
-                ],
-                'sys_file_metadata' => [
-                    'title',
-                    'width',
-                    'height',
-                    'description',
-                    'alternative',
-                    'file',
-                    'sys_language_uid',
-                    'l10n_parent'
-                ]
-            ]
-        );
-
-        $this->export->relOnlyTables = [
-            'sys_file',
-            'sys_file_metadata',
-            'sys_file_storage',
-            'sys_language'
-        ];
-
-        $this->export->export_addRecord('pages', BackendUtility::getRecord('pages', 1));
-        $this->export->export_addRecord('pages', BackendUtility::getRecord('pages', 2));
-        $this->export->export_addRecord('tt_content', BackendUtility::getRecord('tt_content', 1));
-        $this->export->export_addRecord('sys_language', BackendUtility::getRecord('sys_language', 1));
-        $this->export->export_addRecord('sys_file_reference', BackendUtility::getRecord('sys_file_reference', 1));
-
-        $this->setPageTree(1, 1);
-
-        // After adding ALL records we set relations:
-        for ($a = 0; $a < 10; $a++) {
-            $addR = $this->export->export_addDBRelations($a);
-            if (empty($addR)) {
-                break;
-            }
-        }
-
-        $this->export->export_addFilesFromRelations();
-        $this->export->export_addFilesFromSysFilesRecords();
-    }
-}
diff --git a/typo3/sysext/impexp/Tests/Functional/Export/PagesAndTtContentWithImagesTest.php b/typo3/sysext/impexp/Tests/Functional/Export/PagesAndTtContentWithImagesTest.php
new file mode 100644 (file)
index 0000000..711e724
--- /dev/null
@@ -0,0 +1,229 @@
+<?php
+namespace TYPO3\CMS\Impexp\Tests\Functional\Export;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use TYPO3\CMS\Backend\Utility\BackendUtility;
+use TYPO3\CMS\Core\Utility\GeneralUtility;
+use TYPO3\CMS\Impexp\Export;
+use TYPO3\CMS\Impexp\Tests\Functional\AbstractImportExportTestCase;
+
+/**
+ * Test case
+ */
+class PagesAndTtContentWithImagesTest extends AbstractImportExportTestCase
+{
+    /**
+     * @var array
+     */
+    protected $pathsToLinkInTestInstance = [
+        'typo3/sysext/impexp/Tests/Functional/Fixtures/Folders/fileadmin/user_upload' => 'fileadmin/user_upload'
+    ];
+
+    protected function setUp()
+    {
+        parent::setUp();
+
+        $this->importDataSet(__DIR__ . '/../Fixtures/DatabaseImports/pages.xml');
+        $this->importDataSet(__DIR__ . '/../Fixtures/DatabaseImports/tt_content-with-image.xml');
+        $this->importDataSet(__DIR__ . '/../Fixtures/DatabaseImports/sys_language.xml');
+        $this->importDataSet(__DIR__ . '/../Fixtures/DatabaseImports/sys_file_metadata.xml');
+        $this->importDataSet(__DIR__ . '/../Fixtures/DatabaseImports/sys_file_reference.xml');
+        $this->importDataSet(__DIR__ . '/../Fixtures/DatabaseImports/sys_file_storage.xml');
+    }
+
+    /**
+     * @test
+     */
+    public function exportPagesAndRelatedTtContentWithImages()
+    {
+        $subject = GeneralUtility::makeInstance(Export::class);
+        $subject->init();
+
+        $this->importDataSet(__DIR__ . '/../Fixtures/DatabaseImports/sys_file.xml');
+
+        $this->compileExportPagesAndRelatedTtContentWithImages($subject);
+
+        $out = $subject->compileMemoryToFileContent('xml');
+
+        $errors = $subject->printErrorLog();
+        $this->assertSame('', $errors);
+
+        $this->assertXmlStringEqualsXmlFile(
+            __DIR__ . '/../Fixtures/XmlExports/' . $this->databasePlatform . '/pages-and-ttcontent-with-image.xml',
+            $out
+        );
+    }
+
+    /**
+     * @test
+     */
+    public function exportPagesAndRelatedTtContentWithImagesFromCorruptSysFileRecord()
+    {
+        $subject = GeneralUtility::makeInstance(Export::class);
+        $subject->init();
+
+        $this->importDataSet(__DIR__ . '/../Fixtures/DatabaseImports/sys_file_corrupt.xml');
+
+        $this->compileExportPagesAndRelatedTtContentWithImages($subject);
+
+        $out = $subject->compileMemoryToFileContent('xml');
+
+        $expectedErrors = [
+            'File size of 1:/user_upload/typo3_image2.jpg is not up-to-date in index! File added with current size.',
+            'File sha1 hash of 1:/user_upload/typo3_image2.jpg is not up-to-date in index! File added on current sha1.'
+        ];
+        $errors = $subject->errorLog;
+        $this->assertSame($expectedErrors, $errors);
+
+        $this->assertXmlStringEqualsXmlFile(
+            __DIR__ . '/../Fixtures/XmlExports/' . $this->databasePlatform . '/pages-and-ttcontent-with-corrupt-image.xml',
+            $out
+        );
+    }
+
+    /**
+     * @test
+     */
+    public function exportPagesAndRelatedTtContentWithImagesButNotIncluded()
+    {
+        $subject = GeneralUtility::makeInstance(Export::class);
+        $subject->init();
+
+        $this->importDataSet(__DIR__ . '/../Fixtures/DatabaseImports/sys_file.xml');
+
+        $subject->setSaveFilesOutsideExportFile(true);
+
+        $this->compileExportPagesAndRelatedTtContentWithImages($subject);
+
+        $out = $subject->compileMemoryToFileContent('xml');
+
+        $this->assertXmlStringEqualsXmlFile(
+            __DIR__ . '/../Fixtures/XmlExports/' . $this->databasePlatform . '/pages-and-ttcontent-with-image-but-not-included.xml',
+            $out
+        );
+
+        $temporaryFilesDirectory = $subject->getTemporaryFilesPathForExport();
+        $this->assertFileEquals(__DIR__ . '/../Fixtures/Folders/fileadmin/user_upload/typo3_image2.jpg', $temporaryFilesDirectory . 'da9acdf1e105784a57bbffec9520969578287797');
+    }
+
+    /**
+     * Add default set of records to export
+     *
+     * @param $subject Export
+     */
+    protected function compileExportPagesAndRelatedTtContentWithImages(Export $subject)
+    {
+        $subject->setRecordTypesIncludeFields(
+            [
+                'pages' => [
+                    'title',
+                    'deleted',
+                    'doktype',
+                    'hidden',
+                    'perms_everybody'
+                ],
+                'tt_content' => [
+                    'CType',
+                    'header',
+                    'header_link',
+                    'deleted',
+                    'hidden',
+                    'image',
+                    't3ver_oid'
+                ],
+                'sys_language' => [
+                    'uid',
+                    'pid',
+                    'hidden',
+                    'title',
+                    'flag'
+                ],
+                'sys_file_reference' => [
+                    'uid_local',
+                    'uid_foreign',
+                    'tablenames',
+                    'fieldname',
+                    'sorting_foreign',
+                    'table_local',
+                    'title',
+                    'description',
+                    'alternative',
+                    'link',
+                ],
+                'sys_file' => [
+                    'storage',
+                    'type',
+                    'metadata',
+                    'identifier',
+                    'identifier_hash',
+                    'folder_hash',
+                    'mime_type',
+                    'name',
+                    'sha1',
+                    'size',
+                    'creation_date',
+                    'modification_date',
+                ],
+                'sys_file_storage' => [
+                    'name',
+                    'description',
+                    'driver',
+                    'configuration',
+                    'is_default',
+                    'is_browsable',
+                    'is_public',
+                    'is_writable',
+                    'is_online'
+                ],
+                'sys_file_metadata' => [
+                    'title',
+                    'width',
+                    'height',
+                    'description',
+                    'alternative',
+                    'file',
+                    'sys_language_uid',
+                    'l10n_parent'
+                ]
+            ]
+        );
+
+        $subject->relOnlyTables = [
+            'sys_file',
+            'sys_file_metadata',
+            'sys_file_storage',
+            'sys_language'
+        ];
+
+        $subject->export_addRecord('pages', BackendUtility::getRecord('pages', 1));
+        $subject->export_addRecord('pages', BackendUtility::getRecord('pages', 2));
+        $subject->export_addRecord('tt_content', BackendUtility::getRecord('tt_content', 1));
+        $subject->export_addRecord('sys_language', BackendUtility::getRecord('sys_language', 1));
+        $subject->export_addRecord('sys_file_reference', BackendUtility::getRecord('sys_file_reference', 1));
+
+        $this->setPageTree($subject, 1, 1);
+
+        // After adding ALL records we set relations:
+        for ($a = 0; $a < 10; $a++) {
+            $addR = $subject->export_addDBRelations($a);
+            if (empty($addR)) {
+                break;
+            }
+        }
+
+        $subject->export_addFilesFromRelations();
+        $subject->export_addFilesFromSysFilesRecords();
+    }
+}
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/Database/irre_tutorial.xml b/typo3/sysext/impexp/Tests/Functional/Fixtures/Database/irre_tutorial.xml
deleted file mode 100644 (file)
index 319ce62..0000000
+++ /dev/null
@@ -1,694 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<dataset>
-       <pages>
-               <uid>1</uid>
-               <pid>0</pid>
-               <title>IRRE</title>
-               <doktype>1</doktype>
-               <deleted>0</deleted>
-               <perms_everybody>15</perms_everybody>
-       </pages>
-       <tt_content>
-               <uid>1</uid>
-               <pid>1</pid>
-               <CType>text</CType>
-               <header>Test content</header>
-               <deleted>0</deleted>
-               <t3ver_oid>0</t3ver_oid>
-               <t3ver_wsid>0</t3ver_wsid>
-               <tx_irretutorial_1nff_hotels>2</tx_irretutorial_1nff_hotels>
-               <tx_irretutorial_1ncsv_hotels>1,2</tx_irretutorial_1ncsv_hotels>
-               <tx_irretutorial_flexform><![CDATA[<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
-<T3FlexForms>
-    <data>
-        <sheet index="sDEF">
-            <language index="lDEF">
-                <field index="hotels">
-                    <value index="vDEF">0</value>
-                </field>
-            </language>
-        </sheet>
-    </data>
-</T3FlexForms>]]></tx_irretutorial_flexform>
-       </tt_content>
-       <tx_irretutorial_1ncsv_hotel>
-               <uid>1</uid>
-               <pid>1</pid>
-               <cruser_id>1</cruser_id>
-               <sys_language_uid>0</sys_language_uid>
-               <l18n_parent>0</l18n_parent>
-               <l18n_diffsource></l18n_diffsource>
-               <sorting>256</sorting>
-               <deleted>0</deleted>
-               <hidden>0</hidden>
-               <title>Hotel 1 (csv)</title>
-               <offers>1,2</offers>
-       </tx_irretutorial_1ncsv_hotel>
-       <tx_irretutorial_1ncsv_hotel>
-               <uid>2</uid>
-               <pid>1</pid>
-               <cruser_id>1</cruser_id>
-               <sys_language_uid>0</sys_language_uid>
-               <l18n_parent>0</l18n_parent>
-               <l18n_diffsource></l18n_diffsource>
-               <sorting>128</sorting>
-               <deleted>0</deleted>
-               <hidden>0</hidden>
-               <title>Hotel 2 (csv)</title>
-               <offers>3</offers>
-       </tx_irretutorial_1ncsv_hotel>
-       <tx_irretutorial_1ncsv_offer>
-               <uid>1</uid>
-               <pid>1</pid>
-               <cruser_id>1</cruser_id>
-               <sys_language_uid>0</sys_language_uid>
-               <l18n_parent>0</l18n_parent>
-               <l18n_diffsource></l18n_diffsource>
-               <sorting>256</sorting>
-               <deleted>0</deleted>
-               <hidden>0</hidden>
-               <title>Offer 1.1 (csv)</title>
-               <prices>1</prices>
-       </tx_irretutorial_1ncsv_offer>
-       <tx_irretutorial_1ncsv_offer>
-               <uid>2</uid>
-               <pid>1</pid>
-               <cruser_id>1</cruser_id>
-               <sys_language_uid>0</sys_language_uid>
-               <l18n_parent>0</l18n_parent>
-               <l18n_diffsource></l18n_diffsource>
-               <sorting>128</sorting>
-               <deleted>0</deleted>
-               <hidden>0</hidden>
-               <title>Offer 1.2 (csv)</title>
-               <prices>2</prices>
-       </tx_irretutorial_1ncsv_offer>
-       <tx_irretutorial_1ncsv_offer>
-               <uid>3</uid>
-               <pid>1</pid>
-               <cruser_id>1</cruser_id>
-               <sys_language_uid>0</sys_language_uid>
-               <l18n_parent>0</l18n_parent>
-               <l18n_diffsource></l18n_diffsource>
-               <sorting>64</sorting>
-               <deleted>0</deleted>
-               <hidden>0</hidden>
-               <title>Offer 2.2 (csv)</title>
-               <prices>3</prices>
-       </tx_irretutorial_1ncsv_offer>
-       <tx_irretutorial_1ncsv_price>
-               <uid>1</uid>
-               <pid>1</pid>
-               <cruser_id>1</cruser_id>
-               <sys_language_uid>0</sys_language_uid>
-               <l18n_parent>0</l18n_parent>
-               <l18n_diffsource></l18n_diffsource>
-               <sorting>256</sorting>
-               <deleted>0</deleted>
-               <hidden>0</hidden>
-               <title>Price 1.1.1 (csv)</title>
-               <price>567.00</price>
-       </tx_irretutorial_1ncsv_price>
-       <tx_irretutorial_1ncsv_price>
-               <uid>2</uid>
-               <pid>1</pid>
-               <cruser_id>1</cruser_id>
-               <sys_language_uid>0</sys_language_uid>
-               <l18n_parent>0</l18n_parent>
-               <l18n_diffsource></l18n_diffsource>
-               <sorting>128</sorting>
-               <deleted>0</deleted>
-               <hidden>0</hidden>
-               <title>Price 1.2.1 (csv)</title>
-               <price>90.00</price>
-       </tx_irretutorial_1ncsv_price>
-       <tx_irretutorial_1ncsv_price>
-               <uid>3</uid>
-               <pid>1</pid>
-               <cruser_id>1</cruser_id>
-               <sys_language_uid>0</sys_language_uid>
-               <l18n_parent>0</l18n_parent>
-               <l18n_diffsource></l18n_diffsource>
-               <sorting>64</sorting>
-               <deleted>0</deleted>
-               <hidden>0</hidden>
-               <title>Price 2.2.1 (csv)</title>
-               <price>112.00</price>
-       </tx_irretutorial_1ncsv_price>
-       <tx_irretutorial_1nff_hotel>
-               <uid>1</uid>
-               <pid>1</pid>
-               <cruser_id>1</cruser_id>
-               <sys_language_uid>0</sys_language_uid>
-               <l18n_parent>0</l18n_parent>
-               <l18n_diffsource></l18n_diffsource>
-               <sorting>1</sorting>
-               <deleted>0</deleted>
-               <hidden>0</hidden>
-               <parentid>1</parentid>
-               <parenttable>tt_content</parenttable>
-               <parentidentifier></parentidentifier>
-               <title>Hotel 1 (nff)</title>
-               <offers>2</offers>
-       </tx_irretutorial_1nff_hotel>
-       <tx_irretutorial_1nff_hotel>
-               <uid>2</uid>
-               <pid>1</pid>
-               <cruser_id>1</cruser_id>
-               <sys_language_uid>0</sys_language_uid>
-               <l18n_parent>0</l18n_parent>
-               <l18n_diffsource></l18n_diffsource>
-               <sorting>2</sorting>
-               <deleted>0</deleted>
-               <hidden>0</hidden>
-               <parentid>1</parentid>
-               <parenttable>tt_content</parenttable>
-               <parentidentifier></parentidentifier>
-               <title>Hotel 2 (nff)</title>
-               <offers>1</offers>
-       </tx_irretutorial_1nff_hotel>
-       <tx_irretutorial_1nff_offer>
-               <uid>1</uid>
-               <pid>1</pid>
-               <cruser_id>1</cruser_id>
-               <sys_language_uid>0</sys_language_uid>
-               <l18n_parent>0</l18n_parent>
-               <l18n_diffsource></l18n_diffsource>
-               <sorting>1</sorting>
-               <deleted>0</deleted>
-               <hidden>0</hidden>
-               <parentid>1</parentid>
-               <parenttable>tx_irretutorial_1nff_hotel</parenttable>
-               <parentidentifier></parentidentifier>
-               <title>Offer 1.1 (nff)</title>
-               <prices>2</prices>
-       </tx_irretutorial_1nff_offer>
-       <tx_irretutorial_1nff_offer>
-               <uid>2</uid>
-               <pid>1</pid>
-               <cruser_id>1</cruser_id>
-               <sys_language_uid>0</sys_language_uid>
-               <l18n_parent>0</l18n_parent>
-               <l18n_diffsource></l18n_diffsource>
-               <sorting>2</sorting>
-               <deleted>0</deleted>
-               <hidden>0</hidden>
-               <parentid>1</parentid>
-               <parenttable>tx_irretutorial_1nff_hotel</parenttable>
-               <parentidentifier></parentidentifier>
-               <title>Offer 1.2 (nff)</title>
-               <prices>1</prices>
-       </tx_irretutorial_1nff_offer>
-       <tx_irretutorial_1nff_offer>
-               <uid>3</uid>
-               <pid>1</pid>
-               <cruser_id>1</cruser_id>
-               <sys_language_uid>0</sys_language_uid>
-               <l18n_parent>0</l18n_parent>
-               <l18n_diffsource></l18n_diffsource>
-               <sorting>1</sorting>
-               <deleted>0</deleted>
-               <hidden>0</hidden>
-               <parentid>2</parentid>
-               <parenttable>tx_irretutorial_1nff_hotel</parenttable>
-               <parentidentifier></parentidentifier>
-               <title>Offer 2.1 (nff)</title>
-               <prices>1</prices>
-       </tx_irretutorial_1nff_offer>
-       <tx_irretutorial_1nff_price>
-               <uid>1</uid>
-               <pid>1</pid>
-               <cruser_id>1</cruser_id>
-               <sys_language_uid>0</sys_language_uid>
-               <l18n_parent>0</l18n_parent>
-               <l18n_diffsource></l18n_diffsource>
-               <sorting>1</sorting>
-               <deleted>0</deleted>
-               <hidden>0</hidden>
-               <parentid>1</parentid>
-               <parenttable>tx_irretutorial_1nff_offer</parenttable>
-               <parentidentifier></parentidentifier>
-               <title>Price 1.1.1 (nff)</title>
-               <price>4.00</price>
-       </tx_irretutorial_1nff_price>
-       <tx_irretutorial_1nff_price>
-               <uid>2</uid>
-               <pid>1</pid>
-               <cruser_id>1</cruser_id>
-               <sys_language_uid>0</sys_language_uid>
-               <l18n_parent>0</l18n_parent>
-               <l18n_diffsource></l18n_diffsource>
-               <sorting>2</sorting>
-               <deleted>0</deleted>
-               <hidden>0</hidden>
-               <parentid>1</parentid>
-               <parenttable>tx_irretutorial_1nff_offer</parenttable>
-               <parentidentifier></parentidentifier>
-               <title>Price 1.1.2 (nff)</title>
-               <price>869.00</price>
-       </tx_irretutorial_1nff_price>
-       <tx_irretutorial_1nff_price>
-               <uid>3</uid>
-               <pid>1</pid>
-               <cruser_id>1</cruser_id>
-               <sys_language_uid>0</sys_language_uid>
-               <l18n_parent>0</l18n_parent>
-               <l18n_diffsource></l18n_diffsource>
-               <sorting>1</sorting>
-               <deleted>0</deleted>
-               <hidden>0</hidden>
-               <parentid>2</parentid>
-               <parenttable>tx_irretutorial_1nff_offer</parenttable>
-               <parentidentifier></parentidentifier>
-               <title>Price 1.2.1 (nff)</title>
-               <price>678.00</price>
-       </tx_irretutorial_1nff_price>
-       <tx_irretutorial_1nff_price>
-               <uid>4</uid>
-               <pid>1</pid>
-               <cruser_id>1</cruser_id>
-               <sys_language_uid>0</sys_language_uid>
-               <l18n_parent>0</l18n_parent>
-               <l18n_diffsource></l18n_diffsource>
-               <sorting>1</sorting>
-               <deleted>0</deleted>
-               <hidden>0</hidden>
-               <parentid>3</parentid>
-               <parenttable>tx_irretutorial_1nff_offer</parenttable>
-               <parentidentifier></parentidentifier>
-               <title>Price 2.1.1 (nff)</title>
-               <price>5467567.00</price>
-       </tx_irretutorial_1nff_price>
-       <tx_irretutorial_mnasym_hotel>
-               <uid>1</uid>
-               <pid>1</pid>
-               <cruser_id>1</cruser_id>
-               <sys_language_uid>0</sys_language_uid>
-               <l18n_parent>0</l18n_parent>
-               <l18n_diffsource></l18n_diffsource>
-               <sorting>256</sorting>
-               <deleted>0</deleted>
-               <hidden>0</hidden>
-               <title>Hotel 1 (m:n ASym)</title>
-               <offers>2</offers>
-       </tx_irretutorial_mnasym_hotel>
-       <tx_irretutorial_mnasym_hotel_offer_rel>
-               <uid>1</uid>
-               <pid>1</pid>
-               <cruser_id>1</cruser_id>
-               <sys_language_uid>0</sys_language_uid>
-               <l18n_parent>0</l18n_parent>
-               <l18n_diffsource></l18n_diffsource>
-               <deleted>0</deleted>
-               <hidden>0</hidden>
-               <hotelid>1</hotelid>
-               <offerid>2</offerid>
-               <hotelsort>2</hotelsort>
-               <offersort>1</offersort>
-               <prices>1</prices>
-       </tx_irretutorial_mnasym_hotel_offer_rel>
-       <tx_irretutorial_mnasym_hotel_offer_rel>
-               <uid>2</uid>
-               <pid>1</pid>
-               <cruser_id>1</cruser_id>
-               <sys_language_uid>0</sys_language_uid>
-               <l18n_parent>0</l18n_parent>
-               <l18n_diffsource></l18n_diffsource>
-               <deleted>0</deleted>
-               <hidden>0</hidden>
-               <hotelid>1</hotelid>
-               <offerid>1</offerid>
-               <hotelsort>1</hotelsort>
-               <offersort>1</offersort>
-               <prices>1</prices>
-       </tx_irretutorial_mnasym_hotel_offer_rel>
-       <tx_irretutorial_mnasym_offer>
-               <uid>1</uid>
-               <pid>1</pid>
-               <cruser_id>1</cruser_id>
-               <sys_language_uid>0</sys_language_uid>
-               <l18n_parent>0</l18n_parent>
-               <l18n_diffsource></l18n_diffsource>
-               <sorting>256</sorting>
-               <deleted>0</deleted>
-               <hidden>0</hidden>
-               <title>Offer 1 (m:n ASym)</title>
-               <hotels>1</hotels>
-       </tx_irretutorial_mnasym_offer>
-       <tx_irretutorial_mnasym_offer>
-               <uid>2</uid>
-               <pid>1</pid>
-               <cruser_id>1</cruser_id>
-               <sys_language_uid>0</sys_language_uid>
-               <l18n_parent>0</l18n_parent>
-               <l18n_diffsource></l18n_diffsource>
-               <sorting>128</sorting>
-               <deleted>0</deleted>
-               <hidden>0</hidden>
-               <title>Offer 2 (m:n ASym)</title>
-               <hotels>1</hotels>
-       </tx_irretutorial_mnasym_offer>
-       <tx_irretutorial_mnasym_price>
-               <uid>1</uid>
-               <pid>1</pid>
-               <cruser_id>1</cruser_id>
-               <sys_language_uid>0</sys_language_uid>
-               <l18n_parent>0</l18n_parent>
-               <l18n_diffsource></l18n_diffsource>
-               <sorting>1</sorting>
-               <deleted>0</deleted>
-               <hidden>0</hidden>
-               <parentid>1</parentid>
-               <title>Price 1 1:2 (m:n ASym)</title>
-               <price>678.00</price>
-       </tx_irretutorial_mnasym_price>
-       <tx_irretutorial_mnasym_price>
-               <uid>2</uid>
-               <pid>1</pid>
-               <cruser_id>1</cruser_id>
-               <sys_language_uid>0</sys_language_uid>
-               <l18n_parent>0</l18n_parent>
-               <l18n_diffsource></l18n_diffsource>
-               <sorting>1</sorting>
-               <deleted>0</deleted>
-               <hidden>0</hidden>
-               <parentid>2</parentid>
-               <title>Price 2 1:1 (m:n ASym)</title>
-               <price>45.00</price>
-       </tx_irretutorial_mnasym_price>
-       <tx_irretutorial_mnattr_hotel>
-               <uid>1</uid>
-               <pid>1</pid>
-               <cruser_id>1</cruser_id>
-               <sys_language_uid>0</sys_language_uid>
-               <l18n_parent>0</l18n_parent>
-               <l18n_diffsource></l18n_diffsource>
-               <sorting>256</sorting>
-               <deleted>0</deleted>
-               <hidden>0</hidden>
-               <title>Hotel 1 (m:n Attr)</title>
-               <offers>1</offers>
-       </tx_irretutorial_mnattr_hotel>
-       <tx_irretutorial_mnattr_hotel>
-               <uid>2</uid>
-               <pid>1</pid>
-               <cruser_id>1</cruser_id>
-               <sys_language_uid>0</sys_language_uid>
-               <l18n_parent>0</l18n_parent>
-               <l18n_diffsource></l18n_diffsource>
-               <sorting>512</sorting>
-               <deleted>0</deleted>
-               <hidden>0</hidden>
-               <title>Hotel 2 (m:n Attr)</title>
-               <offers>1</offers>
-       </tx_irretutorial_mnattr_hotel>
-       <tx_irretutorial_mnattr_hotel_offer_rel>
-               <uid>1</uid>
-               <pid>1</pid>
-               <cruser_id>1</cruser_id>
-               <sys_language_uid>0</sys_language_uid>
-               <l18n_parent>0</l18n_parent>
-               <l18n_diffsource></l18n_diffsource>
-               <deleted>0</deleted>
-               <hidden>0</hidden>
-               <hotelid>1</hotelid>
-               <offerid>1</offerid>
-               <hotelsort>1</hotelsort>
-               <offersort>0</offersort>
-               <quality>2</quality>
-               <allincl>1</allincl>
-       </tx_irretutorial_mnattr_hotel_offer_rel>
-       <tx_irretutorial_mnattr_hotel_offer_rel>
-               <uid>2</uid>
-               <pid>1</pid>
-               <cruser_id>1</cruser_id>
-               <sys_language_uid>0</sys_language_uid>
-               <l18n_parent>0</l18n_parent>
-               <l18n_diffsource></l18n_diffsource>
-               <deleted>0</deleted>
-               <hidden>0</hidden>
-               <hotelid>2</hotelid>
-               <offerid>2</offerid>
-               <hotelsort>1</hotelsort>
-               <offersort>0</offersort>
-               <quality>4</quality>
-               <allincl>0</allincl>
-       </tx_irretutorial_mnattr_hotel_offer_rel>
-       <tx_irretutorial_mnattr_offer>
-               <uid>1</uid>
-               <pid>1</pid>
-               <cruser_id>1</cruser_id>
-               <sys_language_uid>0</sys_language_uid>
-               <l18n_parent>0</l18n_parent>
-               <l18n_diffsource></l18n_diffsource>
-               <sorting>256</sorting>
-               <deleted>0</deleted>
-               <hidden>0</hidden>
-               <title>Offer 1 (m:n Attr)</title>
-               <hotels>0</hotels>
-       </tx_irretutorial_mnattr_offer>
-       <tx_irretutorial_mnattr_offer>
-               <uid>2</uid>
-               <pid>1</pid>
-               <cruser_id>1</cruser_id>
-               <sys_language_uid>0</sys_language_uid>
-               <l18n_parent>0</l18n_parent>
-               <l18n_diffsource></l18n_diffsource>
-               <sorting>512</sorting>
-               <deleted>0</deleted>
-               <hidden>0</hidden>
-               <title>Offer 2 (m:n Attr)</title>
-               <hotels>0</hotels>
-       </tx_irretutorial_mnattr_offer>
-       <tx_irretutorial_mnmmasym_hotel>
-               <uid>1</uid>
-               <pid>1</pid>
-               <cruser_id>1</cruser_id>
-               <sys_language_uid>0</sys_language_uid>
-               <l18n_parent>0</l18n_parent>
-               <l18n_diffsource></l18n_diffsource>
-               <sorting>256</sorting>
-               <deleted>0</deleted>
-               <hidden>0</hidden>
-               <title>Hotel 1 (m:n (MM) ASym)</title>
-               <offers>2</offers>
-       </tx_irretutorial_mnmmasym_hotel>
-       <tx_irretutorial_mnmmasym_hotel>
-               <uid>2</uid>
-               <pid>1</pid>
-               <cruser_id>1</cruser_id>
-               <sys_language_uid>0</sys_language_uid>
-               <l18n_parent>0</l18n_parent>
-               <l18n_diffsource></l18n_diffsource>
-               <sorting>512</sorting>
-               <deleted>0</deleted>
-               <hidden>0</hidden>
-               <title>Hotel 2 (m:n (MM) ASym)</title>
-               <offers>1</offers>
-       </tx_irretutorial_mnmmasym_hotel>
-       <tx_irretutorial_mnmmasym_hotel_offer_rel>
-               <uid>1</uid>
-               <uid_local>1</uid_local>
-               <uid_foreign>1</uid_foreign>
-               <tablenames></tablenames>
-               <sorting>1</sorting>
-               <sorting_foreign>0</sorting_foreign>
-               <ident></ident>
-       </tx_irretutorial_mnmmasym_hotel_offer_rel>
-       <tx_irretutorial_mnmmasym_hotel_offer_rel>
-               <uid>2</uid>
-               <uid_local>1</uid_local>
-               <uid_foreign>2</uid_foreign>
-               <tablenames></tablenames>
-               <sorting>2</sorting>
-               <sorting_foreign>0</sorting_foreign>
-               <ident></ident>
-       </tx_irretutorial_mnmmasym_hotel_offer_rel>
-       <tx_irretutorial_mnmmasym_hotel_offer_rel>
-               <uid>3</uid>
-               <uid_local>2</uid_local>
-               <uid_foreign>3</uid_foreign>
-               <tablenames></tablenames>
-               <sorting>1</sorting>
-               <sorting_foreign>0</sorting_foreign>
-               <ident></ident>
-       </tx_irretutorial_mnmmasym_hotel_offer_rel>
-       <tx_irretutorial_mnmmasym_offer>
-               <uid>1</uid>
-               <pid>1</pid>
-               <cruser_id>1</cruser_id>
-               <sys_language_uid>0</sys_language_uid>
-               <l18n_parent>0</l18n_parent>
-               <l18n_diffsource></l18n_diffsource>
-               <sorting>256</sorting>
-               <deleted>0</deleted>
-               <hidden>0</hidden>
-               <title>Offer 1.1 (m:n (MM) ASym)</title>
-               <hotels>0</hotels>
-               <prices>1</prices>
-       </tx_irretutorial_mnmmasym_offer>
-       <tx_irretutorial_mnmmasym_offer>
-               <uid>2</uid>
-               <pid>1</pid>
-               <cruser_id>1</cruser_id>
-               <sys_language_uid>0</sys_language_uid>
-               <l18n_parent>0</l18n_parent>
-               <l18n_diffsource></l18n_diffsource>
-               <sorting>128</sorting>
-               <deleted>0</deleted>
-               <hidden>0</hidden>
-               <title>Offer 1.2 (m:n (MM) ASym)</title>
-               <hotels>0</hotels>
-               <prices>1</prices>
-       </tx_irretutorial_mnmmasym_offer>
-       <tx_irretutorial_mnmmasym_offer>
-               <uid>3</uid>
-               <pid>1</pid>
-               <cruser_id>1</cruser_id>
-               <sys_language_uid>0</sys_language_uid>
-               <l18n_parent>0</l18n_parent>
-               <l18n_diffsource></l18n_diffsource>
-               <sorting>64</sorting>
-               <deleted>0</deleted>
-               <hidden>0</hidden>
-               <title>Offer 2.1 (m:n (MM) ASym)</title>
-               <hotels>0</hotels>
-               <prices>1</prices>
-       </tx_irretutorial_mnmmasym_offer>
-       <tx_irretutorial_mnmmasym_offer_price_rel>
-               <uid>1</uid>
-               <uid_local>1</uid_local>
-               <uid_foreign>1</uid_foreign>
-               <tablenames></tablenames>
-               <sorting>1</sorting>
-               <sorting_foreign>0</sorting_foreign>
-               <ident></ident>
-       </tx_irretutorial_mnmmasym_offer_price_rel>
-       <tx_irretutorial_mnmmasym_offer_price_rel>
-               <uid>2</uid>
-               <uid_local>2</uid_local>
-               <uid_foreign>2</uid_foreign>
-               <tablenames></tablenames>
-               <sorting>1</sorting>
-               <sorting_foreign>0</sorting_foreign>
-               <ident></ident>
-       </tx_irretutorial_mnmmasym_offer_price_rel>
-       <tx_irretutorial_mnmmasym_offer_price_rel>
-               <uid>3</uid>
-               <uid_local>3</uid_local>
-               <uid_foreign>3</uid_foreign>
-               <tablenames></tablenames>
-               <sorting>1</sorting>
-               <sorting_foreign>0</sorting_foreign>
-               <ident></ident>
-       </tx_irretutorial_mnmmasym_offer_price_rel>
-       <tx_irretutorial_mnmmasym_price>
-               <uid>1</uid>
-               <pid>1</pid>
-               <cruser_id>1</cruser_id>
-               <sys_language_uid>0</sys_language_uid>
-               <l18n_parent>0</l18n_parent>
-               <l18n_diffsource></l18n_diffsource>
-               <sorting>256</sorting>
-               <deleted>0</deleted>
-               <hidden>0</hidden>
-               <title>Price 1.1.1 (m:n (MM) ASym)</title>
-               <price>567.00</price>
-               <offers>0</offers>
-       </tx_irretutorial_mnmmasym_price>
-       <tx_irretutorial_mnmmasym_price>
-               <uid>2</uid>
-               <pid>1</pid>
-               <cruser_id>1</cruser_id>
-               <sys_language_uid>0</sys_language_uid>
-               <l18n_parent>0</l18n_parent>
-               <l18n_diffsource></l18n_diffsource>
-               <sorting>128</sorting>
-               <deleted>0</deleted>
-               <hidden>0</hidden>
-               <title>Price 1.2.2 (m:n (MM) ASym)</title>
-               <price>567.00</price>
-               <offers>0</offers>
-       </tx_irretutorial_mnmmasym_price>
-       <tx_irretutorial_mnmmasym_price>
-               <uid>3</uid>
-               <pid>1</pid>
-               <cruser_id>1</cruser_id>
-               <sys_language_uid>0</sys_language_uid>
-               <l18n_parent>0</l18n_parent>
-               <l18n_diffsource></l18n_diffsource>
-               <sorting>64</sorting>
-               <deleted>0</deleted>
-               <hidden>0</hidden>
-               <title>Price (m:n (MM) ASym)</title>
-               <price>223.00</price>
-               <offers>0</offers>
-       </tx_irretutorial_mnmmasym_price>
-       <tx_irretutorial_mnsym_hotel>
-               <uid>1</uid>
-               <pid>1</pid>
-               <cruser_id>1</cruser_id>
-               <sys_language_uid>0</sys_language_uid>
-               <l18n_parent>0</l18n_parent>
-               <l18n_diffsource></l18n_diffsource>
-               <sorting>256</sorting>
-               <deleted>0</deleted>
-               <hidden>0</hidden>
-               <title>Hotel 1 (mm sym)</title>
-               <branches>2</branches>
-       </tx_irretutorial_mnsym_hotel>
-       <tx_irretutorial_mnsym_hotel>
-               <uid>2</uid>
-               <pid>1</pid>
-               <cruser_id>1</cruser_id>
-               <sys_language_uid>0</sys_language_uid>
-               <l18n_parent>0</l18n_parent>
-               <l18n_diffsource></l18n_diffsource>
-               <sorting>128</sorting>
-               <deleted>0</deleted>
-               <hidden>0</hidden>
-               <title>Hotel Branch 1.1 (mm sym)</title>
-               <branches>1</branches>
-       </tx_irretutorial_mnsym_hotel>
-       <tx_irretutorial_mnsym_hotel>
-               <uid>3</uid>
-               <pid>1</pid>
-               <cruser_id>1</cruser_id>
-               <sys_language_uid>0</sys_language_uid>
-               <l18n_parent>0</l18n_parent>
-               <l18n_diffsource></l18n_diffsource>
-               <sorting>192</sorting>
-               <deleted>0</deleted>
-               <hidden>0</hidden>
-               <title>Hotel branch 1.2 (mm sym)</title>
-               <branches>0</branches>
-       </tx_irretutorial_mnsym_hotel>
-       <tx_irretutorial_mnsym_hotel_rel>
-               <uid>1</uid>
-               <pid>1</pid>
-               <cruser_id>1</cruser_id>
-               <sys_language_uid>0</sys_language_uid>
-               <l18n_parent>0</l18n_parent>
-               <l18n_diffsource></l18n_diffsource>
-               <deleted>0</deleted>
-               <hidden>0</hidden>
-               <hotelid>1</hotelid>
-               <branchid>2</branchid>
-               <hotelsort>1</hotelsort>
-               <branchsort>1</branchsort>
-       </tx_irretutorial_mnsym_hotel_rel>
-       <tx_irretutorial_mnsym_hotel_rel>
-               <uid>2</uid>
-               <pid>1</pid>
-               <cruser_id>1</cruser_id>
-               <sys_language_uid>0</sys_language_uid>
-               <l18n_parent>0</l18n_parent>
-               <l18n_diffsource></l18n_diffsource>
-               <deleted>0</deleted>
-               <hidden>0</hidden>
-               <hotelid>1</hotelid>
-               <branchid>3</branchid>
-               <hotelsort>2</hotelsort>
-               <branchsort>0</branchsort>
-       </tx_irretutorial_mnsym_hotel_rel>
-</dataset>
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/Database/pages.xml b/typo3/sysext/impexp/Tests/Functional/Fixtures/Database/pages.xml
deleted file mode 100644 (file)
index 8f5b293..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<dataset>
-       <pages>
-               <uid>1</uid>
-               <pid>0</pid>
-               <title>Root</title>
-               <doktype>1</doktype>
-               <deleted>0</deleted>
-               <perms_everybody>15</perms_everybody>
-       </pages>
-       <pages>
-               <uid>2</uid>
-               <pid>1</pid>
-               <title>Dummy 1-2</title>
-               <doktype>1</doktype>
-               <deleted>0</deleted>
-               <perms_everybody>15</perms_everybody>
-       </pages>
-</dataset>
\ No newline at end of file
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/Database/sys_file.xml b/typo3/sysext/impexp/Tests/Functional/Fixtures/Database/sys_file.xml
deleted file mode 100644 (file)
index 7d6ecab..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<dataset>
-       <sys_file>
-               <uid>1</uid>
-               <pid>0</pid>
-               <storage>1</storage>
-               <type>2</type>
-               <identifier>/user_upload/typo3_image2.jpg</identifier>
-               <identifier_hash>f90bb9a35622f35b5279195e324eddbaec8164b2</identifier_hash>
-               <folder_hash>19669f1e02c2f16705ec7587044c66443be70725</folder_hash>
-               <extension>jpg</extension>
-               <mime_type>image/jpeg</mime_type>
-               <name>typo3_image2.jpg</name>
-               <sha1>da9acdf1e105784a57bbffec9520969578287797</sha1>
-               <size>7958</size>
-               <creation_date>1389878273</creation_date>
-               <modification_date>1389878273</modification_date>
-       </sys_file>
-       <sys_file>
-               <uid>2</uid>
-               <pid>0</pid>
-               <storage>1</storage>
-               <type>2</type>
-               <identifier>/user_upload/typo3_image3.jpg</identifier>
-               <identifier_hash>25777b72e5e1cbed2d1b33e4fe5b737304b5bd28</identifier_hash>
-               <folder_hash>19669f1e02c2f16705ec7587044c66443be70725</folder_hash>
-               <extension>jpg</extension>
-               <mime_type>image/jpeg</mime_type>
-               <name>typo3_image3.jpg</name>
-               <sha1>e873c1e2ffd0f191e183a1057de3eef4d62e782d</sha1>
-               <size>5565</size>
-               <creation_date>1393346082</creation_date>
-               <modification_date>1392907534</modification_date>
-       </sys_file>
-       <sys_file>
-               <uid>3</uid>
-               <pid>0</pid>
-               <storage>1</storage>
-               <type>2</type>
-               <identifier>/user_upload/typo3_image5.jpg</identifier>
-               <identifier_hash>8180e85d25c96697ec9d2004683216831b91ffc1</identifier_hash>
-               <folder_hash>19669f1e02c2f16705ec7587044c66443be70725</folder_hash>
-               <extension>jpg</extension>
-               <mime_type>image/jpeg</mime_type>
-               <name>typo3_image5.jpg</name>
-               <sha1>c3511df85d21bc578faf71c6a19eeb3ff44af370</sha1>
-               <size>7425</size>
-               <creation_date>1393432184</creation_date>
-               <modification_date>1393432183</modification_date>
-       </sys_file>
-</dataset>
\ No newline at end of file
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/Database/sys_file_corrupt.xml b/typo3/sysext/impexp/Tests/Functional/Fixtures/Database/sys_file_corrupt.xml
deleted file mode 100644 (file)
index fb6cb55..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<dataset>
-       <sys_file>
-               <uid>1</uid>
-               <pid>0</pid>
-               <storage>1</storage>
-               <type>2</type>
-               <identifier>/user_upload/typo3_image2.jpg</identifier>
-               <identifier_hash>f90bb9a35622f35b5279195e324eddbaec8164b2</identifier_hash>
-               <folder_hash>19669f1e02c2f16705ec7587044c66443be70725</folder_hash>
-               <extension>jpg</extension>
-               <mime_type>image/jpeg</mime_type>
-               <name>typo3_image2.jpg</name>
-               <sha1>Xa9acdf1e105784a57bbffec9520969578287797</sha1>
-               <size>1958</size>
-               <creation_date>1389878273</creation_date>
-               <modification_date>1389878273</modification_date>
-       </sys_file>
-</dataset>
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/Database/sys_file_metadata.xml b/typo3/sysext/impexp/Tests/Functional/Fixtures/Database/sys_file_metadata.xml
deleted file mode 100644 (file)
index 708652c..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<dataset>
-       <sys_file_metadata>
-               <uid>1</uid>
-               <pid>0</pid>
-               <file>1</file>
-               <title>Dummy image</title>
-               <width>400</width>
-               <height>300</height>
-               <description>This is a dummy image.</description>
-               <alternative>Photo of program code</alternative>
-               <sys_language_uid>0</sys_language_uid>
-               <l10n_parent>0</l10n_parent>
-               <l10n_diffsource></l10n_diffsource>
-       </sys_file_metadata>
-       <sys_file_metadata>
-               <uid>2</uid>
-               <pid>0</pid>
-               <file>1</file>
-               <title>Beispiel Bild</title>
-               <width>0</width>
-               <height>0</height>
-               <description>Nur ein Beispielbild.</description>
-               <alternative>Foto von Programmcode</alternative>
-               <sys_language_uid>1</sys_language_uid>
-               <l10n_parent>1</l10n_parent>
-               <l10n_diffsource></l10n_diffsource>
-       </sys_file_metadata>
-</dataset>
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/Database/sys_file_reference.xml b/typo3/sysext/impexp/Tests/Functional/Fixtures/Database/sys_file_reference.xml
deleted file mode 100644 (file)
index 9dff3f5..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<dataset>
-       <sys_file_reference>
-               <uid>1</uid>
-               <pid>1</pid>
-               <uid_local>1</uid_local>
-               <uid_foreign>1</uid_foreign>
-               <tablenames>tt_content</tablenames>
-               <fieldname>image</fieldname>
-               <table_local>sys_file</table_local>
-               <l10n_diffsource></l10n_diffsource>
-       </sys_file_reference>
-</dataset>
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/Database/sys_file_storage.xml b/typo3/sysext/impexp/Tests/Functional/Fixtures/Database/sys_file_storage.xml
deleted file mode 100644 (file)
index b9a212e..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<dataset>
-       <sys_file_storage>
-               <uid>1</uid>
-               <pid>0</pid>
-               <name>fileadmin/ (auto-created)</name>
-               <driver>Local</driver>
-               <configuration><![CDATA[<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
-<T3FlexForms>
-       <data>
-               <sheet index="sDEF">
-                       <language index="lDEF">
-                               <field index="basePath">
-                                       <value index="vDEF">fileadmin/</value>
-                               </field>
-                               <field index="pathType">
-                                       <value index="vDEF">relative</value>
-                               </field>
-                               <field index="caseSensitive">
-                                       <value index="vDEF">1</value>
-                               </field>
-                       </language>
-               </sheet>
-       </data>
-</T3FlexForms>]]></configuration>
-               <is_browsable>1</is_browsable>
-               <is_public>1</is_public>
-               <is_writable>1</is_writable>
-               <is_online>1</is_online>
-       </sys_file_storage>
-</dataset>
\ No newline at end of file
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/Database/sys_language.xml b/typo3/sysext/impexp/Tests/Functional/Fixtures/Database/sys_language.xml
deleted file mode 100644 (file)
index cdea9af..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<dataset>
-       <sys_language>
-               <uid>1</uid>
-               <pid>0</pid>
-               <hidden>0</hidden>
-               <title>Deutsch</title>
-               <flag>de</flag>
-               <static_lang_isocode>0</static_lang_isocode>
-       </sys_language>
-</dataset>
\ No newline at end of file
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/Database/tt_content-with-image.xml b/typo3/sysext/impexp/Tests/Functional/Fixtures/Database/tt_content-with-image.xml
deleted file mode 100644 (file)
index d60d2ac..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<dataset>
-       <tt_content>
-               <uid>1</uid>
-               <pid>1</pid>
-               <CType>textpic</CType>
-               <header>Test content</header>
-               <header_link>file:1</header_link>
-               <image>1</image>
-               <deleted>0</deleted>
-               <t3ver_oid>0</t3ver_oid>
-               <t3ver_wsid>0</t3ver_wsid>
-       </tt_content>
-</dataset>
\ No newline at end of file
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/Database/tt_content-with-rte-image-n-file-link.xml b/typo3/sysext/impexp/Tests/Functional/Fixtures/Database/tt_content-with-rte-image-n-file-link.xml
deleted file mode 100644 (file)
index bae95f8..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<dataset>
-       <tt_content>
-               <uid>1</uid>
-               <pid>2</pid>
-               <CType>text</CType>
-               <header>Text element with image in RTE</header>
-               <bodytext><![CDATA[<img src="fileadmin/_processed_/csm_typo3_image2_5c2670fd59.jpg" title="typo3_image2.jpg" data-htmlarea-file-uid="1" height="225" width="300" alt="" style="" />&nbsp;&nbsp;And here a <link file:2 - download "Initiates file download">link to an image</link>.]]></bodytext>
-               <deleted>0</deleted>
-               <t3ver_oid>0</t3ver_oid>
-               <t3ver_wsid>0</t3ver_wsid>
-       </tt_content>
-</dataset>
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/Database/tt_content.xml b/typo3/sysext/impexp/Tests/Functional/Fixtures/Database/tt_content.xml
deleted file mode 100644 (file)
index 420f7cb..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<dataset>
-       <tt_content>
-               <uid>1</uid>
-               <pid>1</pid>
-               <CType>text</CType>
-               <header>Test content</header>
-               <header_link>file:2</header_link>
-               <deleted>0</deleted>
-               <t3ver_oid>0</t3ver_oid>
-               <t3ver_wsid>0</t3ver_wsid>
-       </tt_content>
-       <tt_content>
-               <uid>2</uid>
-               <pid>1</pid>
-               <CType>text</CType>
-               <header>Test content 2</header>
-               <header_link>file:4</header_link>
-               <deleted>0</deleted>
-               <t3ver_oid>0</t3ver_oid>
-               <t3ver_wsid>0</t3ver_wsid>
-       </tt_content>
-</dataset>
\ No newline at end of file
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/Database/tx_impexpgroupfiles_item.xml b/typo3/sysext/impexp/Tests/Functional/Fixtures/Database/tx_impexpgroupfiles_item.xml
deleted file mode 100644 (file)
index cde3a76..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<dataset>
-       <tx_impexpgroupfiles_item>
-               <uid>1</uid>
-               <pid>1</pid>
-               <title>Test item</title>
-               <images>typo3_image4.jpg</images>
-               <image_references>fileadmin/user_upload/typo3_image5.jpg</image_references>
-               <deleted>0</deleted>
-               <flexform></flexform>
-               <t3ver_oid>0</t3ver_oid>
-               <t3ver_wsid>0</t3ver_wsid>
-               <l18n_diffsource></l18n_diffsource>
-       </tx_impexpgroupfiles_item>
-       <tx_impexpgroupfiles_item>
-               <uid>2</uid>
-               <pid>2</pid>
-               <title>Test item 2</title>
-               <images></images>
-               <image_references></image_references>
-               <flexform><![CDATA[<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
-<T3FlexForms>
-       <data>
-               <sheet index="sDEF">
-                       <language index="lDEF">
-                               <field index="link">
-                                       <value index="vDEF">file:2</value>
-                               </field>
-                               <field index="images">
-                                       <value index="vDEF">typo3_image4.jpg</value>
-                               </field>
-                               <field index="image_references">
-                                       <value index="vDEF">fileadmin/user_upload/typo3_image5.jpg</value>
-                               </field>
-                       </language>
-               </sheet>
-       </data>
-</T3FlexForms>]]></flexform>
-               <deleted>0</deleted>
-               <t3ver_oid>0</t3ver_oid>
-               <t3ver_wsid>0</t3ver_wsid>
-               <l18n_diffsource></l18n_diffsource>
-       </tx_impexpgroupfiles_item>
-</dataset>
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importGroupFileAndFileReferenceItem.csv b/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importGroupFileAndFileReferenceItem.csv
new file mode 100644 (file)
index 0000000..2a12eb8
--- /dev/null
@@ -0,0 +1,15 @@
+"pages"
+,"uid","pid","sorting","deleted","title"
+,1,0,256,0,"Root"
+"sys_file_storage"
+,"uid","pid","name","driver"
+,1,0,"fileadmin/ (auto-created)","Local"
+"sys_file"
+,"uid","pid","storage","type","identifier","identifier_hash","folder_hash","extension","mime_type","name","sha1","size"
+,1,0,1,2,"/user_upload/typo3_image5.jpg","8180e85d25c96697ec9d2004683216831b91ffc1","19669f1e02c2f16705ec7587044c66443be70725","jpg","image/jpeg","typo3_image5.jpg","c3511df85d21bc578faf71c6a19eeb3ff44af370","7425"
+"tx_impexpgroupfiles_item"
+,"uid","pid","title","deleted","hidden","images","image_references"
+,1,1,"Test item",0,0,"typo3_image4.jpg","fileadmin/user_upload/typo3_image5.jpg"
+"sys_file_metadata"
+,"uid","pid","file","title","width","height","description","alternative","sys_language_uid","l10n_parent"
+,1,0,1,\NULL,300,200,\NULL,\NULL,0,0
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importGroupFileAndFileReferenceItemInFlexForm.csv b/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importGroupFileAndFileReferenceItemInFlexForm.csv
new file mode 100644 (file)
index 0000000..730561c
--- /dev/null
@@ -0,0 +1,17 @@
+"pages"
+,"uid","pid","sorting","deleted","title"
+,1,0,256,0,"Dummy 1-2"
+"sys_file_storage"
+,"uid","pid","name","driver"
+,1,0,"fileadmin/ (auto-created)","Local"
+"sys_file"
+,"uid","pid","storage","type","identifier","identifier_hash","folder_hash","extension","mime_type","name","sha1","size"
+,1,0,1,2,"/user_upload/typo3_image5.jpg","8180e85d25c96697ec9d2004683216831b91ffc1","19669f1e02c2f16705ec7587044c66443be70725","jpg","image/jpeg","typo3_image5.jpg","c3511df85d21bc578faf71c6a19eeb3ff44af370","7425"
+,2,0,1,2,"/user_upload/typo3_image3.jpg","25777b72e5e1cbed2d1b33e4fe5b737304b5bd28","19669f1e02c2f16705ec7587044c66443be70725","jpg","image/jpeg","typo3_image3.jpg","e873c1e2ffd0f191e183a1057de3eef4d62e782d","5565"
+"tx_impexpgroupfiles_item"
+,"uid","pid","title","deleted","hidden","images","image_references","flexform"
+,1,1,"Test item 2",0,0,"","",<?xml version="1.0" encoding="utf-8" standalone="yes" ?><T3FlexForms><data><sheet index="sDEF"><language index="lDEF"><field index="link"><value index="vDEF">file:2</value></field><field index="images"><value index="vDEF">typo3_image4.jpg</value></field><field index="image_references"><value index="vDEF">fileadmin/user_upload/typo3_image5.jpg</value></field></language></sheet></data></T3FlexForms>
+"sys_file_metadata"
+,"uid","pid","file","title","width","height","description","alternative","sys_language_uid","l10n_parent"
+,1,0,1,\NULL,300,200,\NULL,\NULL,0,0
+,2,0,2,\NULL,400,267,\NULL,\NULL,0,0
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importGroupFileAndFileReferenceItemWithRootLevelAndPagesAllowed.csv b/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importGroupFileAndFileReferenceItemWithRootLevelAndPagesAllowed.csv
new file mode 100644 (file)
index 0000000..2a12eb8
--- /dev/null
@@ -0,0 +1,15 @@
+"pages"
+,"uid","pid","sorting","deleted","title"
+,1,0,256,0,"Root"
+"sys_file_storage"
+,"uid","pid","name","driver"
+,1,0,"fileadmin/ (auto-created)","Local"
+"sys_file"
+,"uid","pid","storage","type","identifier","identifier_hash","folder_hash","extension","mime_type","name","sha1","size"
+,1,0,1,2,"/user_upload/typo3_image5.jpg","8180e85d25c96697ec9d2004683216831b91ffc1","19669f1e02c2f16705ec7587044c66443be70725","jpg","image/jpeg","typo3_image5.jpg","c3511df85d21bc578faf71c6a19eeb3ff44af370","7425"
+"tx_impexpgroupfiles_item"
+,"uid","pid","title","deleted","hidden","images","image_references"
+,1,1,"Test item",0,0,"typo3_image4.jpg","fileadmin/user_upload/typo3_image5.jpg"
+"sys_file_metadata"
+,"uid","pid","file","title","width","height","description","alternative","sys_language_uid","l10n_parent"
+,1,0,1,\NULL,300,200,\NULL,\NULL,0,0
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importGroupFileAndFileReferenceItemWithRootLevelNotAllowed.csv b/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importGroupFileAndFileReferenceItemWithRootLevelNotAllowed.csv
new file mode 100644 (file)
index 0000000..090a4f3
--- /dev/null
@@ -0,0 +1,12 @@
+"pages"
+,"uid","pid","sorting","deleted","title"
+,1,0,256,0,"Root"
+"sys_file_storage"
+,"uid","pid","name","driver"
+,1,0,"fileadmin/ (auto-created)","Local"
+"sys_file"
+,"uid","pid","storage","type","identifier","identifier_hash","folder_hash","extension","mime_type","name","sha1","size"
+,1,0,1,2,"/user_upload/typo3_image5.jpg","8180e85d25c96697ec9d2004683216831b91ffc1","19669f1e02c2f16705ec7587044c66443be70725","jpg","image/jpeg","typo3_image5.jpg","c3511df85d21bc578faf71c6a19eeb3ff44af370","7425"
+"sys_file_metadata"
+,"uid","pid","file","title","width","height","description","alternative","sys_language_uid","l10n_parent"
+,1,0,1,\NULL,300,200,\NULL,\NULL,0,0
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importGroupFileAndFileReferenceItemWithRootLevelOnlyAllowed.csv b/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importGroupFileAndFileReferenceItemWithRootLevelOnlyAllowed.csv
new file mode 100644 (file)
index 0000000..dee7924
--- /dev/null
@@ -0,0 +1,15 @@
+"pages"
+,"uid","pid","sorting","deleted","title"
+,1,0,256,0,"Root"
+"sys_file_storage"
+,"uid","pid","name","driver"
+,1,0,"fileadmin/ (auto-created)","Local"
+"sys_file"
+,"uid","pid","storage","type","identifier","identifier_hash","folder_hash","extension","mime_type","name","sha1","size"
+,1,0,1,2,"/user_upload/typo3_image5.jpg","8180e85d25c96697ec9d2004683216831b91ffc1","19669f1e02c2f16705ec7587044c66443be70725","jpg","image/jpeg","typo3_image5.jpg","c3511df85d21bc578faf71c6a19eeb3ff44af370","7425"
+"tx_impexpgroupfiles_item"
+,"uid","pid","title","deleted","hidden","images","image_references"
+,1,0,"Test item",0,0,"typo3_image4.jpg","fileadmin/user_upload/typo3_image5.jpg"
+"sys_file_metadata"
+,"uid","pid","file","title","width","height","description","alternative","sys_language_uid","l10n_parent"
+,1,0,1,\NULL,300,200,\NULL,\NULL,0,0
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importIrreRecords.csv b/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importIrreRecords.csv
new file mode 100644 (file)
index 0000000..18f7428
--- /dev/null
@@ -0,0 +1,85 @@
+"pages"
+,"uid","pid","sorting","deleted","title"
+,1,0,256,0,"IRRE"
+tt_content
+,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,header,categories,tx_irretutorial_1nff_hotels,tx_irretutorial_1ncsv_hotels
+,1,1,256,0,0,0,"Test content",0,2,"1,2"
+tx_irretutorial_1ncsv_hotel
+,uid,pid,cruser_id,sys_language_uid,l18n_parent,sorting,deleted,hidden,title,offers
+,1,1,1,0,0,256,0,0,"Hotel 1 (csv)","1,2"
+,2,1,1,0,0,128,0,0,"Hotel 2 (csv)",3
+tx_irretutorial_1ncsv_offer
+,uid,pid,cruser_id,sys_language_uid,l18n_parent,sorting,deleted,hidden,title,prices
+,1,1,1,0,0,256,0,0,"Offer 1.1 (csv)",1
+,2,1,1,0,0,128,0,0,"Offer 1.2 (csv)",2
+,3,1,1,0,0,64,0,0,"Offer 2.2 (csv)",3
+tx_irretutorial_1ncsv_price
+,uid,pid,cruser_id,sys_language_uid,l18n_parent,sorting,deleted,hidden,title,price
+,1,1,1,0,0,256,0,0,"Price 1.1.1 (csv)",567
+,2,1,1,0,0,128,0,0,"Price 1.2.1 (csv)",90
+,3,1,1,0,0,64,0,0,"Price 2.2.1 (csv)",112
+tx_irretutorial_1nff_hotel
+,uid,pid,cruser_id,sys_language_uid,l18n_parent,sorting,deleted,hidden,parentid,parenttable,parentidentifier,title,offers
+,1,1,1,0,0,2,0,0,1,tt_content,,"Hotel 2 (nff)",1
+,2,1,1,0,0,1,0,0,1,tt_content,,"Hotel 1 (nff)",2
+tx_irretutorial_1nff_offer
+,uid,pid,cruser_id,sys_language_uid,l18n_parent,sorting,deleted,hidden,parentid,parenttable,parentidentifier,title,prices
+,1,1,1,0,0,2,0,0,2,tx_irretutorial_1nff_hotel,,"Offer 1.2 (nff)",1
+,2,1,1,0,0,1,0,0,1,tx_irretutorial_1nff_hotel,,"Offer 2.1 (nff)",1
+,3,1,1,0,0,1,0,0,2,tx_irretutorial_1nff_hotel,,"Offer 1.1 (nff)",2
+tx_irretutorial_1nff_price
+,uid,pid,cruser_id,sys_language_uid,l18n_parent,sorting,deleted,hidden,parentid,parenttable,parentidentifier,title,price
+,1,1,1,0,0,2,0,0,3,tx_irretutorial_1nff_offer,,"Price 1.1.2 (nff)",869
+,2,1,1,0,0,1,0,0,2,tx_irretutorial_1nff_offer,,"Price 2.1.1 (nff)",5467567
+,3,1,1,0,0,1,0,0,1,tx_irretutorial_1nff_offer,,"Price 1.2.1 (nff)",678
+,4,1,1,0,0,1,0,0,3,tx_irretutorial_1nff_offer,,"Price 1.1.1 (nff)",4
+tx_irretutorial_mnasym_hotel
+,uid,pid,cruser_id,sys_language_uid,l18n_parent,sorting,deleted,hidden,title,offers
+,1,1,1,0,0,256,0,0,"Hotel 1 (m:n ASym)",2
+tx_irretutorial_mnasym_hotel_offer_rel
+,uid,pid,cruser_id,sys_language_uid,l18n_parent,deleted,hidden,hotelid,offerid,hotelsort,offersort,prices
+,1,1,1,0,0,0,0,1,1,1,1,1
+,2,1,1,0,0,0,0,1,2,2,1,1
+tx_irretutorial_mnasym_offer
+,uid,pid,cruser_id,sys_language_uid,l18n_parent,sorting,deleted,hidden,title,hotels
+,1,1,1,0,0,256,0,0,"Offer 1 (m:n ASym)",1
+,2,1,1,0,0,128,0,0,"Offer 2 (m:n ASym)",1
+tx_irretutorial_mnasym_price
+,uid,pid,cruser_id,sys_language_uid,l18n_parent,sorting,deleted,hidden,parentid,title,price
+,1,1,1,0,0,1,0,0,1,"Price 2 1:1 (m:n ASym)",45
+,2,1,1,0,0,1,0,0,2,"Price 1 1:2 (m:n ASym)",678
+tx_irretutorial_mnattr_hotel
+,uid,pid,cruser_id,sys_language_uid,l18n_parent,sorting,deleted,hidden,title,offers
+,1,1,1,0,0,256,0,0,"Hotel 2 (m:n Attr)",1
+,2,1,1,0,0,128,0,0,"Hotel 1 (m:n Attr)",1
+tx_irretutorial_mnattr_hotel_offer_rel
+,uid,pid,cruser_id,sys_language_uid,l18n_parent,deleted,hidden,hotelid,offerid,hotelsort,offersort,quality,allincl
+,1,1,1,0,0,0,0,1,1,1,1,4,0
+,2,1,1,0,0,0,0,2,2,1,1,2,1
+tx_irretutorial_mnattr_offer
+,uid,pid,cruser_id,sys_language_uid,l18n_parent,sorting,deleted,hidden,title,hotels
+,1,1,1,0,0,256,0,0,"Offer 2 (m:n Attr)",1
+,2,1,1,0,0,128,0,0,"Offer 1 (m:n Attr)",1
+tx_irretutorial_mnmmasym_hotel
+,uid,pid,cruser_id,sys_language_uid,l18n_parent,sorting,deleted,hidden,title,offers
+,1,1,1,0,0,256,0,0,"Hotel 2 (m:n (MM) ASym)",1
+,2,1,1,0,0,128,0,0,"Hotel 1 (m:n (MM) ASym)",2
+tx_irretutorial_mnmmasym_offer
+,uid,pid,cruser_id,sys_language_uid,l18n_parent,sorting,deleted,hidden,title,hotels,prices
+,1,1,1,0,0,256,0,0,"Offer 1.1 (m:n (MM) ASym)",0,1
+,2,1,1,0,0,128,0,0,"Offer 1.2 (m:n (MM) ASym)",0,1
+,3,1,1,0,0,64,0,0,"Offer 2.1 (m:n (MM) ASym)",0,1
+tx_irretutorial_mnmmasym_price
+,uid,pid,cruser_id,sys_language_uid,l18n_parent,sorting,deleted,hidden,title,price,offers
+,1,1,1,0,0,256,0,0,"Price 1.1.1 (m:n (MM) ASym)",567,0
+,2,1,1,0,0,128,0,0,"Price 1.2.2 (m:n (MM) ASym)",567,0
+,3,1,1,0,0,64,0,0,"Price (m:n (MM) ASym)",223,0
+tx_irretutorial_mnsym_hotel
+,uid,pid,cruser_id,sys_language_uid,l18n_parent,sorting,deleted,hidden,title,branches
+,1,1,1,0,0,256,0,0,"Hotel 1 (mm sym)",2
+,2,1,1,0,0,128,0,0,"Hotel branch 1.2 (mm sym)",1
+,3,1,1,0,0,64,0,0,"Hotel Branch 1.1 (mm sym)",1
+tx_irretutorial_mnsym_hotel_rel
+,uid,pid,cruser_id,sys_language_uid,l18n_parent,deleted,hidden,hotelid,branchid,hotelsort,branchsort
+,1,1,1,0,0,0,0,1,2,2,0
+,2,1,1,0,0,0,0,1,3,1,1
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importPagesAndRelatedTtContent.csv b/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importPagesAndRelatedTtContent.csv
new file mode 100644 (file)
index 0000000..45e833e
--- /dev/null
@@ -0,0 +1,12 @@
+"pages"
+,"uid","pid","sorting","deleted","title"
+,1,0,256,0,"Root"
+,2,1,256,0,"Dummy 1-2"
+"tt_content"
+,"uid","pid","sorting","deleted","header","header_link"
+,1,1,256,0,"Test content 2","file:2"
+,2,1,128,0,"Test content","file:1"
+"sys_file"
+,"uid","pid","storage","type","identifier","identifier_hash","folder_hash","extension","mime_type","name","sha1","size"
+,1,0,1,2,"/user_upload/typo3_image3.jpg","25777b72e5e1cbed2d1b33e4fe5b737304b5bd28","19669f1e02c2f16705ec7587044c66443be70725","jpg","image/jpeg","typo3_image3.jpg","e873c1e2ffd0f191e183a1057de3eef4d62e782d","5565"
+,2,0,0,1,"/typo3conf/ext/template_extension/Resources/Public/Templates/Empty.html","ae03df120da87352822f4aae6d476086cb8c0cf8","85051482e1ba204348a9b9f6c1a37069e77de027","html","text/html","Empty.html","4a53ba5b5a156b82e3efd443f9a402f8c6e6dd08","92"
\ No newline at end of file
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importPagesAndRelatedTtContentWithDifferentImageToExistingData.csv b/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importPagesAndRelatedTtContentWithDifferentImageToExistingData.csv
new file mode 100644 (file)
index 0000000..9ae0783
--- /dev/null
@@ -0,0 +1,31 @@
+"pages"
+,"uid","pid","sorting","deleted","title"
+,1,0,512,0,"Root"
+,2,1,0,0,"Dummy 1-2"
+,3,0,256,0,"Root"
+,4,3,256,0,"Dummy 1-2"
+"tt_content"
+,"uid","pid","sorting","deleted","header","header_link","image"
+,1,1,0,0,"Test content","file:1",1
+,2,3,256,0,"Test content",,1
+"sys_language"
+,"uid","pid","hidden","title","flag"
+,1,0,0,Deutsch,de
+"sys_file_storage"
+,"uid","pid","name","driver"
+,1,0,"fileadmin/ (auto-created)","Local"
+"sys_file"
+,"uid","pid","storage","type","identifier","identifier_hash","folder_hash","extension","mime_type","name","sha1","size"
+,1,0,1,2,"/user_upload/typo3_image2.jpg","f90bb9a35622f35b5279195e324eddbaec8164b2","19669f1e02c2f16705ec7587044c66443be70725","jpg","image/jpeg","typo3_image2.jpg","da9acdf1e105784a57bbffec9520969578287797","7958"
+,2,0,1,2,"/user_upload/typo3_image3.jpg","25777b72e5e1cbed2d1b33e4fe5b737304b5bd28","19669f1e02c2f16705ec7587044c66443be70725","jpg","image/jpeg","typo3_image3.jpg","e873c1e2ffd0f191e183a1057de3eef4d62e782d","5565"
+,3,0,1,2,"/user_upload/typo3_image5.jpg","8180e85d25c96697ec9d2004683216831b91ffc1","19669f1e02c2f16705ec7587044c66443be70725","jpg","image/jpeg","typo3_image5.jpg","c3511df85d21bc578faf71c6a19eeb3ff44af370","7425"
+,4,0,1,2,"/user_upload/typo3_image2_01.jpg","299dc37e3c3428b85d9b39c353c6557fa834dac5","19669f1e02c2f16705ec7587044c66443be70725","jpg","image/jpeg","typo3_image2_01.jpg","e873c1e2ffd0f191e183a1057de3eef4d62e782d","5565"
+"sys_file_reference"
+,"uid","pid","uid_local","uid_foreign","tablenames","fieldname","table_local","title","description","alternative","link"
+,1,1,1,1,"tt_content","image","sys_file",\NULL,\NULL,\NULL,""
+,2,3,4,2,"tt_content","image","sys_file",\NULL,\NULL,\NULL,""
+"sys_file_metadata"
+,"uid","pid","file","title","width","height","description","alternative","sys_language_uid","l10n_parent"
+,1,0,1,Dummy image,400,300,"This is a dummy image.","Photo of program code",0,0
+,2,0,1,Beispiel Bild,0,0,"Nur ein Beispielbild.","Foto von Programmcode",1,1
+,3,0,4,\NULL,400,267,\NULL,\NULL,0,0
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importPagesAndRelatedTtContentWithImageWithForcedUids.csv b/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importPagesAndRelatedTtContentWithImageWithForcedUids.csv
new file mode 100644 (file)
index 0000000..9e2d40c
--- /dev/null
@@ -0,0 +1,20 @@
+"pages"
+,"uid","pid","sorting","deleted","title"
+,5,0,256,0,"Root"
+,8,5,256,0,"Dummy 1-2"
+"tt_content"
+,"uid","pid","sorting","deleted","header","header_link","image"
+,21,8,256,0,"Test content","file:1",1
+"sys_file_storage"
+,"uid","pid","name","driver"
+,1,0,"fileadmin/ (auto-created)","Local"
+"sys_file"
+,"uid","pid","storage","type","identifier","identifier_hash","folder_hash","extension","mime_type","name","sha1","size"
+,1,0,1,2,"/user_upload/typo3_image2.jpg","f90bb9a35622f35b5279195e324eddbaec8164b2","19669f1e02c2f16705ec7587044c66443be70725","jpg","image/jpeg","typo3_image2.jpg","da9acdf1e105784a57bbffec9520969578287797","7958"
+"sys_file_reference"
+,"uid","pid","uid_local","uid_foreign","tablenames","fieldname","table_local","title","description","alternative","link"
+,101,8,1,21,"tt_content","image","sys_file",\NULL,\NULL,\NULL,""
+"sys_file_metadata"
+,"uid","pid","file","title","width","height","description","alternative"
+,1,0,1,Dummy image,400,300,"This is a dummy image.","Photo of program code"
+
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importPagesAndRelatedTtContentWithImagesButNotIncluded.csv b/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importPagesAndRelatedTtContentWithImagesButNotIncluded.csv
new file mode 100644 (file)
index 0000000..2ce4d74
--- /dev/null
@@ -0,0 +1,23 @@
+"pages"
+,"uid","pid","sorting","deleted","title"
+,1,0,256,0,"Root"
+,2,1,256,0,"Dummy 1-2"
+"tt_content"
+,"uid","pid","sorting","deleted","header","header_link","image"
+,1,1,256,0,"Test content","file:1",1
+"sys_language"
+,"uid","pid","hidden","title","flag"
+,1,0,0,Deutsch,de
+"sys_file_storage"
+,"uid","pid","name","driver",
+,1,0,"fileadmin/ (auto-created)","Local"
+"sys_file"
+,"uid","pid","storage","type","identifier","identifier_hash","folder_hash","extension","mime_type","name","sha1","size"
+,1,0,1,2,"/user_upload/typo3_image2.jpg","f90bb9a35622f35b5279195e324eddbaec8164b2","19669f1e02c2f16705ec7587044c66443be70725","jpg","image/jpeg","typo3_image2.jpg","da9acdf1e105784a57bbffec9520969578287797","7958"
+"sys_file_reference"
+,"uid","pid","uid_local","uid_foreign","tablenames","fieldname","table_local","title","description","alternative","link"
+,1,1,1,1,"tt_content","image","sys_file",\NULL,\NULL,\NULL,""
+"sys_file_metadata"
+,"uid","pid","file","title","width","height","description","alternative","sys_language_uid","l10n_parent"
+,1,0,1,Dummy image,400,300,"This is a dummy image.","Photo of program code",0,0
+,2,0,1,Beispiel Bild,0,0,"Nur ein Beispielbild.","Foto von Programmcode",1,1
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importPagesAndRelatedTtContentWithImagesButWithoutStorageOnCaseInsensitiveFilesystems.csv b/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importPagesAndRelatedTtContentWithImagesButWithoutStorageOnCaseInsensitiveFilesystems.csv
new file mode 100644 (file)
index 0000000..bd02432
--- /dev/null
@@ -0,0 +1,23 @@
+"pages"
+,"uid","pid","sorting","deleted","title"
+,1,0,256,0,"Root"
+,2,1,256,0,"Dummy 1-2"
+"tt_content"
+,"uid","pid","sorting","deleted","header","image"
+,1,1,256,0,"Test content",1
+"sys_language"
+,"uid","pid","hidden","title","flag"
+,1,0,0,Deutsch,de
+"sys_file_storage"
+,"uid","pid","name","driver","configuration"
+,1,0,"fileadmin/ (auto-created)","Local",<?xml version="1.0" encoding="utf-8" standalone="yes" ?><T3FlexForms><data><sheet index="sDEF"><language index="lDEF"><field index="basePath"><value index="vDEF">fileadmin/</value></field><field index="pathType"><value index="vDEF">relative</value></field><field index="caseSensitive"><value index="vDEF"/></field></language></sheet></data></T3FlexForms>
+"sys_file"
+,"uid","pid","storage","type","identifier","identifier_hash","folder_hash","extension","mime_type","name","sha1","size"
+,1,0,1,2,"/user_upload/typo3_image2.jpg","f90bb9a35622f35b5279195e324eddbaec8164b2","19669f1e02c2f16705ec7587044c66443be70725","jpg","image/jpeg","typo3_image2.jpg","da9acdf1e105784a57bbffec9520969578287797","7958"
+"sys_file_reference"
+,"uid","pid","uid_local","uid_foreign","tablenames","fieldname","table_local","title","description","alternative","link"
+,1,1,1,1,"tt_content","image","sys_file",\NULL,\NULL,\NULL,""
+"sys_file_metadata"
+,"uid","pid","file","title","width","height","description","alternative","sys_language_uid","l10n_parent"
+,1,0,1,Dummy image,400,300,"This is a dummy image.","Photo of program code",0,0
+,2,0,1,Beispiel Bild,0,0,"Nur ein Beispielbild.","Foto von Programmcode",1,1
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importPagesAndRelatedTtContentWithImagesButWithoutStorageOnCaseSensitiveFilesystems.csv b/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importPagesAndRelatedTtContentWithImagesButWithoutStorageOnCaseSensitiveFilesystems.csv
new file mode 100644 (file)
index 0000000..3c8f413
--- /dev/null
@@ -0,0 +1,23 @@
+"pages"
+,"uid","pid","sorting","deleted","title"
+,1,0,256,0,"Root"
+,2,1,256,0,"Dummy 1-2"
+"tt_content"
+,"uid","pid","sorting","deleted","header","image"
+,1,1,256,0,"Test content",1
+"sys_language"
+,"uid","pid","hidden","title","flag"
+,1,0,0,Deutsch,de
+"sys_file_storage"
+,"uid","pid","name","driver","configuration"
+,1,0,"fileadmin/ (auto-created)","Local",<?xml version="1.0" encoding="utf-8" standalone="yes" ?><T3FlexForms><data><sheet index="sDEF"><language index="lDEF"><field index="basePath"><value index="vDEF">fileadmin/</value></field><field index="pathType"><value index="vDEF">relative</value></field><field index="caseSensitive"><value index="vDEF">1</value></field></language></sheet></data></T3FlexForms>
+"sys_file"
+,"uid","pid","storage","type","identifier","identifier_hash","folder_hash","extension","mime_type","name","sha1","size"
+,1,0,1,2,"/user_upload/typo3_image2.jpg","f90bb9a35622f35b5279195e324eddbaec8164b2","19669f1e02c2f16705ec7587044c66443be70725","jpg","image/jpeg","typo3_image2.jpg","da9acdf1e105784a57bbffec9520969578287797","7958"
+"sys_file_reference"
+,"uid","pid","uid_local","uid_foreign","tablenames","fieldname","table_local","title","description","alternative","link"
+,1,1,1,1,"tt_content","image","sys_file",\NULL,\NULL,\NULL,""
+"sys_file_metadata"
+,"uid","pid","file","title","width","height","description","alternative","sys_language_uid","l10n_parent"
+,1,0,1,Dummy image,400,300,"This is a dummy image.","Photo of program code",0,0
+,2,0,1,Beispiel Bild,0,0,"Nur ein Beispielbild.","Foto von Programmcode",1,1
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importPagesAndRelatedTtContentWithImagesOnCaseInsensitiveFilesystems.csv b/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importPagesAndRelatedTtContentWithImagesOnCaseInsensitiveFilesystems.csv
new file mode 100644 (file)
index 0000000..d757a5b
--- /dev/null
@@ -0,0 +1,23 @@
+"pages"
+,"uid","pid","sorting","deleted","title"
+,1,0,256,0,"Root"
+,2,1,256,0,"Dummy 1-2"
+"tt_content"
+,"uid","pid","sorting","deleted","header","header_link","image"
+,1,1,256,0,"Test content","file:1",1
+"sys_language"
+,"uid","pid","hidden","title","flag"
+,1,0,0,Deutsch,de
+"sys_file_storage"
+,"uid","pid","name","driver","configuration"
+,1,0,"fileadmin/ (auto-created)","Local",<?xml version="1.0" encoding="utf-8" standalone="yes" ?><T3FlexForms><data><sheet index="sDEF"><language index="lDEF"><field index="basePath"><value index="vDEF">fileadmin/</value></field><field index="pathType"><value index="vDEF">relative</value></field><field index="caseSensitive"><value index="vDEF"/></field></language></sheet></data></T3FlexForms>
+"sys_file"
+,"uid","pid","storage","type","identifier","identifier_hash","folder_hash","extension","mime_type","name","sha1","size"
+,1,0,1,2,"/user_upload/typo3_image2.jpg","f90bb9a35622f35b5279195e324eddbaec8164b2","19669f1e02c2f16705ec7587044c66443be70725","jpg","image/jpeg","typo3_image2.jpg","da9acdf1e105784a57bbffec9520969578287797","7958"
+"sys_file_reference"
+,"uid","pid","uid_local","uid_foreign","tablenames","fieldname","table_local","title","description","alternative","link"
+,1,1,1,1,"tt_content","image","sys_file",\NULL,\NULL,\NULL,""
+"sys_file_metadata"
+,"uid","pid","file","title","width","height","description","alternative","sys_language_uid","l10n_parent"
+,1,0,1,Dummy image,400,300,"This is a dummy image.","Photo of program code",0,0
+,2,0,1,Beispiel Bild,0,0,"Nur ein Beispielbild.","Foto von Programmcode",1,1
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importPagesAndRelatedTtContentWithImagesOnCaseSensitiveFilesystems.csv b/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importPagesAndRelatedTtContentWithImagesOnCaseSensitiveFilesystems.csv
new file mode 100644 (file)
index 0000000..8c22d19
--- /dev/null
@@ -0,0 +1,23 @@
+"pages"
+,"uid","pid","sorting","deleted","title"
+,1,0,256,0,"Root"
+,2,1,256,0,"Dummy 1-2"
+"tt_content"
+,"uid","pid","sorting","deleted","header","header_link","image"
+,1,1,256,0,"Test content","file:1",1
+"sys_language"
+,"uid","pid","hidden","title","flag"
+,1,0,0,Deutsch,de
+"sys_file_storage"
+,"uid","pid","name","driver","configuration"
+,1,0,"fileadmin/ (auto-created)","Local",<?xml version="1.0" encoding="utf-8" standalone="yes" ?><T3FlexForms><data><sheet index="sDEF"><language index="lDEF"><field index="basePath"><value index="vDEF">fileadmin/</value></field><field index="pathType"><value index="vDEF">relative</value></field><field index="caseSensitive"><value index="vDEF">1</value></field></language></sheet></data></T3FlexForms>
+"sys_file"
+,"uid","pid","storage","type","identifier","identifier_hash","folder_hash","extension","mime_type","name","sha1","size"
+,1,0,1,2,"/user_upload/typo3_image2.jpg","f90bb9a35622f35b5279195e324eddbaec8164b2","19669f1e02c2f16705ec7587044c66443be70725","jpg","image/jpeg","typo3_image2.jpg","da9acdf1e105784a57bbffec9520969578287797","7958"
+"sys_file_reference"
+,"uid","pid","uid_local","uid_foreign","tablenames","fieldname","table_local","title","description","alternative","link"
+,1,1,1,1,"tt_content","image","sys_file",\NULL,\NULL,\NULL,""
+"sys_file_metadata"
+,"uid","pid","file","title","width","height","description","alternative","sys_language_uid","l10n_parent"
+,1,0,1,Dummy image,400,300,"This is a dummy image.","Photo of program code",0,0
+,2,0,1,Beispiel Bild,0,0,"Nur ein Beispielbild.","Foto von Programmcode",1,1
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importPagesAndRelatedTtContentWithImagesWithSpacesInPath.csv b/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importPagesAndRelatedTtContentWithImagesWithSpacesInPath.csv
new file mode 100644 (file)
index 0000000..ad82131
--- /dev/null
@@ -0,0 +1,22 @@
+"pages"
+,"uid","pid","sorting","deleted","title"
+,1,0,256,0,"Root"
+,2,1,256,0,"Dummy 1-2"
+"tt_content"
+,"uid","pid","sorting","deleted","header","image"
+,1,1,256,0,"Test content",1
+"sys_file_storage"
+,"uid","pid","name","driver"
+,1,0,"fileadmin/ (auto-created)","Local"
+"sys_file"
+,"uid","pid","storage","type","identifier","identifier_hash","folder_hash","extension","mime_type","name","sha1","size"
+,1,0,1,2,"/user_upload/folder_with_spaces/typo3_image2.jpg","060a2cd7f623c1c4c3edaf20f2dd561dadc30354","9de358f64a020b01f020a76ff7c59674913ba5c5","jpg","image/jpeg","typo3_image2.jpg","da9acdf1e105784a57bbffec9520969578287797","7958"
+,2,0,1,2,"/user_upload/folder_with_spaces/typo3_image3.jpg","53313966f99b5d632c1db8799ae25349ad3318f8","9de358f64a020b01f020a76ff7c59674913ba5c5","jpg","image/jpeg","typo3_image3.jpg","e873c1e2ffd0f191e183a1057de3eef4d62e782d","5565"
+"sys_file_reference"
+,"uid","pid","uid_local","uid_foreign","tablenames","fieldname","table_local","title","description","alternative","link"
+,1,1,1,1,"tt_content","image","sys_file",\NULL,\NULL,\NULL,""
+"sys_file_metadata"
+,"uid","pid","file","title","width","height","description","alternative"
+,1,0,1,Dummy image,400,300,"This is a dummy image.","Photo of program code"
+,2,0,2,Dummy image 2,400,267,\NULL,,\NULL
+
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importPagesAndRelatedTtContentWithRteImagesAndFileLink.csv b/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importPagesAndRelatedTtContentWithRteImagesAndFileLink.csv
new file mode 100644 (file)
index 0000000..33f2aca
--- /dev/null
@@ -0,0 +1,15 @@
+"pages"
+,"uid","pid","sorting","deleted","title"
+,1,0,256,0,"Root"
+,2,1,256,0,"Dummy 1-2"
+"tt_content"
+,"uid","pid","sorting","deleted","header","bodytext"
+,1,2,256,0,"Text element with image in RTE",<img src="fileadmin/_processed_/csm_typo3_image2_5c2670fd59.jpg" title="typo3_image2.jpg" data-htmlarea-file-uid="1" height="225" width="300" alt="" style="" />&nbsp;&nbsp;And here a <LINK file:2 - download "Initiates file download">link to an image</link>.
+"sys_file_storage"
+,"uid","pid","name","driver"
+,1,0,"fileadmin/ (auto-created)","Local"
+"sys_file"
+,"uid","pid","storage","type","identifier","identifier_hash","folder_hash","extension","mime_type","name","sha1","size"
+,1,0,1,2,"/user_upload/typo3_image2.jpg","f90bb9a35622f35b5279195e324eddbaec8164b2","19669f1e02c2f16705ec7587044c66443be70725","jpg","image/jpeg","typo3_image2.jpg","da9acdf1e105784a57bbffec9520969578287797","7958"
+,2,0,1,2,"/user_upload/typo3_image3.jpg","25777b72e5e1cbed2d1b33e4fe5b737304b5bd28","19669f1e02c2f16705ec7587044c66443be70725","jpg","image/jpeg","typo3_image3.jpg","e873c1e2ffd0f191e183a1057de3eef4d62e782d","5565"
+
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importPagesAndRelatedTtContentWithSameImageToExistingData.csv b/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importPagesAndRelatedTtContentWithSameImageToExistingData.csv
new file mode 100644 (file)
index 0000000..06bd033
--- /dev/null
@@ -0,0 +1,29 @@
+"pages"
+,"uid","pid","sorting","deleted","title"
+,1,0,512,0,"Root"
+,2,1,0,0,"Dummy 1-2"
+,3,0,256,0,"Root"
+,4,3,256,0,"Dummy 1-2"
+"tt_content"
+,"uid","pid","sorting","deleted","header","header_link","image"
+,1,1,0,0,"Test content","file:1",1
+,2,3,256,0,"Test content",,1
+"sys_language"
+,"uid","pid","hidden","title","flag"
+,1,0,0,Deutsch,de
+"sys_file_storage"
+,"uid","pid","name","driver"
+,1,0,"fileadmin/ (auto-created)","Local"
+"sys_file"
+,"uid","pid","storage","type","identifier","identifier_hash","folder_hash","extension","mime_type","name","sha1","size"
+,1,0,1,2,"/user_upload/typo3_image2.jpg","f90bb9a35622f35b5279195e324eddbaec8164b2","19669f1e02c2f16705ec7587044c66443be70725","jpg","image/jpeg","typo3_image2.jpg","da9acdf1e105784a57bbffec9520969578287797","7958"
+,2,0,1,2,"/user_upload/typo3_image3.jpg","25777b72e5e1cbed2d1b33e4fe5b737304b5bd28","19669f1e02c2f16705ec7587044c66443be70725","jpg","image/jpeg","typo3_image3.jpg","e873c1e2ffd0f191e183a1057de3eef4d62e782d","5565"
+,3,0,1,2,"/user_upload/typo3_image5.jpg","8180e85d25c96697ec9d2004683216831b91ffc1","19669f1e02c2f16705ec7587044c66443be70725","jpg","image/jpeg","typo3_image5.jpg","c3511df85d21bc578faf71c6a19eeb3ff44af370","7425"
+"sys_file_reference"
+,"uid","pid","uid_local","uid_foreign","tablenames","fieldname","table_local","title","description","alternative","link"
+,1,1,1,1,"tt_content","image","sys_file",\NULL,\NULL,\NULL,""
+,2,3,1,2,"tt_content","image","sys_file",\NULL,\NULL,\NULL,""
+"sys_file_metadata"
+,"uid","pid","file","title","width","height","description","alternative","sys_language_uid","l10n_parent"
+,1,0,1,New title of the dummy image,400,300,"This is a dummy image.","Photo of program code",0,0
+,2,0,1,Beispiel Bild,0,0,"Nur ein Beispielbild.","Foto von Programmcode",1,1
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseImports/irre_tutorial.xml b/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseImports/irre_tutorial.xml
new file mode 100644 (file)
index 0000000..319ce62
--- /dev/null
@@ -0,0 +1,694 @@
+<?xml version="1.0" encoding="utf-8"?>
+<dataset>
+       <pages>
+               <uid>1</uid>
+               <pid>0</pid>
+               <title>IRRE</title>
+               <doktype>1</doktype>
+               <deleted>0</deleted>
+               <perms_everybody>15</perms_everybody>
+       </pages>
+       <tt_content>
+               <uid>1</uid>
+               <pid>1</pid>
+               <CType>text</CType>
+               <header>Test content</header>
+               <deleted>0</deleted>
+               <t3ver_oid>0</t3ver_oid>
+               <t3ver_wsid>0</t3ver_wsid>
+               <tx_irretutorial_1nff_hotels>2</tx_irretutorial_1nff_hotels>
+               <tx_irretutorial_1ncsv_hotels>1,2</tx_irretutorial_1ncsv_hotels>
+               <tx_irretutorial_flexform><![CDATA[<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3FlexForms>
+    <data>
+        <sheet index="sDEF">
+            <language index="lDEF">
+                <field index="hotels">
+                    <value index="vDEF">0</value>
+                </field>
+            </language>
+        </sheet>
+    </data>
+</T3FlexForms>]]></tx_irretutorial_flexform>
+       </tt_content>
+       <tx_irretutorial_1ncsv_hotel>
+               <uid>1</uid>
+               <pid>1</pid>
+               <cruser_id>1</cruser_id>
+               <sys_language_uid>0</sys_language_uid>
+               <l18n_parent>0</l18n_parent>
+               <l18n_diffsource></l18n_diffsource>
+               <sorting>256</sorting>
+               <deleted>0</deleted>
+               <hidden>0</hidden>
+               <title>Hotel 1 (csv)</title>
+               <offers>1,2</offers>
+       </tx_irretutorial_1ncsv_hotel>
+       <tx_irretutorial_1ncsv_hotel>
+               <uid>2</uid>
+               <pid>1</pid>
+               <cruser_id>1</cruser_id>
+               <sys_language_uid>0</sys_language_uid>
+               <l18n_parent>0</l18n_parent>
+               <l18n_diffsource></l18n_diffsource>
+               <sorting>128</sorting>
+               <deleted>0</deleted>
+               <hidden>0</hidden>
+               <title>Hotel 2 (csv)</title>
+               <offers>3</offers>
+       </tx_irretutorial_1ncsv_hotel>
+       <tx_irretutorial_1ncsv_offer>
+               <uid>1</uid>
+               <pid>1</pid>
+               <cruser_id>1</cruser_id>
+               <sys_language_uid>0</sys_language_uid>
+               <l18n_parent>0</l18n_parent>
+               <l18n_diffsource></l18n_diffsource>
+               <sorting>256</sorting>
+               <deleted>0</deleted>
+               <hidden>0</hidden>
+               <title>Offer 1.1 (csv)</title>
+               <prices>1</prices>
+       </tx_irretutorial_1ncsv_offer>
+       <tx_irretutorial_1ncsv_offer>
+               <uid>2</uid>
+               <pid>1</pid>
+               <cruser_id>1</cruser_id>
+               <sys_language_uid>0</sys_language_uid>
+               <l18n_parent>0</l18n_parent>
+               <l18n_diffsource></l18n_diffsource>
+               <sorting>128</sorting>
+               <deleted>0</deleted>
+               <hidden>0</hidden>
+               <title>Offer 1.2 (csv)</title>
+               <prices>2</prices>
+       </tx_irretutorial_1ncsv_offer>
+       <tx_irretutorial_1ncsv_offer>
+               <uid>3</uid>
+               <pid>1</pid>
+               <cruser_id>1</cruser_id>
+               <sys_language_uid>0</sys_language_uid>
+               <l18n_parent>0</l18n_parent>
+               <l18n_diffsource></l18n_diffsource>
+               <sorting>64</sorting>
+               <deleted>0</deleted>
+               <hidden>0</hidden>
+               <title>Offer 2.2 (csv)</title>
+               <prices>3</prices>
+       </tx_irretutorial_1ncsv_offer>
+       <tx_irretutorial_1ncsv_price>
+               <uid>1</uid>
+               <pid>1</pid>
+               <cruser_id>1</cruser_id>
+               <sys_language_uid>0</sys_language_uid>
+               <l18n_parent>0</l18n_parent>
+               <l18n_diffsource></l18n_diffsource>
+               <sorting>256</sorting>
+               <deleted>0</deleted>
+               <hidden>0</hidden>
+               <title>Price 1.1.1 (csv)</title>
+               <price>567.00</price>
+       </tx_irretutorial_1ncsv_price>
+       <tx_irretutorial_1ncsv_price>
+               <uid>2</uid>
+               <pid>1</pid>
+               <cruser_id>1</cruser_id>
+               <sys_language_uid>0</sys_language_uid>
+               <l18n_parent>0</l18n_parent>
+               <l18n_diffsource></l18n_diffsource>
+               <sorting>128</sorting>
+               <deleted>0</deleted>
+               <hidden>0</hidden>
+               <title>Price 1.2.1 (csv)</title>
+               <price>90.00</price>
+       </tx_irretutorial_1ncsv_price>
+       <tx_irretutorial_1ncsv_price>
+               <uid>3</uid>
+               <pid>1</pid>
+               <cruser_id>1</cruser_id>
+               <sys_language_uid>0</sys_language_uid>
+               <l18n_parent>0</l18n_parent>
+               <l18n_diffsource></l18n_diffsource>
+               <sorting>64</sorting>
+               <deleted>0</deleted>
+               <hidden>0</hidden>
+               <title>Price 2.2.1 (csv)</title>
+               <price>112.00</price>
+       </tx_irretutorial_1ncsv_price>
+       <tx_irretutorial_1nff_hotel>
+               <uid>1</uid>
+               <pid>1</pid>
+               <cruser_id>1</cruser_id>
+               <sys_language_uid>0</sys_language_uid>
+               <l18n_parent>0</l18n_parent>
+               <l18n_diffsource></l18n_diffsource>
+               <sorting>1</sorting>
+               <deleted>0</deleted>
+               <hidden>0</hidden>
+               <parentid>1</parentid>
+               <parenttable>tt_content</parenttable>
+               <parentidentifier></parentidentifier>
+               <title>Hotel 1 (nff)</title>
+               <offers>2</offers>
+       </tx_irretutorial_1nff_hotel>
+       <tx_irretutorial_1nff_hotel>
+               <uid>2</uid>
+               <pid>1</pid>
+               <cruser_id>1</cruser_id>
+               <sys_language_uid>0</sys_language_uid>
+               <l18n_parent>0</l18n_parent>
+               <l18n_diffsource></l18n_diffsource>
+               <sorting>2</sorting>
+               <deleted>0</deleted>
+               <hidden>0</hidden>
+               <parentid>1</parentid>
+               <parenttable>tt_content</parenttable>
+               <parentidentifier></parentidentifier>
+               <title>Hotel 2 (nff)</title>
+               <offers>1</offers>
+       </tx_irretutorial_1nff_hotel>
+       <tx_irretutorial_1nff_offer>
+               <uid>1</uid>
+               <pid>1</pid>
+               <cruser_id>1</cruser_id>
+               <sys_language_uid>0</sys_language_uid>
+               <l18n_parent>0</l18n_parent>
+               <l18n_diffsource></l18n_diffsource>
+               <sorting>1</sorting>
+               <deleted>0</deleted>
+               <hidden>0</hidden>
+               <parentid>1</parentid>
+               <parenttable>tx_irretutorial_1nff_hotel</parenttable>
+               <parentidentifier></parentidentifier>
+               <title>Offer 1.1 (nff)</title>
+               <prices>2</prices>
+       </tx_irretutorial_1nff_offer>
+       <tx_irretutorial_1nff_offer>
+               <uid>2</uid>
+               <pid>1</pid>
+               <cruser_id>1</cruser_id>
+               <sys_language_uid>0</sys_language_uid>
+               <l18n_parent>0</l18n_parent>
+               <l18n_diffsource></l18n_diffsource>
+               <sorting>2</sorting>
+               <deleted>0</deleted>
+               <hidden>0</hidden>
+               <parentid>1</parentid>
+               <parenttable>tx_irretutorial_1nff_hotel</parenttable>
+               <parentidentifier></parentidentifier>
+               <title>Offer 1.2 (nff)</title>
+               <prices>1</prices>
+       </tx_irretutorial_1nff_offer>
+       <tx_irretutorial_1nff_offer>
+               <uid>3</uid>
+               <pid>1</pid>
+               <cruser_id>1</cruser_id>
+               <sys_language_uid>0</sys_language_uid>
+               <l18n_parent>0</l18n_parent>
+               <l18n_diffsource></l18n_diffsource>
+               <sorting>1</sorting>
+               <deleted>0</deleted>
+               <hidden>0</hidden>
+               <parentid>2</parentid>
+               <parenttable>tx_irretutorial_1nff_hotel</parenttable>
+               <parentidentifier></parentidentifier>
+               <title>Offer 2.1 (nff)</title>
+               <prices>1</prices>
+       </tx_irretutorial_1nff_offer>
+       <tx_irretutorial_1nff_price>
+               <uid>1</uid>
+               <pid>1</pid>
+               <cruser_id>1</cruser_id>
+               <sys_language_uid>0</sys_language_uid>
+               <l18n_parent>0</l18n_parent>
+               <l18n_diffsource></l18n_diffsource>
+               <sorting>1</sorting>
+               <deleted>0</deleted>
+               <hidden>0</hidden>
+               <parentid>1</parentid>
+               <parenttable>tx_irretutorial_1nff_offer</parenttable>
+               <parentidentifier></parentidentifier>
+               <title>Price 1.1.1 (nff)</title>
+               <price>4.00</price>
+       </tx_irretutorial_1nff_price>
+       <tx_irretutorial_1nff_price>
+               <uid>2</uid>
+               <pid>1</pid>
+               <cruser_id>1</cruser_id>
+               <sys_language_uid>0</sys_language_uid>
+               <l18n_parent>0</l18n_parent>
+               <l18n_diffsource></l18n_diffsource>
+               <sorting>2</sorting>
+               <deleted>0</deleted>
+               <hidden>0</hidden>
+               <parentid>1</parentid>
+               <parenttable>tx_irretutorial_1nff_offer</parenttable>
+               <parentidentifier></parentidentifier>
+               <title>Price 1.1.2 (nff)</title>
+               <price>869.00</price>
+       </tx_irretutorial_1nff_price>
+       <tx_irretutorial_1nff_price>
+               <uid>3</uid>
+               <pid>1</pid>
+               <cruser_id>1</cruser_id>
+               <sys_language_uid>0</sys_language_uid>
+               <l18n_parent>0</l18n_parent>
+               <l18n_diffsource></l18n_diffsource>
+               <sorting>1</sorting>
+               <deleted>0</deleted>
+               <hidden>0</hidden>
+               <parentid>2</parentid>
+               <parenttable>tx_irretutorial_1nff_offer</parenttable>
+               <parentidentifier></parentidentifier>
+               <title>Price 1.2.1 (nff)</title>
+               <price>678.00</price>
+       </tx_irretutorial_1nff_price>
+       <tx_irretutorial_1nff_price>
+               <uid>4</uid>
+               <pid>1</pid>
+               <cruser_id>1</cruser_id>
+               <sys_language_uid>0</sys_language_uid>
+               <l18n_parent>0</l18n_parent>
+               <l18n_diffsource></l18n_diffsource>
+               <sorting>1</sorting>
+               <deleted>0</deleted>
+               <hidden>0</hidden>
+               <parentid>3</parentid>
+               <parenttable>tx_irretutorial_1nff_offer</parenttable>
+               <parentidentifier></parentidentifier>
+               <title>Price 2.1.1 (nff)</title>
+               <price>5467567.00</price>
+       </tx_irretutorial_1nff_price>
+       <tx_irretutorial_mnasym_hotel>
+               <uid>1</uid>
+               <pid>1</pid>
+               <cruser_id>1</cruser_id>
+               <sys_language_uid>0</sys_language_uid>
+               <l18n_parent>0</l18n_parent>
+               <l18n_diffsource></l18n_diffsource>
+               <sorting>256</sorting>
+               <deleted>0</deleted>
+               <hidden>0</hidden>
+               <title>Hotel 1 (m:n ASym)</title>
+               <offers>2</offers>
+       </tx_irretutorial_mnasym_hotel>
+       <tx_irretutorial_mnasym_hotel_offer_rel>
+               <uid>1</uid>
+               <pid>1</pid>
+               <cruser_id>1</cruser_id>
+               <sys_language_uid>0</sys_language_uid>
+               <l18n_parent>0</l18n_parent>
+               <l18n_diffsource></l18n_diffsource>
+               <deleted>0</deleted>
+               <hidden>0</hidden>
+               <hotelid>1</hotelid>
+               <offerid>2</offerid>
+               <hotelsort>2</hotelsort>
+               <offersort>1</offersort>
+               <prices>1</prices>
+       </tx_irretutorial_mnasym_hotel_offer_rel>
+       <tx_irretutorial_mnasym_hotel_offer_rel>
+               <uid>2</uid>
+               <pid>1</pid>
+               <cruser_id>1</cruser_id>
+               <sys_language_uid>0</sys_language_uid>
+               <l18n_parent>0</l18n_parent>
+               <l18n_diffsource></l18n_diffsource>
+               <deleted>0</deleted>
+               <hidden>0</hidden>
+               <hotelid>1</hotelid>
+               <offerid>1</offerid>
+               <hotelsort>1</hotelsort>
+               <offersort>1</offersort>
+               <prices>1</prices>
+       </tx_irretutorial_mnasym_hotel_offer_rel>
+       <tx_irretutorial_mnasym_offer>
+               <uid>1</uid>
+               <pid>1</pid>
+               <cruser_id>1</cruser_id>
+               <sys_language_uid>0</sys_language_uid>
+               <l18n_parent>0</l18n_parent>
+               <l18n_diffsource></l18n_diffsource>
+               <sorting>256</sorting>
+               <deleted>0</deleted>
+               <hidden>0</hidden>
+               <title>Offer 1 (m:n ASym)</title>
+               <hotels>1</hotels>
+       </tx_irretutorial_mnasym_offer>
+       <tx_irretutorial_mnasym_offer>
+               <uid>2</uid>
+               <pid>1</pid>
+               <cruser_id>1</cruser_id>
+               <sys_language_uid>0</sys_language_uid>
+               <l18n_parent>0</l18n_parent>
+               <l18n_diffsource></l18n_diffsource>
+               <sorting>128</sorting>
+               <deleted>0</deleted>
+               <hidden>0</hidden>
+               <title>Offer 2 (m:n ASym)</title>
+               <hotels>1</hotels>
+       </tx_irretutorial_mnasym_offer>
+       <tx_irretutorial_mnasym_price>
+               <uid>1</uid>
+               <pid>1</pid>
+               <cruser_id>1</cruser_id>
+               <sys_language_uid>0</sys_language_uid>
+               <l18n_parent>0</l18n_parent>
+               <l18n_diffsource></l18n_diffsource>
+               <sorting>1</sorting>
+               <deleted>0</deleted>
+               <hidden>0</hidden>
+               <parentid>1</parentid>
+               <title>Price 1 1:2 (m:n ASym)</title>
+               <price>678.00</price>
+       </tx_irretutorial_mnasym_price>
+       <tx_irretutorial_mnasym_price>
+               <uid>2</uid>
+               <pid>1</pid>
+               <cruser_id>1</cruser_id>
+               <sys_language_uid>0</sys_language_uid>
+               <l18n_parent>0</l18n_parent>
+               <l18n_diffsource></l18n_diffsource>
+               <sorting>1</sorting>
+               <deleted>0</deleted>
+               <hidden>0</hidden>
+               <parentid>2</parentid>
+               <title>Price 2 1:1 (m:n ASym)</title>
+               <price>45.00</price>
+       </tx_irretutorial_mnasym_price>
+       <tx_irretutorial_mnattr_hotel>
+               <uid>1</uid>
+               <pid>1</pid>
+               <cruser_id>1</cruser_id>
+               <sys_language_uid>0</sys_language_uid>
+               <l18n_parent>0</l18n_parent>
+               <l18n_diffsource></l18n_diffsource>
+               <sorting>256</sorting>
+               <deleted>0</deleted>
+               <hidden>0</hidden>
+               <title>Hotel 1 (m:n Attr)</title>
+               <offers>1</offers>
+       </tx_irretutorial_mnattr_hotel>
+       <tx_irretutorial_mnattr_hotel>
+               <uid>2</uid>
+               <pid>1</pid>
+               <cruser_id>1</cruser_id>
+               <sys_language_uid>0</sys_language_uid>
+               <l18n_parent>0</l18n_parent>
+               <l18n_diffsource></l18n_diffsource>
+               <sorting>512</sorting>
+               <deleted>0</deleted>
+               <hidden>0</hidden>
+               <title>Hotel 2 (m:n Attr)</title>
+               <offers>1</offers>
+       </tx_irretutorial_mnattr_hotel>
+       <tx_irretutorial_mnattr_hotel_offer_rel>
+               <uid>1</uid>
+               <pid>1</pid>
+               <cruser_id>1</cruser_id>
+               <sys_language_uid>0</sys_language_uid>
+               <l18n_parent>0</l18n_parent>
+               <l18n_diffsource></l18n_diffsource>
+               <deleted>0</deleted>
+               <hidden>0</hidden>
+               <hotelid>1</hotelid>
+               <offerid>1</offerid>
+               <hotelsort>1</hotelsort>
+               <offersort>0</offersort>
+               <quality>2</quality>
+               <allincl>1</allincl>
+       </tx_irretutorial_mnattr_hotel_offer_rel>
+       <tx_irretutorial_mnattr_hotel_offer_rel>
+               <uid>2</uid>
+               <pid>1</pid>
+               <cruser_id>1</cruser_id>
+               <sys_language_uid>0</sys_language_uid>
+               <l18n_parent>0</l18n_parent>
+               <l18n_diffsource></l18n_diffsource>
+               <deleted>0</deleted>
+               <hidden>0</hidden>
+               <hotelid>2</hotelid>
+               <offerid>2</offerid>
+               <hotelsort>1</hotelsort>
+               <offersort>0</offersort>
+               <quality>4</quality>
+               <allincl>0</allincl>
+       </tx_irretutorial_mnattr_hotel_offer_rel>
+       <tx_irretutorial_mnattr_offer>
+               <uid>1</uid>
+               <pid>1</pid>
+               <cruser_id>1</cruser_id>
+               <sys_language_uid>0</sys_language_uid>
+               <l18n_parent>0</l18n_parent>
+               <l18n_diffsource></l18n_diffsource>
+               <sorting>256</sorting>
+               <deleted>0</deleted>
+               <hidden>0</hidden>
+               <title>Offer 1 (m:n Attr)</title>
+               <hotels>0</hotels>
+       </tx_irretutorial_mnattr_offer>
+       <tx_irretutorial_mnattr_offer>
+               <uid>2</uid>
+               <pid>1</pid>
+               <cruser_id>1</cruser_id>
+               <sys_language_uid>0</sys_language_uid>
+               <l18n_parent>0</l18n_parent>
+               <l18n_diffsource></l18n_diffsource>
+               <sorting>512</sorting>
+               <deleted>0</deleted>
+               <hidden>0</hidden>
+               <title>Offer 2 (m:n Attr)</title>
+               <hotels>0</hotels>
+       </tx_irretutorial_mnattr_offer>
+       <tx_irretutorial_mnmmasym_hotel>
+               <uid>1</uid>
+               <pid>1</pid>
+               <cruser_id>1</cruser_id>
+               <sys_language_uid>0</sys_language_uid>
+               <l18n_parent>0</l18n_parent>
+               <l18n_diffsource></l18n_diffsource>
+               <sorting>256</sorting>
+               <deleted>0</deleted>
+               <hidden>0</hidden>
+               <title>Hotel 1 (m:n (MM) ASym)</title>
+               <offers>2</offers>
+       </tx_irretutorial_mnmmasym_hotel>
+       <tx_irretutorial_mnmmasym_hotel>
+               <uid>2</uid>
+               <pid>1</pid>
+               <cruser_id>1</cruser_id>
+               <sys_language_uid>0</sys_language_uid>
+               <l18n_parent>0</l18n_parent>
+               <l18n_diffsource></l18n_diffsource>
+               <sorting>512</sorting>
+               <deleted>0</deleted>
+               <hidden>0</hidden>
+               <title>Hotel 2 (m:n (MM) ASym)</title>
+               <offers>1</offers>
+       </tx_irretutorial_mnmmasym_hotel>
+       <tx_irretutorial_mnmmasym_hotel_offer_rel>
+               <uid>1</uid>
+               <uid_local>1</uid_local>
+               <uid_foreign>1</uid_foreign>
+               <tablenames></tablenames>
+               <sorting>1</sorting>
+               <sorting_foreign>0</sorting_foreign>
+               <ident></ident>
+       </tx_irretutorial_mnmmasym_hotel_offer_rel>
+       <tx_irretutorial_mnmmasym_hotel_offer_rel>
+               <uid>2</uid>
+               <uid_local>1</uid_local>
+               <uid_foreign>2</uid_foreign>
+               <tablenames></tablenames>
+               <sorting>2</sorting>
+               <sorting_foreign>0</sorting_foreign>
+               <ident></ident>
+       </tx_irretutorial_mnmmasym_hotel_offer_rel>
+       <tx_irretutorial_mnmmasym_hotel_offer_rel>
+               <uid>3</uid>
+               <uid_local>2</uid_local>
+               <uid_foreign>3</uid_foreign>
+               <tablenames></tablenames>
+               <sorting>1</sorting>
+               <sorting_foreign>0</sorting_foreign>
+               <ident></ident>
+       </tx_irretutorial_mnmmasym_hotel_offer_rel>
+       <tx_irretutorial_mnmmasym_offer>
+               <uid>1</uid>
+               <pid>1</pid>
+               <cruser_id>1</cruser_id>
+               <sys_language_uid>0</sys_language_uid>
+               <l18n_parent>0</l18n_parent>
+               <l18n_diffsource></l18n_diffsource>
+               <sorting>256</sorting>
+               <deleted>0</deleted>
+               <hidden>0</hidden>
+               <title>Offer 1.1 (m:n (MM) ASym)</title>
+               <hotels>0</hotels>
+               <prices>1</prices>
+       </tx_irretutorial_mnmmasym_offer>
+       <tx_irretutorial_mnmmasym_offer>
+               <uid>2</uid>
+               <pid>1</pid>
+               <cruser_id>1</cruser_id>
+               <sys_language_uid>0</sys_language_uid>
+               <l18n_parent>0</l18n_parent>
+               <l18n_diffsource></l18n_diffsource>
+               <sorting>128</sorting>
+               <deleted>0</deleted>
+               <hidden>0</hidden>
+               <title>Offer 1.2 (m:n (MM) ASym)</title>
+               <hotels>0</hotels>
+               <prices>1</prices>
+       </tx_irretutorial_mnmmasym_offer>
+       <tx_irretutorial_mnmmasym_offer>
+               <uid>3</uid>
+               <pid>1</pid>
+               <cruser_id>1</cruser_id>
+               <sys_language_uid>0</sys_language_uid>
+               <l18n_parent>0</l18n_parent>
+               <l18n_diffsource></l18n_diffsource>
+               <sorting>64</sorting>
+               <deleted>0</deleted>
+               <hidden>0</hidden>
+               <title>Offer 2.1 (m:n (MM) ASym)</title>
+               <hotels>0</hotels>
+               <prices>1</prices>
+       </tx_irretutorial_mnmmasym_offer>
+       <tx_irretutorial_mnmmasym_offer_price_rel>
+               <uid>1</uid>
+               <uid_local>1</uid_local>
+               <uid_foreign>1</uid_foreign>
+               <tablenames></tablenames>
+               <sorting>1</sorting>
+               <sorting_foreign>0</sorting_foreign>
+               <ident></ident>
+       </tx_irretutorial_mnmmasym_offer_price_rel>
+       <tx_irretutorial_mnmmasym_offer_price_rel>
+               <uid>2</uid>
+               <uid_local>2</uid_local>
+               <uid_foreign>2</uid_foreign>
+               <tablenames></tablenames>
+               <sorting>1</sorting>
+               <sorting_foreign>0</sorting_foreign>
+               <ident></ident>
+       </tx_irretutorial_mnmmasym_offer_price_rel>
+       <tx_irretutorial_mnmmasym_offer_price_rel>
+               <uid>3</uid>
+               <uid_local>3</uid_local>
+               <uid_foreign>3</uid_foreign>
+               <tablenames></tablenames>
+               <sorting>1</sorting>
+               <sorting_foreign>0</sorting_foreign>
+               <ident></ident>
+       </tx_irretutorial_mnmmasym_offer_price_rel>
+       <tx_irretutorial_mnmmasym_price>
+               <uid>1</uid>
+               <pid>1</pid>
+               <cruser_id>1</cruser_id>
+               <sys_language_uid>0</sys_language_uid>
+               <l18n_parent>0</l18n_parent>
+               <l18n_diffsource></l18n_diffsource>
+               <sorting>256</sorting>
+               <deleted>0</deleted>
+               <hidden>0</hidden>
+               <title>Price 1.1.1 (m:n (MM) ASym)</title>
+               <price>567.00</price>
+               <offers>0</offers>
+       </tx_irretutorial_mnmmasym_price>
+       <tx_irretutorial_mnmmasym_price>
+               <uid>2</uid>
+               <pid>1</pid>
+               <cruser_id>1</cruser_id>
+               <sys_language_uid>0</sys_language_uid>
+               <l18n_parent>0</l18n_parent>
+               <l18n_diffsource></l18n_diffsource>
+               <sorting>128</sorting>
+               <deleted>0</deleted>
+               <hidden>0</hidden>
+               <title>Price 1.2.2 (m:n (MM) ASym)</title>
+               <price>567.00</price>
+               <offers>0</offers>
+       </tx_irretutorial_mnmmasym_price>
+       <tx_irretutorial_mnmmasym_price>
+               <uid>3</uid>
+               <pid>1</pid>
+               <cruser_id>1</cruser_id>
+               <sys_language_uid>0</sys_language_uid>
+               <l18n_parent>0</l18n_parent>
+               <l18n_diffsource></l18n_diffsource>
+               <sorting>64</sorting>
+               <deleted>0</deleted>
+               <hidden>0</hidden>
+               <title>Price (m:n (MM) ASym)</title>
+               <price>223.00</price>
+               <offers>0</offers>
+       </tx_irretutorial_mnmmasym_price>
+       <tx_irretutorial_mnsym_hotel>
+               <uid>1</uid>
+               <pid>1</pid>
+               <cruser_id>1</cruser_id>
+               <sys_language_uid>0</sys_language_uid>
+               <l18n_parent>0</l18n_parent>
+               <l18n_diffsource></l18n_diffsource>
+               <sorting>256</sorting>
+               <deleted>0</deleted>
+               <hidden>0</hidden>
+               <title>Hotel 1 (mm sym)</title>
+               <branches>2</branches>
+       </tx_irretutorial_mnsym_hotel>
+       <tx_irretutorial_mnsym_hotel>
+               <uid>2</uid>
+               <pid>1</pid>
+               <cruser_id>1</cruser_id>
+               <sys_language_uid>0</sys_language_uid>
+               <l18n_parent>0</l18n_parent>
+               <l18n_diffsource></l18n_diffsource>
+               <sorting>128</sorting>
+               <deleted>0</deleted>
+               <hidden>0</hidden>
+               <title>Hotel Branch 1.1 (mm sym)</title>
+               <branches>1</branches>
+       </tx_irretutorial_mnsym_hotel>
+       <tx_irretutorial_mnsym_hotel>
+               <uid>3</uid>
+               <pid>1</pid>
+               <cruser_id>1</cruser_id>
+               <sys_language_uid>0</sys_language_uid>
+               <l18n_parent>0</l18n_parent>
+               <l18n_diffsource></l18n_diffsource>
+               <sorting>192</sorting>
+               <deleted>0</deleted>
+               <hidden>0</hidden>
+               <title>Hotel branch 1.2 (mm sym)</title>
+               <branches>0</branches>
+       </tx_irretutorial_mnsym_hotel>
+       <tx_irretutorial_mnsym_hotel_rel>
+               <uid>1</uid>
+               <pid>1</pid>
+               <cruser_id>1</cruser_id>
+               <sys_language_uid>0</sys_language_uid>
+               <l18n_parent>0</l18n_parent>
+               <l18n_diffsource></l18n_diffsource>
+               <deleted>0</deleted>
+               <hidden>0</hidden>
+               <hotelid>1</hotelid>
+               <branchid>2</branchid>
+               <hotelsort>1</hotelsort>
+               <branchsort>1</branchsort>
+       </tx_irretutorial_mnsym_hotel_rel>
+       <tx_irretutorial_mnsym_hotel_rel>
+               <uid>2</uid>
+               <pid>1</pid>
+               <cruser_id>1</cruser_id>
+               <sys_language_uid>0</sys_language_uid>
+               <l18n_parent>0</l18n_parent>
+               <l18n_diffsource></l18n_diffsource>
+               <deleted>0</deleted>
+               <hidden>0</hidden>
+               <hotelid>1</hotelid>
+               <branchid>3</branchid>
+               <hotelsort>2</hotelsort>
+               <branchsort>0</branchsort>
+       </tx_irretutorial_mnsym_hotel_rel>
+</dataset>
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseImports/pages.xml b/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseImports/pages.xml
new file mode 100644 (file)
index 0000000..8f5b293
--- /dev/null
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<dataset>
+       <pages>
+               <uid>1</uid>
+               <pid>0</pid>
+               <title>Root</title>
+               <doktype>1</doktype>
+               <deleted>0</deleted>
+               <perms_everybody>15</perms_everybody>
+       </pages>
+       <pages>
+               <uid>2</uid>
+               <pid>1</pid>
+               <title>Dummy 1-2</title>
+               <doktype>1</doktype>
+               <deleted>0</deleted>
+               <perms_everybody>15</perms_everybody>
+       </pages>
+</dataset>
\ No newline at end of file
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseImports/sys_file-export-pages-and-tt-content.xml b/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseImports/sys_file-export-pages-and-tt-content.xml
new file mode 100644 (file)
index 0000000..4b62a14
--- /dev/null
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<dataset>
+       <sys_file>
+               <uid>4</uid>
+               <pid>0</pid>
+               <storage>0</storage>
+               <type>1</type>
+               <identifier>/typo3conf/ext/template_extension/Resources/Public/Templates/Empty.html</identifier>
+               <identifier_hash>ae03df120da87352822f4aae6d476086cb8c0cf8</identifier_hash>
+               <folder_hash>85051482e1ba204348a9b9f6c1a37069e77de027</folder_hash>
+               <extension>html</extension>
+               <mime_type>text/html</mime_type>
+               <name>Empty.html</name>
+               <sha1>4a53ba5b5a156b82e3efd443f9a402f8c6e6dd08</sha1>
+               <size>92</size>
+               <creation_date>1400176659</creation_date>
+               <modification_date>1400176659</modification_date>
+       </sys_file>
+</dataset>
\ No newline at end of file
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseImports/sys_file.xml b/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseImports/sys_file.xml
new file mode 100644 (file)
index 0000000..7d6ecab
--- /dev/null
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="utf-8"?>
+<dataset>
+       <sys_file>
+               <uid>1</uid>
+               <pid>0</pid>
+               <storage>1</storage>
+               <type>2</type>
+               <identifier>/user_upload/typo3_image2.jpg</identifier>
+               <identifier_hash>f90bb9a35622f35b5279195e324eddbaec8164b2</identifier_hash>
+               <folder_hash>19669f1e02c2f16705ec7587044c66443be70725</folder_hash>
+               <extension>jpg</extension>
+               <mime_type>image/jpeg</mime_type>
+               <name>typo3_image2.jpg</name>
+               <sha1>da9acdf1e105784a57bbffec9520969578287797</sha1>
+               <size>7958</size>
+               <creation_date>1389878273</creation_date>
+               <modification_date>1389878273</modification_date>
+       </sys_file>
+       <sys_file>
+               <uid>2</uid>
+               <pid>0</pid>
+               <storage>1</storage>
+               <type>2</type>
+               <identifier>/user_upload/typo3_image3.jpg</identifier>
+               <identifier_hash>25777b72e5e1cbed2d1b33e4fe5b737304b5bd28</identifier_hash>
+               <folder_hash>19669f1e02c2f16705ec7587044c66443be70725</folder_hash>
+               <extension>jpg</extension>
+               <mime_type>image/jpeg</mime_type>
+               <name>typo3_image3.jpg</name>
+               <sha1>e873c1e2ffd0f191e183a1057de3eef4d62e782d</sha1>
+               <size>5565</size>
+               <creation_date>1393346082</creation_date>
+               <modification_date>1392907534</modification_date>
+       </sys_file>
+       <sys_file>
+               <uid>3</uid>
+               <pid>0</pid>
+               <storage>1</storage>
+               <type>2</type>
+               <identifier>/user_upload/typo3_image5.jpg</identifier>
+               <identifier_hash>8180e85d25c96697ec9d2004683216831b91ffc1</identifier_hash>
+               <folder_hash>19669f1e02c2f16705ec7587044c66443be70725</folder_hash>
+               <extension>jpg</extension>
+               <mime_type>image/jpeg</mime_type>
+               <name>typo3_image5.jpg</name>
+               <sha1>c3511df85d21bc578faf71c6a19eeb3ff44af370</sha1>
+               <size>7425</size>
+               <creation_date>1393432184</creation_date>
+               <modification_date>1393432183</modification_date>
+       </sys_file>
+</dataset>
\ No newline at end of file
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseImports/sys_file_corrupt.xml b/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseImports/sys_file_corrupt.xml
new file mode 100644 (file)
index 0000000..fb6cb55
--- /dev/null
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<dataset>
+       <sys_file>
+               <uid>1</uid>
+               <pid>0</pid>
+               <storage>1</storage>
+               <type>2</type>
+               <identifier>/user_upload/typo3_image2.jpg</identifier>
+               <identifier_hash>f90bb9a35622f35b5279195e324eddbaec8164b2</identifier_hash>
+               <folder_hash>19669f1e02c2f16705ec7587044c66443be70725</folder_hash>
+               <extension>jpg</extension>
+               <mime_type>image/jpeg</mime_type>
+               <name>typo3_image2.jpg</name>
+               <sha1>Xa9acdf1e105784a57bbffec9520969578287797</sha1>
+               <size>1958</size>
+               <creation_date>1389878273</creation_date>
+               <modification_date>1389878273</modification_date>
+       </sys_file>
+</dataset>
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseImports/sys_file_metadata.xml b/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseImports/sys_file_metadata.xml
new file mode 100644 (file)
index 0000000..708652c
--- /dev/null
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="utf-8"?>
+<dataset>
+       <sys_file_metadata>
+               <uid>1</uid>
+               <pid>0</pid>
+               <file>1</file>
+               <title>Dummy image</title>
+               <width>400</width>
+               <height>300</height>
+               <description>This is a dummy image.</description>
+               <alternative>Photo of program code</alternative>
+               <sys_language_uid>0</sys_language_uid>
+               <l10n_parent>0</l10n_parent>
+               <l10n_diffsource></l10n_diffsource>
+       </sys_file_metadata>
+       <sys_file_metadata>
+               <uid>2</uid>
+               <pid>0</pid>
+               <file>1</file>
+               <title>Beispiel Bild</title>
+               <width>0</width>
+               <height>0</height>
+               <description>Nur ein Beispielbild.</description>
+               <alternative>Foto von Programmcode</alternative>
+               <sys_language_uid>1</sys_language_uid>
+               <l10n_parent>1</l10n_parent>
+               <l10n_diffsource></l10n_diffsource>
+       </sys_file_metadata>
+</dataset>
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseImports/sys_file_reference.xml b/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseImports/sys_file_reference.xml
new file mode 100644 (file)
index 0000000..9dff3f5
--- /dev/null
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+<dataset>
+       <sys_file_reference>
+               <uid>1</uid>
+               <pid>1</pid>
+               <uid_local>1</uid_local>
+               <uid_foreign>1</uid_foreign>
+               <tablenames>tt_content</tablenames>
+               <fieldname>image</fieldname>
+               <table_local>sys_file</table_local>
+               <l10n_diffsource></l10n_diffsource>
+       </sys_file_reference>
+</dataset>
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseImports/sys_file_storage.xml b/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseImports/sys_file_storage.xml
new file mode 100644 (file)
index 0000000..b9a212e
--- /dev/null
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+<dataset>
+       <sys_file_storage>
+               <uid>1</uid>
+               <pid>0</pid>
+               <name>fileadmin/ (auto-created)</name>
+               <driver>Local</driver>
+               <configuration><![CDATA[<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3FlexForms>
+       <data>
+               <sheet index="sDEF">
+                       <language index="lDEF">
+                               <field index="basePath">
+                                       <value index="vDEF">fileadmin/</value>
+                               </field>
+                               <field index="pathType">
+                                       <value index="vDEF">relative</value>
+                               </field>
+                               <field index="caseSensitive">
+                                       <value index="vDEF">1</value>
+                               </field>
+                       </language>
+               </sheet>
+       </data>
+</T3FlexForms>]]></configuration>
+               <is_browsable>1</is_browsable>
+               <is_public>1</is_public>
+               <is_writable>1</is_writable>
+               <is_online>1</is_online>
+       </sys_file_storage>
+</dataset>
\ No newline at end of file
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseImports/sys_language.xml b/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseImports/sys_language.xml
new file mode 100644 (file)
index 0000000..cdea9af
--- /dev/null
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<dataset>
+       <sys_language>
+               <uid>1</uid>
+               <pid>0</pid>
+               <hidden>0</hidden>
+               <title>Deutsch</title>
+               <flag>de</flag>
+               <static_lang_isocode>0</static_lang_isocode>
+       </sys_language>
+</dataset>
\ No newline at end of file
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseImports/tt_content-with-image.xml b/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseImports/tt_content-with-image.xml
new file mode 100644 (file)
index 0000000..d60d2ac
--- /dev/null
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8"?>
+<dataset>
+       <tt_content>
+               <uid>1</uid>
+               <pid>1</pid>
+               <CType>textpic</CType>
+               <header>Test content</header>
+               <header_link>file:1</header_link>
+               <image>1</image>
+               <deleted>0</deleted>
+               <t3ver_oid>0</t3ver_oid>
+               <t3ver_wsid>0</t3ver_wsid>
+       </tt_content>
+</dataset>
\ No newline at end of file
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseImports/tt_content.xml b/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseImports/tt_content.xml
new file mode 100644 (file)
index 0000000..420f7cb
--- /dev/null
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<dataset>
+       <tt_content>
+               <uid>1</uid>
+               <pid>1</pid>
+               <CType>text</CType>
+               <header>Test content</header>
+               <header_link>file:2</header_link>
+               <deleted>0</deleted>
+               <t3ver_oid>0</t3ver_oid>
+               <t3ver_wsid>0</t3ver_wsid>
+       </tt_content>
+       <tt_content>
+               <uid>2</uid>
+               <pid>1</pid>
+               <CType>text</CType>
+               <header>Test content 2</header>
+               <header_link>file:4</header_link>
+               <deleted>0</deleted>
+               <t3ver_oid>0</t3ver_oid>
+               <t3ver_wsid>0</t3ver_wsid>
+       </tt_content>
+</dataset>
\ No newline at end of file
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseImports/tx_impexpgroupfiles_item.xml b/typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseImports/tx_impexpgroupfiles_item.xml
new file mode 100644 (file)
index 0000000..cde3a76
--- /dev/null
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="utf-8"?>
+<dataset>
+       <tx_impexpgroupfiles_item>
+               <uid>1</uid>
+               <pid>1</pid>
+               <title>Test item</title>
+               <images>typo3_image4.jpg</images>
+               <image_references>fileadmin/user_upload/typo3_image5.jpg</image_references>
+               <deleted>0</deleted>
+               <flexform></flexform>
+               <t3ver_oid>0</t3ver_oid>
+               <t3ver_wsid>0</t3ver_wsid>
+               <l18n_diffsource></l18n_diffsource>
+       </tx_impexpgroupfiles_item>
+       <tx_impexpgroupfiles_item>
+               <uid>2</uid>
+               <pid>2</pid>
+               <title>Test item 2</title>
+               <images></images>
+               <image_references></image_references>
+               <flexform><![CDATA[<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3FlexForms>
+       <data>
+               <sheet index="sDEF">
+                       <language index="lDEF">
+                               <field index="link">
+                                       <value index="vDEF">file:2</value>
+                               </field>
+                               <field index="images">
+                                       <value index="vDEF">typo3_image4.jpg</value>
+                               </field>
+                               <field index="image_references">
+                                       <value index="vDEF">fileadmin/user_upload/typo3_image5.jpg</value>
+                               </field>
+                       </language>
+               </sheet>
+       </data>
+</T3FlexForms>]]></flexform>
+               <deleted>0</deleted>
+               <t3ver_oid>0</t3ver_oid>
+               <t3ver_wsid>0</t3ver_wsid>
+               <l18n_diffsource></l18n_diffsource>
+       </tx_impexpgroupfiles_item>
+</dataset>
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/FileAssertions/typo3_image2_01.jpg b/typo3/sysext/impexp/Tests/Functional/Fixtures/FileAssertions/typo3_image2_01.jpg
new file mode 100644 (file)
index 0000000..5ea735b
Binary files /dev/null and b/typo3/sysext/impexp/Tests/Functional/Fixtures/FileAssertions/typo3_image2_01.jpg differ
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/MySQL/impexp-group-file-and-file_reference-item-but-images-not-included.xml b/typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/MySQL/impexp-group-file-and-file_reference-item-but-images-not-included.xml
deleted file mode 100644 (file)
index d53b697..0000000
+++ /dev/null
@@ -1,236 +0,0 @@
-<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
-<T3RecordDocument>
-       <header type="array">
-               <records type="array">
-                       <table index="pages" type="array">
-                               <rec index="1" type="array">
-                                       <uid>1</uid>
-                                       <pid>0</pid>
-                                       <title>Root</title>
-                                       <size>138</size>
-                                       <relations index="rels" type="array"></relations>
-                                       <softrefs type="array"></softrefs>
-                               </rec>
-                       </table>
-                       <table index="tx_impexpgroupfiles_item" type="array">
-                               <rec index="1" type="array">
-                                       <uid>1</uid>
-                                       <pid>1</pid>
-                                       <title>Test item</title>
-                                       <size>204</size>
-                                       <relations index="rels" type="array">
-                                               <element index="sys_file:3" type="array">
-                                                       <table>sys_file</table>
-                                                       <id>3</id>
-                                               </element>
-                                       </relations>
-                                       <softrefs type="array"></softrefs>
-                                       <filerefs type="array">
-                                               <file index="0">66a2b7534be9ebf810cd55164c5f085d</file>
-                                       </filerefs>
-                               </rec>
-                       </table>
-                       <table index="sys_file" type="array">
-                               <rec index="3" type="array">
-                                       <uid>3</uid>
-                                       <pid>0</pid>
-                                       <title>typo3_image5.jpg</title>
-                                       <size>528</size>
-                                       <relationLevel>1</relationLevel>
-                                       <relations index="rels" type="array">
-                                               <element index="sys_file_storage:1" type="array">
-                                                       <id>1</id>
-                                                       <table>sys_file_storage</table>
-                                               </element>
-                                       </relations>
-                                       <softrefs type="array"></softrefs>
-                               </rec>
-                       </table>
-                       <table index="sys_file_storage" type="array">
-                               <rec index="1" type="array">
-                                       <uid>1</uid>
-                                       <pid>0</pid>
-                                       <title>fileadmin/ (auto-created)</title>
-                                       <size>694</size>
-                                       <relationLevel>2</relationLevel>
-                                       <relations index="rels" type="array"></relations>
-                                       <softrefs type="array"></softrefs>
-                               </rec>
-                       </table>
-               </records>
-               <pid_lookup type="array">
-                       <page_contents index="0" type="array">
-                               <table index="pages" type="array">
-                                       <item index="1">1</item>
-                               </table>
-                               <table index="sys_file" type="array">
-                                       <item index="3">1</item>
-                               </table>
-                               <table index="sys_file_storage" type="array">
-                                       <item index="1">1</item>
-                               </table>
-                       </page_contents>
-                       <page_contents index="1" type="array">
-                               <table index="tx_impexpgroupfiles_item" type="array">
-                                       <item index="1">1</item>
-                               </table>
-                       </page_contents>
-               </pid_lookup>
-               <pagetree type="array">
-                       <node index="1" type="array">
-                               <uid>1</uid>
-                       </node>
-               </pagetree>
-               <files type="array">
-                       <file index="66a2b7534be9ebf810cd55164c5f085d" type="array">
-                               <filesize>6758</filesize>
-                               <filename>typo3_image4.jpg</filename>
-                               <filemtime>1393866824</filemtime>
-                               <relFileRef>uploads/tx_impexpgroupfiles/typo3_image4.jpg</relFileRef>
-                               <record_ref>tx_impexpgroupfiles_item:1/images</record_ref>
-                       </file>
-               </files>
-               <files_fal type="array">
-                       <file index="23116a2a95820388bb7eede903382d4c" type="array">
-                               <filesize>7425</filesize>
-                               <filename>typo3_image5.jpg</filename>
-                               <filemtime>1393432183</filemtime>
-                       </file>
-               </files_fal>
-       </header>
-       <records type="array">
-               <tablerow index="pages:1" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid" type="integer">1</field>
-                               <field index="pid" type="integer">0</field>
-                               <field index="deleted" type="integer">0</field>
-                               <field index="perms_everybody" type="integer">15</field>
-                               <field index="hidden" type="integer">0</field>
-                               <field index="title">Root</field>
-                               <field index="doktype" type="integer">1</field>
-                       </fieldlist>
-                       <related index="rels" type="array"></related>
-               </tablerow>
-               <tablerow index="tx_impexpgroupfiles_item:1" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid" type="integer">1</field>
-                               <field index="pid" type="integer">1</field>
-                               <field index="deleted" type="integer">0</field>
-                               <field index="hidden" type="integer">0</field>
-                               <field index="title">Test item</field>
-                               <field index="images">typo3_image4.jpg</field>
-                               <field index="image_references">fileadmin/user_upload/typo3_image5.jpg</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                               <field index="images" type="array">
-                                       <type>file</type>
-                                       <filerefs index="newValueFiles" type="array">
-                                               <file index="0" type="array">
-                                                       <filename>typo3_image4.jpg</filename>
-                                                       <ID>66a2b7534be9ebf810cd55164c5f085d</ID>
-                                               </file>
-                                       </filerefs>
-                               </field>
-                               <field index="image_references" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <table>sys_file</table>
-                                                       <id>3</id>
-                                               </element>
-                                       </relations>
-                               </field>
-                       </related>
-               </tablerow>
-               <tablerow index="sys_file:3" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid" type="integer">3</field>
-                               <field index="pid" type="integer">0</field>
-                               <field index="storage" type="integer">1</field>
-                               <field index="type">2</field>
-                               <field index="metadata" type="integer">0</field>
-                               <field index="identifier">/user_upload/typo3_image5.jpg</field>
-                               <field index="identifier_hash">8180e85d25c96697ec9d2004683216831b91ffc1</field>
-                               <field index="folder_hash">19669f1e02c2f16705ec7587044c66443be70725</field>
-                               <field index="extension">jpg</field>
-                               <field index="mime_type">image/jpeg</field>
-                               <field index="name">typo3_image5.jpg</field>
-                               <field index="sha1">c3511df85d21bc578faf71c6a19eeb3ff44af370</field>
-                               <field index="size" type="integer">7425</field>
-                               <field index="creation_date" type="integer">1393432184</field>
-                               <field index="modification_date" type="integer">1393432183</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                               <field index="storage" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>1</id>
-                                                       <table>sys_file_storage</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                       </related>
-               </tablerow>
-               <tablerow index="sys_file_storage:1" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid" type="integer">1</field>
-                               <field index="pid" type="integer">0</field>
-                               <field index="name">fileadmin/ (auto-created)</field>
-                               <field index="description" type="NULL"></field>
-                               <field index="driver">Local</field>
-                               <field index="configuration">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; standalone=&quot;yes&quot; ?&gt;
-&lt;T3FlexForms&gt;
-       &lt;data&gt;
-               &lt;sheet index=&quot;sDEF&quot;&gt;
-                       &lt;language index=&quot;lDEF&quot;&gt;
-                               &lt;field index=&quot;basePath&quot;&gt;
-                                       &lt;value index=&quot;vDEF&quot;&gt;fileadmin/&lt;/value&gt;
-                               &lt;/field&gt;
-                               &lt;field index=&quot;pathType&quot;&gt;
-                                       &lt;value index=&quot;vDEF&quot;&gt;relative&lt;/value&gt;
-                               &lt;/field&gt;
-                               &lt;field index=&quot;caseSensitive&quot;&gt;
-                                       &lt;value index=&quot;vDEF&quot;&gt;1&lt;/value&gt;
-                               &lt;/field&gt;
-                       &lt;/language&gt;
-               &lt;/sheet&gt;
-       &lt;/data&gt;
-&lt;/T3FlexForms&gt;</field>
-                               <field index="is_default" type="integer">0</field>
-                               <field index="is_browsable" type="integer">1</field>
-                               <field index="is_public" type="integer">1</field>
-                               <field index="is_writable" type="integer">1</field>
-                               <field index="is_online" type="integer">1</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                               <field index="configuration" type="array">
-                                       <type>flex</type>
-                                       <flexform index="flexFormRels" type="array">
-                                               <db_relations index="db" type="array"></db_relations>
-                                               <file_relations index="file" type="array"></file_relations>
-                                               <softref_relations index="softrefs" type="array"></softref_relations>
-                                       </flexform>
-                               </field>
-                       </related>
-               </tablerow>
-       </records>
-       <files type="array">
-               <file index="66a2b7534be9ebf810cd55164c5f085d" type="array">
-                       <filesize>6758</filesize>
-                       <filename>typo3_image4.jpg</filename>
-                       <filemtime>1393866824</filemtime>
-                       <relFileRef>uploads/tx_impexpgroupfiles/typo3_image4.jpg</relFileRef>
-                       <record_ref>tx_impexpgroupfiles_item:1/images</record_ref>
-                       <content_md5>e1c5c4e1e34e19e2facb438752e06c3f</content_md5>
-               </file>
-       </files>
-       <files_fal type="array">
-               <file index="23116a2a95820388bb7eede903382d4c" type="array">
-                       <filesize>7425</filesize>
-                       <filename>typo3_image5.jpg</filename>
-                       <filemtime>1393432183</filemtime>
-                       <content_sha1>c3511df85d21bc578faf71c6a19eeb3ff44af370</content_sha1>
-               </file>
-       </files_fal>
-</T3RecordDocument>
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/MySQL/impexp-group-file-and-file_reference-item-but-images-not-included.xml.files/c3511df85d21bc578faf71c6a19eeb3ff44af370 b/typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/MySQL/impexp-group-file-and-file_reference-item-but-images-not-included.xml.files/c3511df85d21bc578faf71c6a19eeb3ff44af370
deleted file mode 100644 (file)
index 5806162..0000000
Binary files a/typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/MySQL/impexp-group-file-and-file_reference-item-but-images-not-included.xml.files/c3511df85d21bc578faf71c6a19eeb3ff44af370 and /dev/null differ
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/MySQL/impexp-group-file-and-file_reference-item-but-images-not-included.xml.files/e1c5c4e1e34e19e2facb438752e06c3f b/typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/MySQL/impexp-group-file-and-file_reference-item-but-images-not-included.xml.files/e1c5c4e1e34e19e2facb438752e06c3f
deleted file mode 100644 (file)
index 2e0a9b6..0000000
Binary files a/typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/MySQL/impexp-group-file-and-file_reference-item-but-images-not-included.xml.files/e1c5c4e1e34e19e2facb438752e06c3f and /dev/null differ
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/MySQL/impexp-group-file-and-file_reference-item-in-ff.xml b/typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/MySQL/impexp-group-file-and-file_reference-item-in-ff.xml
deleted file mode 100644 (file)
index a0ee45f..0000000
+++ /dev/null
@@ -1,700 +0,0 @@
-<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
-<T3RecordDocument>
-       <header type="array">
-               <records type="array">
-                       <table index="pages" type="array">
-                               <rec index="2" type="array">
-                                       <uid>2</uid>
-                                       <pid>1</pid>
-                                       <title>Dummy 1-2</title>
-                                       <size>143</size>
-                                       <relations index="rels" type="array"></relations>
-                                       <softrefs type="array"></softrefs>
-                               </rec>
-                       </table>
-                       <table index="tx_impexpgroupfiles_item" type="array">
-                               <rec index="2" type="array">
-                                       <uid>2</uid>
-                                       <pid>2</pid>
-                                       <title>Test item 2</title>
-                                       <size>643</size>
-                                       <relations index="rels" type="array">
-                                               <element index="sys_file:3" type="array">
-                                                       <table>sys_file</table>
-                                                       <id>3</id>
-                                               </element>
-                                       </relations>
-                                       <softrefs type="array">
-                                               <softref_element index="flexform:sDEF/lDEF/link/vDEF/:typolink:e9e93f03ab903de1d9b8860afad1cb61:0" type="array">
-                                                       <field>flexform</field>
-                                                       <spKey>typolink</spKey>
-                                                       <structurePath>sDEF/lDEF/link/vDEF/</structurePath>
-                                                       <matchString>file:2</matchString>
-                                                       <subst type="array">
-                                                               <type>db</type>
-                                                               <recordRef>sys_file:2</recordRef>
-                                                               <tokenID>e9e93f03ab903de1d9b8860afad1cb61</tokenID>
-                                                               <tokenValue>file:2</tokenValue>
-                                                       </subst>
-                                               </softref_element>
-                                       </softrefs>
-                                       <filerefs type="array">
-                                               <file index="0">66a2b7534be9ebf810cd55164c5f085d</file>
-                                       </filerefs>
-                               </rec>
-                       </table>
-                       <table index="sys_file" type="array">
-                               <rec index="3" type="array">
-                                       <uid>3</uid>
-                                       <pid>0</pid>
-                                       <title>typo3_image5.jpg</title>
-                                       <size>528</size>
-                                       <relationLevel>1</relationLevel>
-                                       <relations index="rels" type="array">
-                                               <element index="sys_file_storage:1" type="array">
-                                                       <id>1</id>
-                                                       <table>sys_file_storage</table>
-                                               </element>
-                                       </relations>
-                                       <softrefs type="array"></softrefs>
-                               </rec>
-                               <rec index="2" type="array">
-                                       <uid>2</uid>
-                                       <pid>0</pid>
-                                       <title>typo3_image3.jpg</title>
-                                       <size>528</size>
-                                       <relationLevel>1</relationLevel>
-                                       <relations index="rels" type="array">
-                                               <element index="sys_file_storage:1" type="array">
-                                                       <id>1</id>
-                                                       <table>sys_file_storage</table>
-                                               </element>
-                                       </relations>
-                                       <softrefs type="array"></softrefs>
-                               </rec>
-                       </table>
-                       <table index="sys_file_storage" type="array">
-                               <rec index="1" type="array">
-                                       <uid>1</uid>
-                                       <pid>0</pid>
-                                       <title>fileadmin/ (auto-created)</title>
-                                       <size>694</size>
-                                       <relationLevel>2</relationLevel>
-                                       <relations index="rels" type="array"></relations>
-                                       <softrefs type="array"></softrefs>
-                               </rec>
-                       </table>
-               </records>
-               <pid_lookup type="array">
-                       <page_contents index="1" type="array">
-                               <table index="pages" type="array">
-                                       <item index="2">1</item>
-                               </table>
-                       </page_contents>
-                       <page_contents index="2" type="array">
-                               <table index="tx_impexpgroupfiles_item" type="array">
-                                       <item index="2">1</item>
-                               </table>
-                       </page_contents>
-                       <page_contents index="0" type="array">
-                               <table index="sys_file" type="array">
-                                       <item index="3">1</item>
-                                       <item index="2">1</item>
-                               </table>
-                               <table index="sys_file_storage" type="array">
-                                       <item index="1">1</item>
-                               </table>
-                       </page_contents>
-               </pid_lookup>
-               <pagetree type="array">
-                       <node index="2" type="array">
-                               <uid>2</uid>
-                       </node>
-               </pagetree>
-               <files type="array">
-                       <file index="66a2b7534be9ebf810cd55164c5f085d" type="array">
-                               <filesize>6758</filesize>
-                               <filename>typo3_image4.jpg</filename>
-                               <filemtime>1393866824</filemtime>
-                               <relFileRef>uploads/tx_impexpgroupfiles/typo3_image4.jpg</relFileRef>
-                               <record_ref>tx_impexpgroupfiles_item:2/flexform</record_ref>
-                       </file>
-               </files>
-               <files_fal type="array">
-                       <file index="23116a2a95820388bb7eede903382d4c" type="array">
-                               <filesize>7425</filesize>
-                               <filename>typo3_image5.jpg</filename>
-                               <filemtime>1393432183</filemtime>
-                       </file>
-                       <file index="0e290b0bb4f0b57f7f58fd5c342117fe" type="array">
-                               <filesize>5565</filesize>
-                               <filename>typo3_image3.jpg</filename>
-                               <filemtime>1392907534</filemtime>
-                       </file>
-               </files_fal>
-       </header>
-       <records type="array">
-               <tablerow index="pages:2" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid" type="integer">2</field>
-                               <field index="pid" type="integer">1</field>
-                               <field index="deleted" type="integer">0</field>
-                               <field index="perms_everybody" type="integer">15</field>
-                               <field index="hidden" type="integer">0</field>
-                               <field index="title">Dummy 1-2</field>
-                               <field index="doktype" type="integer">1</field>
-                       </fieldlist>
-                       <related index="rels" type="array"></related>
-               </tablerow>
-               <tablerow index="tx_impexpgroupfiles_item:2" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid" type="integer">2</field>
-                               <field index="pid" type="integer">2</field>
-                               <field index="deleted" type="integer">0</field>
-                               <field index="hidden" type="integer">0</field>
-                               <field index="title">Test item 2</field>
-                               <field index="images"></field>
-                               <field index="image_references"></field>
-                               <field index="flexform">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; standalone=&quot;yes&quot; ?&gt;
-&lt;T3FlexForms&gt;
-       &lt;data&gt;
-               &lt;sheet index=&quot;sDEF&quot;&gt;
-                       &lt;language index=&quot;lDEF&quot;&gt;
-                               &lt;field index=&quot;link&quot;&gt;
-                                       &lt;value index=&quot;vDEF&quot;&gt;file:2&lt;/value&gt;
-                               &lt;/field&gt;
-                               &lt;field index=&quot;images&quot;&gt;
-                                       &lt;value index=&quot;vDEF&quot;&gt;typo3_image4.jpg&lt;/value&gt;
-                               &lt;/field&gt;
-                               &lt;field index=&quot;image_references&quot;&gt;
-                                       &lt;value index=&quot;vDEF&quot;&gt;fileadmin/user_upload/typo3_image5.jpg&lt;/value&gt;
-                               &lt;/field&gt;
-                       &lt;/language&gt;
-               &lt;/sheet&gt;
-       &lt;/data&gt;
-&lt;/T3FlexForms&gt;</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                               <field index="flexform" type="array">
-                                       <type>flex</type>
-                                       <flexform index="flexFormRels" type="array">
-                                               <db_relations index="db" type="array">
-                                                       <path index="sDEF/lDEF/image_references/vDEF/" type="array">
-                                                               <element index="0" type="array">
-                                                                       <table>sys_file</table>
-                                                                       <id>3</id>
-                                                               </element>
-                                                       </path>
-                                               </db_relations>
-                                               <file_relations index="file" type="array">
-                                                       <path index="sDEF/lDEF/images/vDEF/" type="array">
-                                                               <element index="0" type="array">
-                                                                       <filename>typo3_image4.jpg</filename>
-                                                                       <ID>66a2b7534be9ebf810cd55164c5f085d</ID>
-                                                               </element>
-                                                       </path>
-                                               </file_relations>
-                                               <softref_relations index="softrefs" type="array">
-                                                       <structurePath index="sDEF/lDEF/link/vDEF/" type="array">
-                                                               <keys type="array">
-                                                                       <softref_key index="typolink" type="array">
-                                                                               <softref_element index="e9e93f03ab903de1d9b8860afad1cb61:0" type="array">
-                                                                                       <matchString>file:2</matchString>
-                                                                                       <subst type="array">
-                                                                                               <type>db</type>
-                                                                                               <recordRef>sys_file:2</recordRef>
-                                                                                               <tokenID>e9e93f03ab903de1d9b8860afad1cb61</tokenID>
-                                                                                               <tokenValue>file:2</tokenValue>
-                                                                                       </subst>
-                                                                               </softref_element>
-                                                                       </softref_key>
-                                                               </keys>
-                                                               <tokenizedContent>{softref:e9e93f03ab903de1d9b8860afad1cb61}</tokenizedContent>
-                                                       </structurePath>
-                                               </softref_relations>
-                                       </flexform>
-                               </field>
-                       </related>
-               </tablerow>
-               <tablerow index="sys_file:3" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid" type="integer">3</field>
-                               <field index="pid" type="integer">0</field>
-                               <field index="storage" type="integer">1</field>
-                               <field index="type">2</field>
-                               <field index="metadata" type="integer">0</field>
-                               <field index="identifier">/user_upload/typo3_image5.jpg</field>
-                               <field index="identifier_hash">8180e85d25c96697ec9d2004683216831b91ffc1</field>
-                               <field index="folder_hash">19669f1e02c2f16705ec7587044c66443be70725</field>
-                               <field index="extension">jpg</field>
-                               <field index="mime_type">image/jpeg</field>
-                               <field index="name">typo3_image5.jpg</field>
-                               <field index="sha1">c3511df85d21bc578faf71c6a19eeb3ff44af370</field>
-                               <field index="size" type="integer">7425</field>
-                               <field index="creation_date" type="integer">1393432184</field>
-                               <field index="modification_date" type="integer">1393432183</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                               <field index="storage" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>1</id>
-                                                       <table>sys_file_storage</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                       </related>
-               </tablerow>
-               <tablerow index="sys_file:2" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid" type="integer">2</field>
-                               <field index="pid" type="integer">0</field>
-                               <field index="storage" type="integer">1</field>
-                               <field index="type">2</field>
-                               <field index="metadata" type="integer">0</field>
-                               <field index="identifier">/user_upload/typo3_image3.jpg</field>
-                               <field index="identifier_hash">25777b72e5e1cbed2d1b33e4fe5b737304b5bd28</field>
-                               <field index="folder_hash">19669f1e02c2f16705ec7587044c66443be70725</field>
-                               <field index="extension">jpg</field>
-                               <field index="mime_type">image/jpeg</field>
-                               <field index="name">typo3_image3.jpg</field>
-                               <field index="sha1">e873c1e2ffd0f191e183a1057de3eef4d62e782d</field>
-                               <field index="size" type="integer">5565</field>
-                               <field index="creation_date" type="integer">1393346082</field>
-                               <field index="modification_date" type="integer">1392907534</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                               <field index="storage" type="array">
-                                       <type>db</type>
-                                       <relations index="itemArray" type="array">
-                                               <element index="0" type="array">
-                                                       <id>1</id>
-                                                       <table>sys_file_storage</table>
-                                               </element>
-                                       </relations>
-                               </field>
-                       </related>
-               </tablerow>
-               <tablerow index="sys_file_storage:1" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid" type="integer">1</field>
-                               <field index="pid" type="integer">0</field>
-                               <field index="name">fileadmin/ (auto-created)</field>
-                               <field index="description" type="NULL"></field>
-                               <field index="driver">Local</field>
-                               <field index="configuration">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; standalone=&quot;yes&quot; ?&gt;
-&lt;T3FlexForms&gt;
-       &lt;data&gt;
-               &lt;sheet index=&quot;sDEF&quot;&gt;
-                       &lt;language index=&quot;lDEF&quot;&gt;
-                               &lt;field index=&quot;basePath&quot;&gt;
-                                       &lt;value index=&quot;vDEF&quot;&gt;fileadmin/&lt;/value&gt;
-                               &lt;/field&gt;
-                               &lt;field index=&quot;pathType&quot;&gt;
-                                       &lt;value index=&quot;vDEF&quot;&gt;relative&lt;/value&gt;
-                               &lt;/field&gt;
-                               &lt;field index=&quot;caseSensitive&quot;&gt;
-                                       &lt;value index=&quot;vDEF&quot;&gt;1&lt;/value&gt;
-                               &lt;/field&gt;
-                       &lt;/language&gt;
-               &lt;/sheet&gt;
-       &lt;/data&gt;
-&lt;/T3FlexForms&gt;</field>
-                               <field index="is_default" type="integer">0</field>
-                               <field index="is_browsable" type="integer">1</field>
-                               <field index="is_public" type="integer">1</field>
-                               <field index="is_writable" type="integer">1</field>
-                               <field index="is_online" type="integer">1</field>
-                       </fieldlist>
-                       <related index="rels" type="array">
-                               <field index="configuration" type="array">
-                                       <type>flex</type>
-                                       <flexform index="flexFormRels" type="array">
-                                               <db_relations index="db" type="array"></db_relations>
-                                               <file_relations index="file" type="array"></file_relations>
-                                               <softref_relations index="softrefs" type="array"></softref_relations>
-                                       </flexform>
-                               </field>
-                       </related>
-               </tablerow>
-       </records>
-       <files type="array">
-               <file index="66a2b7534be9ebf810cd55164c5f085d" type="array">
-                       <filesize>6758</filesize>
-                       <filename>typo3_image4.jpg</filename>
-                       <filemtime>1393866824</filemtime>
-                       <relFileRef>uploads/tx_impexpgroupfiles/typo3_image4.jpg</relFileRef>
-                       <record_ref>tx_impexpgroupfiles_item:2/flexform</record_ref>
-                       <content base64="1">
-/9j/4AAQSkZJRgABAQEAZABkAAD/2wBDABwTFRgVERwYFhgfHRwhKUUtKSYmKVQ8QDJFZFhpZ2JY
-YF9ufJ6GbnWWd19giruLlqOpsbOxa4TC0MGszp6usar/2wBDAR0fHykkKVEtLVGqcmByqqqqqqqq
-qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqr/wAARCAELAZADASIA
-AhEBAxEB/8QAGgABAQADAQEAAAAAAAAAAAAAAAECAwQFBv/EADUQAAICAQMDAwMCBQQBBQAAAAAB
-AhEDBCExEkFREyJhBTJxQoEjUpGhsRQzwdHhFSU0YvD/xAAZAQEAAwEBAAAAAAAAAAAAAAAAAQID
-BAX/xAAkEQEBAAICAgIDAQADAAAAAAAAAQIRAyESMUFRBBMyIhRSkf/aAAwDAQACEQMRAD8A88AH
-U5QAAACgQFAEBQBAUAQFAEBQBAUAQFAEBQBAUAQAAAAAAASAAAAAA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uDqg23wY9z
-YuxtJplbtQASgAAAAAAAAAAAAAACS4AoCAAAAAAB/9k=
-</content>
-                       <content_md5>e1c5c4e1e34e19e2facb438752e06c3f</content_md5>
-               </file>
-       </files>
-       <files_fal type="array">
-               <file index="23116a2a95820388bb7eede903382d4c" type="array">
-                       <filesize>7425</filesize>
-                       <filename>typo3_image5.jpg</filename>
-                       <filemtime>1393432183</filemtime>
-                       <content base64="1">
-/9j/4AAQSkZJRgABAQEAZABkAAD/2wBDABALDA4MChAODQ4SERATGCgaGBYWGDEjJR0oOjM9PDkz
-ODdASFxOQERXRTc4UG1RV19iZ2hnPk1xeXBkeFxlZ2P/2wBDARESEhgVGC8aGi9jQjhCY2NjY2Nj
-Y2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2P/wAARCADIASwDASIA
-AhEBAxEB/8QAGgAAAgMBAQAAAAAAAAAAAAAAAAIDBAUBBv/EADcQAAEEAQIEBAQEBgMAAwAAAAEA
-AgMRBBIhBTFBURMiYXEUMoGRBlKhsSNCwdHh8BUz8UNigv/EABoBAQEBAQEBAQAAAAAAAAAAAAAB
-AgMEBQb/xAAnEQACAgMAAgAGAgMAAAAAAAAAAQIRAxIhBDEFEyJBUWEysSPB8P/aAAwDAQACEQMR
-AD8Ax6XaTUuUvceA5SKTUikBykUmpCAWkUmpFIBaRSakUgFpFJqRSoFpFJqRSA5SKXaRSAWl2l2k
-UgOUil2kUgOUil2l2kAtIpNS5SA5S5SakUgFpFJqRSAWl2l2kUhBaRSakUgFpFJqRSAWkUmpFIBa
-XKT0uUgO0ik1IpQHKRS7S7SAWkUmpFIBaRSakUgOUik1IpCi0ik1IpCC0ik1IpALSKTUikKLSiyZ
-48aLXJ9B3KnpVsvCblNNk6gPIOgKkrrhY1fTuNkxZMYcxwvq29wpqWNFjTYkmsGnj02V8Zzi3UWt
-o+64LOvUj3PwMjVxLVJuI4hi4fDkxzu8R5NsG1dlVOWRtoBvsVqcOzs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/EYdwO
-XdZ/EZJy+Nsbae8Vp+qvjUd28j07IfD4oYQ4tc03YQC45eyMCU24dVZBsKs8OA1OokBdjLGx0zau
-iAnc3UFXlgkc3yP0HvVrnxDr51XRdL3OINkDsgOgGgmcKbacEEJi0FtICmZC7kl0g7nmne3Q6q+q
-V1Vz3QoosCuaYLgvVR5JwEA4aNJKpNAeCT3Kvx0diqboi17gdtzSgMMYmGGaN36qIDbIvodlJFjY
-UTw0s3I28TzfohCECXImgDjj48crHUHNDgxxPe1G+HFmLT8K8F+x0DkfWihCAgl4TDrcyKR7dQ5G
-6CP+JndHpjyHD0e86f0QhARDg+QSA5/LbUHWB9DX7p5OFT00RtaKrUS8gH6BCEBIOEzGNwf4DD+Y
-aif1KhGPMxxija1zm8yQ+j7jkhChSaDhma55tkILt7cbr6Ut6DAx4YmtLQ9wG5chCoIJuGYszgAz
-wzzthpNicLGPlsm8bU1o+XT9kIUoWWuJZcuPj6oInyyOOljWi6Pc+iXhuE6FviznXkv3e4716D0Q
-hUhoDshzfJTTXqhCoOM1DmbKcIQgOXdgikOcRy5IQgEL6Gyq5zJZ4gIQNQPetkIQE8RIYRWwHNSx
-bMCEIAkYHsNKs9prb6oQgFDCOlqURkDr9UIQAHFhIdsutn2FirQhCiyvbJGa5qs0n3QhANqTB1IQ
-oDglIOy49+o2eaEKg//Z
-</content>
-                       <content_sha1>c3511df85d21bc578faf71c6a19eeb3ff44af370</content_sha1>
-               </file>
-               <file index="0e290b0bb4f0b57f7f58fd5c342117fe" type="array">
-                       <filesize>5565</filesize>
-                       <filename>typo3_image3.jpg</filename>
-                       <filemtime>1392907534</filemtime>
-                       <content base64="1">
-/9j/4AAQSkZJRgABAQEAYABgAAD/7QA4UGhvdG9zaG9wIDMuMAA4QklNBAQAAAAAABscAkEADEtp
-cGktcGx1Z2lucxwCRgAFMC43LjAA/9sAQwANCQoLCggNCwoLDg4NDxMgFRMSEhMnHB4XIC4pMTAu
-KS0sMzpKPjM2RjcsLUBXQUZMTl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pbKSZVKeBZVFgoqTKirX2NULjHsWtXbWzMXc3JKeSooi
-1zOpJvyHWynUFSNNMplcnktgyiLLYMmShpgXJmeEi6LIlpCzJMi5BkkxbEbC2I2MiTM8y2cjPORU
-Qqs6DIVIqciahzDuw3aIyLIzMqkMpkTV6uLI2RmWRmY4zLISyRMOutm2My6MzHDJogiJXyaFMOsR
-IbBHQ5QOsDmBorkHRxMDKZIyKZMaDKmCvPTVBl8GZoMvgyNPG8my+LLEymJYmXDws/2bIGyZAU5E
-YCAYBAMjYrYwjAyNgbAMuQZBkBZIyuRYxWgNmnEplE1yRVNFwbO9hJSLZIqmitLiyqcyicy2aKJo
-0iFxYrmFTK2geCtK5LtQVIp1BUhaLbQpFkZmRSHUxTU9tsahbGqYFUHVQianFm7uh7ph7ge4LgfJ
-sdQSVQyuoB1B8S5Lp1CiUsiOeRclRUchbJkBMBpvjyaFSGUivAUhTD0cWVdB5ZqpIyU0baKMrO6u
-ZppRNMIlNM0QOayvcsihsEihsGY9qtoqmi+SKZjhpXKzzRIhaywpGhZM3S2DNEDPAvgGnj+Rk2vi
-WJlUR0OHk5Z2bJMgyDI2I5FbJkVsZC2K2BsDYwOQZBkGQDMQBCiEDCBgCSRVKJexWioNncMlcqRr
-aQskiok9sEqRTOmb5pGeaLiT2wzhgpksGyojLUNIlUSpbwTUCQhelbW6gqRUmENFtcph1lOQ5Fob
-XayaykItDa3WDWV5IGhtYnksSKoeS+ApECkTSOh0iJlrVTpGjAtSQ8UuCZl147SWEDTSWCQS4LoJ
-cGNpddbytpo0wRVSSNdNIxsvlIxiM0WxSwCRmUXlnkimaNMyqS3HDSLyo0h0luCFwyvkksYl0ELE
-tiNwZbSZIYCCxuK0ABsLFY0aTIrYWKxkjYuQsVgSZAQAw//Z
-</content>
-                       <content_sha1>e873c1e2ffd0f191e183a1057de3eef4d62e782d</content_sha1>
-               </file>
-       </files_fal>
-</T3RecordDocument>
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/MySQL/impexp-group-file-and-file_reference-item.xml b/typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/MySQL/impexp-group-file-and-file_reference-item.xml
deleted file mode 100644 (file)
index 0f22e24..0000000
+++ /dev/null
@@ -1,490 +0,0 @@
-<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
-<T3RecordDocument>
-       <header type="array">
-               <records type="array">
-                       <table index="pages" type="array">
-                               <rec index="1" type="array">
-                                       <uid>1</uid>
-                                       <pid>0</pid>
-                                       <title>Root</title>
-                                       <size>138</size>
-                                       <relations index="rels" type="array"></relations>
-                                       <softrefs type="array"></softrefs>
-                               </rec>
-                       </table>
-                       <table index="tx_impexpgroupfiles_item" type="array">
-                               <rec index="1" type="array">
-                                       <uid>1</uid>
-                                       <pid>1</pid>
-                                       <title>Test item</title>
-                                       <size>204</size>
-                                       <relations index="rels" type="array">
-                                               <element index="sys_file:3" type="array">
-                                                       <table>sys_file</table>
-                                                       <id>3</id>
-                                               </element>
-                                       </relations>
-                                       <softrefs type="array"></softrefs>
-                                       <filerefs type="array">
-                                               <file index="0">66a2b7534be9ebf810cd55164c5f085d</file>
-                                       </filerefs>
-                               </rec>
-                       </table>
-                       <table index="sys_file" type="array">
-                               <rec index="3" type="array">
-                                       <uid>3</uid>
-                                       <pid>0</pid>
-                                       <title>typo3_image5.jpg</title>
-                                       <size>528</size>
-                                       <relationLevel>1</relationLevel>
-                                       <relations index="rels" type="array">
-                                               <element index="sys_file_storage:1" type="array">
-                                                       <id>1</id>
-                                                       <table>sys_file_storage</table>
-                                               </element>
-                                       </relations>
-                                       <softrefs type="array"></softrefs>
-                               </rec>
-                       </table>
-                       <table index="sys_file_storage" type="array">
-                               <rec index="1" type="array">
-                                       <uid>1</uid>
-                                       <pid>0</pid>
-                                       <title>fileadmin/ (auto-created)</title>
-                                       <size>694</size>
-                                       <relationLevel>2</relationLevel>
-                                       <relations index="rels" type="array"></relations>
-                                       <softrefs type="array"></softrefs>
-                               </rec>
-                       </table>
-               </records>
-               <pid_lookup type="array">
-                       <page_contents index="0" type="array">
-                               <table index="pages" type="array">
-                                       <item index="1">1</item>
-                               </table>
-                               <table index="sys_file" type="array">
-                                       <item index="3">1</item>
-                               </table>
-                               <table index="sys_file_storage" type="array">
-                                       <item index="1">1</item>
-                               </table>
-                       </page_contents>
-                       <page_contents index="1" type="array">
-                               <table index="tx_impexpgroupfiles_item" type="array">
-                                       <item index="1">1</item>
-                               </table>
-                       </page_contents>
-               </pid_lookup>
-               <pagetree type="array">
-                       <node index="1" type="array">
-                               <uid>1</uid>
-                       </node>
-               </pagetree>
-               <files type="array">
-                       <file index="66a2b7534be9ebf810cd55164c5f085d" type="array">
-                               <filesize>6758</filesize>
-                               <filename>typo3_image4.jpg</filename>
-                               <filemtime>1393866824</filemtime>
-                               <relFileRef>uploads/tx_impexpgroupfiles/typo3_image4.jpg</relFileRef>
-                               <record_ref>tx_impexpgroupfiles_item:1/images</record_ref>
-                       </file>
-               </files>
-               <files_fal type="array">
-                       <file index="23116a2a95820388bb7eede903382d4c" type="array">
-                               <filesize>7425</filesize>
-                               <filename>typo3_image5.jpg</filename>
-                               <filemtime>1393432183</filemtime>
-                       </file>
-               </files_fal>
-       </header>
-       <records type="array">
-               <tablerow index="pages:1" type="array">
-                       <fieldlist index="data" type="array">
-                               <field index="uid" type="integer">1</field>
-                               <field index="pid" type="integer">0</field>
-                               <field index="deleted" type="integer">0</field>
-                               <field index="perms_everybody" type="integer">15</field>
-                               <field index="hidden" type="integer">0</field>
-                               <field index="title">Root</field>
-                               <field index="doktype" type="integer">1</field>
-                       </fieldlist>
-                       <related index="rels" type="array"&g