[BUGFIX] Fix impexp with images in RTE and links to files 05/28105/6
authorMarc Bastian Heinrichs <typo3@mbh-software.de>
Thu, 27 Feb 2014 18:32:55 +0000 (19:32 +0100)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Wed, 19 Mar 2014 09:44:53 +0000 (10:44 +0100)
This patch fixes the import and export of RTE contents
including images and links to files as well as softreference
links to files (file:{uid}) and adds functional tests
for this use cases.

Resolves: #56089
Resolves: #56285
Related: #56286
Releases: 6.2
Change-Id: I29312b304d265581bf9f35bdc2692a19d2df5a93
Reviewed-on: https://review.typo3.org/28105
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
20 files changed:
typo3/sysext/impexp/Classes/ImportExport.php
typo3/sysext/impexp/Tests/Functional/Export/PagesAndTtContentWithImages/ExportTest.php
typo3/sysext/impexp/Tests/Functional/Export/PagesAndTtContentWithRteImagesAndFileLink/ExportTest.php [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/Database/sys_file.xml
typo3/sysext/impexp/Tests/Functional/Fixtures/Database/tt_content-with-image.xml
typo3/sysext/impexp/Tests/Functional/Fixtures/Database/tt_content-with-rte-image-n-file-link.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/Folders/fileadmin/_processed_/csm_typo3_image2_5c2670fd59.jpg [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/Folders/fileadmin/user_upload/typo3_image3.jpg [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/pages-and-ttcontent-with-image.xml
typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/pages-and-ttcontent-with-rte-image-n-file-link.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Import/IrreTutorialRecords/ImportInEmptyDatabaseTest.php
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContent/ImportInEmptyDatabaseTest.php
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImages/DataSet/Assertion/importPagesAndRelatedTtContentWithDifferentImageToExistingData.csv
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImages/DataSet/Assertion/importPagesAndRelatedTtContentWithImagesOnCaseInsensitiveFilesystems.csv
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImages/DataSet/Assertion/importPagesAndRelatedTtContentWithImagesOnCaseSensitiveFilesystems.csv
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImages/DataSet/Assertion/importPagesAndRelatedTtContentWithSameImageToExistingData.csv
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImages/ImportInEmptyDatabaseTest.php
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImages/ImportInFilledDatabaseTest.php
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithRteImagesAndFileLink/DataSet/Assertion/importPagesAndRelatedTtContentWithRteImagesAndFileLink.csv [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithRteImagesAndFileLink/ImportInEmptyDatabaseTest.php [new file with mode: 0644]

index d48cc12..e6e375b 100644 (file)
@@ -1280,7 +1280,7 @@ class ImportExport {
                $this->alternativeFileName = array();
                $this->alternativeFilePath = array();
 
-               $this->initializeLocalStorages();
+               $this->initializeStorageObjects();
        }
 
        /**
@@ -1288,7 +1288,7 @@ class ImportExport {
         *
         * @return void
         */
-       protected function initializeLocalStorages() {
+       protected function initializeStorageObjects() {
                /** @var $storageRepository \TYPO3\CMS\Core\Resource\StorageRepository */
                $storageRepository = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Resource\\StorageRepository');
                $this->storageObjects = $storageRepository->findAll();
@@ -2315,6 +2315,9 @@ class ImportExport {
                                                                        if ($recWithUniqueValue['alias']) {
                                                                                $insertValue = $recWithUniqueValue['alias'];
                                                                        }
+                                                               } elseif (strpos($cfg['subst']['tokenValue'], ':') !== FALSE) {
+                                                                       list($tokenKey, $tokenId) = explode(':', $cfg['subst']['tokenValue']);
+                                                                       $insertValue = $tokenKey . ':' . $insertValue;
                                                                }
                                                        }
                                        }
index ca60a5d..21a59c5 100644 (file)
@@ -67,6 +67,7 @@ class ExportTest extends \TYPO3\CMS\Impexp\Tests\Functional\Export\AbstractExpor
                                'tt_content' => array(
                                        'CType',
                                        'header',
+                                       'header_link',
                                        'deleted',
                                        'hidden',
                                        'image',
diff --git a/typo3/sysext/impexp/Tests/Functional/Export/PagesAndTtContentWithRteImagesAndFileLink/ExportTest.php b/typo3/sysext/impexp/Tests/Functional/Export/PagesAndTtContentWithRteImagesAndFileLink/ExportTest.php
new file mode 100644 (file)
index 0000000..7721549
--- /dev/null
@@ -0,0 +1,141 @@
+<?php
+namespace TYPO3\CMS\Impexp\Tests\Functional\Export\PagesAndTtContentWithRteImagesAndFileLink;
+
+/***************************************************************
+ * Copyright notice
+ *
+ * (c) 2014 Marc Bastian Heinrichs <typo3@mbh-software.de>
+ * All rights reserved
+ *
+ * This script is part of the TYPO3 project. The TYPO3 project is
+ * free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * The GNU General Public License can be found at
+ * http://www.gnu.org/copyleft/gpl.html.
+ *
+ * This script is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * This copyright notice MUST APPEAR in all copies of the script!
+ ***************************************************************/
+
+use TYPO3\CMS\Backend\Utility\BackendUtility;
+
+require_once __DIR__ . '/../AbstractExportTestCase.php';
+
+/**
+ * Functional test for the ImportExport
+ */
+class ExportTest extends \TYPO3\CMS\Impexp\Tests\Functional\Export\AbstractExportTestCase {
+
+       /**
+        * @var array
+        */
+       protected $coreExtensionsToLoad = array(
+               'rtehtmlarea',
+               'impexp'
+       );
+
+       /**
+        * @var array
+        */
+       protected $pathsToLinkInTestInstance = array(
+               'typo3/sysext/impexp/Tests/Functional/Fixtures/Folders/fileadmin/user_upload' => 'fileadmin/user_upload',
+               'typo3/sysext/impexp/Tests/Functional/Fixtures/Folders/fileadmin/_processed_' => 'fileadmin/_processed_'
+       );
+
+       public function setUp() {
+               parent::setUp();
+
+               $this->importDataSet(__DIR__ . '/../../Fixtures/Database/pages.xml');
+               $this->importDataSet(__DIR__ . '/../../Fixtures/Database/tt_content-with-rte-image-n-file-link.xml');
+               $this->importDataSet(__DIR__ . '/../../Fixtures/Database/sys_file.xml');
+               $this->importDataSet(__DIR__ . '/../../Fixtures/Database/sys_file_reference.xml');
+               $this->importDataSet(__DIR__ . '/../../Fixtures/Database/sys_file_storage.xml');
+
+       }
+
+       /**
+        * @test
+        */
+       public function exportPagesAndRelatedTtContentWithRteImagesAndFileLink() {
+
+               $this->export->setRecordTypesIncludeFields(
+                       array(
+                               'pages' => array(
+                                       'title',
+                                       'deleted',
+                                       'doktype',
+                                       'hidden',
+                                       'perms_everybody'
+                               ),
+                               'tt_content' => array(
+                                       'CType',
+                                       'header',
+                                       'deleted',
+                                       'hidden',
+                                       'bodytext',
+                                       't3ver_oid'
+                               ),
+                               'sys_file' => array(
+                                       'storage',
+                                       'type',
+                                       'metadata',
+                                       'identifier',
+                                       'identifier_hash',
+                                       'folder_hash',
+                                       'extension',
+                                       'mime_type',
+                                       'name',
+                                       'sha1',
+                                       'size',
+                                       'creation_date',
+                                       'modification_date',
+                               ),
+                               'sys_file_storage' => array(
+                                       'name',
+                                       'description',
+                                       'driver',
+                                       'configuration',
+                                       'is_default',
+                                       'is_browsable',
+                                       'is_public',
+                                       'is_writable',
+                                       'is_online'
+                               )
+                       )
+               );
+
+               $this->export->relOnlyTables = array(
+                       'sys_file',
+                       'sys_file_storage'
+               );
+
+               $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->setPageTree(1, 1);
+
+               // After adding ALL records we set relations:
+               for ($a = 0; $a < 10; $a++) {
+                       $addR = $this->export->export_addDBRelations($a);
+                       if (!count($addR)) {
+                               break;
+                       }
+               }
+
+               $this->export->export_addFilesFromRelations();
+               $this->export->export_addFilesFromSysFilesRecords();
+
+               $out = $this->export->compileMemoryToFileContent('xml');
+
+               $this->assertXmlStringEqualsXmlFile(__DIR__ . '/../../Fixtures/ImportExportXml/pages-and-ttcontent-with-rte-image-n-file-link.xml', $out);
+       }
+
+}
\ No newline at end of file
index fa76c6b..3e27f94 100644 (file)
                <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>
 </dataset>
\ No newline at end of file
index 2e6ebcd..d60d2ac 100644 (file)
@@ -5,6 +5,7 @@
                <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>
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
new file mode 100644 (file)
index 0000000..b0f7d92
--- /dev/null
@@ -0,0 +1,13 @@
+<?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" data-htmlarea-file-table="sys_file" 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/Folders/fileadmin/_processed_/csm_typo3_image2_5c2670fd59.jpg b/typo3/sysext/impexp/Tests/Functional/Fixtures/Folders/fileadmin/_processed_/csm_typo3_image2_5c2670fd59.jpg
new file mode 100644 (file)
index 0000000..deadc23
Binary files /dev/null and b/typo3/sysext/impexp/Tests/Functional/Fixtures/Folders/fileadmin/_processed_/csm_typo3_image2_5c2670fd59.jpg differ
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/Folders/fileadmin/user_upload/typo3_image3.jpg b/typo3/sysext/impexp/Tests/Functional/Fixtures/Folders/fileadmin/user_upload/typo3_image3.jpg
new file mode 100644 (file)
index 0000000..5ea735b
Binary files /dev/null and b/typo3/sysext/impexp/Tests/Functional/Fixtures/Folders/fileadmin/user_upload/typo3_image3.jpg differ
index 0862aa5..c4f3341 100644 (file)
                                        <uid>1</uid>
                                        <pid>1</pid>
                                        <title>Test content</title>
-                                       <size>188</size>
+                                       <size>220</size>
                                        <relations index="rels" type="array">
                                                <element index="sys_file_reference:1" type="array">
                                                        <id>1</id>
                                                        <table>sys_file_reference</table>
                                                </element>
+                                               <element index="sys_file:1" type="array">
+                                                       <table>sys_file</table>
+                                                       <id>1</id>
+                                               </element>
                                        </relations>
                                        <softrefs type="array">
+                                               <softref_element index="header_link:typolink:2487ce518ed56d22f20f259928ff43f1:0" type="array">
+                                                       <field>header_link</field>
+                                                       <spKey>typolink</spKey>
+                                                       <matchString>file:1</matchString>
+                                                       <subst type="array">
+                                                               <type>db</type>
+                                                               <recordRef>sys_file:1</recordRef>
+                                                               <tokenID>2487ce518ed56d22f20f259928ff43f1</tokenID>
+                                                               <tokenValue>file:1</tokenValue>
+                                                       </subst>
+                                               </softref_element>
                                        </softrefs>
                                </rec>
                        </table>
                                <field index="header">Test content</field>
                                <field index="image">1</field>
                                <field index="deleted">0</field>
+                               <field index="header_link">file:1</field>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="image" type="array">
                                                </element>
                                        </relations>
                                </field>
+                               <field index="header_link" type="array">
+                                       <type>db</type>
+                                       <relations index="itemArray" type="array">
+                                               <element index="0" type="array">
+                                                       <table>sys_file</table>
+                                                       <id>1</id>
+                                               </element>
+                                       </relations>
+                                       <softrefs type="array">
+                                               <keys type="array">
+                                                       <softref_key index="typolink" type="array">
+                                                               <softref_element index="2487ce518ed56d22f20f259928ff43f1:0" type="array">
+                                                                       <matchString>file:1</matchString>
+                                                                       <subst type="array">
+                                                                               <type>db</type>
+                                                                               <recordRef>sys_file:1</recordRef>
+                                                                               <tokenID>2487ce518ed56d22f20f259928ff43f1</tokenID>
+                                                                               <tokenValue>file:1</tokenValue>
+                                                                       </subst>
+                                                               </softref_element>
+                                                       </softref_key>
+                                               </keys>
+                                               <tokenizedContent>{softref:2487ce518ed56d22f20f259928ff43f1}</tokenizedContent>
+                                       </softrefs>
+                               </field>
                        </related>
                </tablerow>
                <tablerow index="sys_language:1" type="array">
@@ -590,4 +631,4 @@ AgKDQDAgQD9xAwAMAYQDF7gwAMBphAP3ALhAMTIEAAB//9k=
                        <content_sha1>da9acdf1e105784a57bbffec9520969578287797</content_sha1>
                </file>
        </files_fal>
-</T3RecordDocument>
\ No newline at end of file
+</T3RecordDocument>
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/pages-and-ttcontent-with-rte-image-n-file-link.xml b/typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/pages-and-ttcontent-with-rte-image-n-file-link.xml
new file mode 100644 (file)
index 0000000..bd9a88d
--- /dev/null
@@ -0,0 +1,586 @@
+<?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>162</size>
+                                       <relations index="rels" type="array">
+                                       </relations>
+                                       <softrefs type="array">
+                                       </softrefs>
+                               </rec>
+                               <rec index="2" type="array">
+                                       <uid>2</uid>
+                                       <pid>1</pid>
+                                       <title>Dummy 1-2</title>
+                                       <size>167</size>
+                                       <relations index="rels" type="array">
+                                       </relations>
+                                       <softrefs type="array">
+                                       </softrefs>
+                               </rec>
+                       </table>
+                       <table index="tt_content" type="array">
+                               <rec index="1" type="array">
+                                       <uid>1</uid>
+                                       <pid>2</pid>
+                                       <title>Text element with image in RTE</title>
+                                       <size>500</size>
+                                       <relations index="rels" type="array">
+                                       </relations>
+                                       <softrefs type="array">
+                                               <softref_element index="bodytext:rtehtmlarea_images:1" type="array">
+                                                       <field>bodytext</field>
+                                                       <spKey>rtehtmlarea_images</spKey>
+                                                       <matchString>&lt;img src=&quot;fileadmin/_processed_/csm_typo3_image2_5c2670fd59.jpg&quot; title=&quot;typo3_image2.jpg&quot; data-htmlarea-file-uid=&quot;1&quot; data-htmlarea-file-table=&quot;sys_file&quot; height=&quot;225&quot; width=&quot;300&quot; alt=&quot;&quot; style=&quot;&quot; /&gt;</matchString>
+                                                       <subst type="array">
+                                                               <type>db</type>
+                                                               <recordRef>sys_file:1</recordRef>
+                                                               <tokenID>00e731fe86bdecc2a8f81302b206db00</tokenID>
+                                                               <tokenValue>1</tokenValue>
+                                                       </subst>
+                                               </softref_element>
+                                               <softref_element index="bodytext:typolink_tag:747a4a59a9f66015a82d1648e919e0b8:1" type="array">
+                                                       <field>bodytext</field>
+                                                       <spKey>typolink_tag</spKey>
+                                                       <matchString>file:2 - download &quot;Initiates file download&quot;</matchString>
+                                                       <subst type="array">
+                                                               <type>db</type>
+                                                               <recordRef>sys_file:2</recordRef>
+                                                               <tokenID>747a4a59a9f66015a82d1648e919e0b8</tokenID>
+                                                               <tokenValue>file:2</tokenValue>
+                                                       </subst>
+                                               </softref_element>
+                                       </softrefs>
+                               </rec>
+                       </table>
+                       <table index="sys_file" type="array">
+                               <rec index="1" type="array">
+                                       <uid>1</uid>
+                                       <pid>0</pid>
+                                       <title>typo3_image2.jpg</title>
+                                       <size>558</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>558</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>722</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="1">1</item>
+                                       <item index="2">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="pages" type="array">
+                                       <item index="2">1</item>
+                               </table>
+                       </page_contents>
+                       <page_contents index="2" type="array">
+                               <table index="tt_content" type="array">
+                                       <item index="1">1</item>
+                               </table>
+                       </page_contents>
+               </pid_lookup>
+               <pagetree type="array">
+                       <node index="1" type="array">
+                               <uid>1</uid>
+                               <node index="subrow" type="array">
+                                       <node index="2" type="array">
+                                               <uid>2</uid>
+                                       </node>
+                               </node>
+                       </node>
+               </pagetree>
+               <files_fal type="array">
+                       <file index="4a705ca3ef43b53dc00de861ba2c86af" type="array">
+                               <filesize>7958</filesize>
+                               <filename>typo3_image2.jpg</filename>
+                               <filemtime>1389878273</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:1" type="array">
+                       <fieldlist index="data" type="array">
+                               <field index="uid">1</field>
+                               <field index="pid">0</field>
+                               <field index="deleted">0</field>
+                               <field index="perms_everybody">15</field>
+                               <field index="hidden">0</field>
+                               <field index="title">Root</field>
+                               <field index="doktype">1</field>
+                       </fieldlist>
+                       <related index="rels" type="array">
+                       </related>
+               </tablerow>
+               <tablerow index="pages:2" type="array">
+                       <fieldlist index="data" type="array">
+                               <field index="uid">2</field>
+                               <field index="pid">1</field>
+                               <field index="deleted">0</field>
+                               <field index="perms_everybody">15</field>
+                               <field index="hidden">0</field>
+                               <field index="title">Dummy 1-2</field>
+                               <field index="doktype">1</field>
+                       </fieldlist>
+                       <related index="rels" type="array">
+                       </related>
+               </tablerow>
+               <tablerow index="tt_content:1" type="array">
+                       <fieldlist index="data" type="array">
+                               <field index="uid">1</field>
+                               <field index="pid">2</field>
+                               <field index="t3ver_oid">0</field>
+                               <field index="hidden">0</field>
+                               <field index="CType">text</field>
+                               <field index="header">Text element with image in RTE</field>
+                               <field index="bodytext">&lt;img src=&quot;fileadmin/_processed_/csm_typo3_image2_5c2670fd59.jpg&quot; title=&quot;typo3_image2.jpg&quot; data-htmlarea-file-uid=&quot;1&quot; data-htmlarea-file-table=&quot;sys_file&quot; height=&quot;225&quot; width=&quot;300&quot; alt=&quot;&quot; style=&quot;&quot; /&gt;&amp;nbsp;&amp;nbsp;And here a &lt;link file:2 - download &quot;Initiates file download&quot;&gt;link to an image&lt;/link&gt;.</field>
+                               <field index="deleted">0</field>
+                       </fieldlist>
+                       <related index="rels" type="array">
+                               <field index="bodytext" type="array">
+                                       <softrefs type="array">
+                                               <keys type="array">
+                                                       <softref_key index="rtehtmlarea_images" type="array">
+                                                               <softref_element index="1" type="array">
+                                                                       <matchString>&lt;img src=&quot;fileadmin/_processed_/csm_typo3_image2_5c2670fd59.jpg&quot; title=&quot;typo3_image2.jpg&quot; data-htmlarea-file-uid=&quot;1&quot; data-htmlarea-file-table=&quot;sys_file&quot; height=&quot;225&quot; width=&quot;300&quot; alt=&quot;&quot; style=&quot;&quot; /&gt;</matchString>
+                                                                       <subst type="array">
+                                                                               <type>db</type>
+                                                                               <recordRef>sys_file:1</recordRef>
+                                                                               <tokenID>00e731fe86bdecc2a8f81302b206db00</tokenID>
+                                                                               <tokenValue>1</tokenValue>
+                                                                       </subst>
+                                                               </softref_element>
+                                                       </softref_key>
+                                                       <softref_key index="typolink_tag" type="array">
+                                                               <softref_element index="747a4a59a9f66015a82d1648e919e0b8:1" type="array">
+                                                                       <matchString>file:2 - download &quot;Initiates file download&quot;</matchString>
+                                                                       <subst type="array">
+                                                                               <type>db</type>
+                                                                               <recordRef>sys_file:2</recordRef>
+                                                                               <tokenID>747a4a59a9f66015a82d1648e919e0b8</tokenID>
+                                                                               <tokenValue>file:2</tokenValue>
+                                                                       </subst>
+                                                               </softref_element>
+                                                       </softref_key>
+                                               </keys>
+                                               <tokenizedContent>&lt;img src=&quot;fileadmin/_processed_/csm_typo3_image2_5c2670fd59.jpg&quot; title=&quot;typo3_image2.jpg&quot; data-htmlarea-file-uid=&quot;{softref:00e731fe86bdecc2a8f81302b206db00}&quot; data-htmlarea-file-table=&quot;sys_file&quot; height=&quot;225&quot; width=&quot;300&quot; alt=&quot;&quot; style=&quot;&quot; /&gt;&amp;nbsp;&amp;nbsp;And here a &lt;LINK {softref:747a4a59a9f66015a82d1648e919e0b8} - download "Initiates file download"&gt;link to an image&lt;/link&gt;.</tokenizedContent>
+                                       </softrefs>
+                               </field>
+                       </related>
+               </tablerow>
+               <tablerow index="sys_file:1" type="array">
+                       <fieldlist index="data" type="array">
+                               <field index="uid">1</field>
+                               <field index="pid">0</field>
+                               <field index="storage">1</field>
+                               <field index="type">2</field>
+                               <field index="metadata">0</field>
+                               <field index="identifier">/user_upload/typo3_image2.jpg</field>
+                               <field index="identifier_hash">f90bb9a35622f35b5279195e324eddbaec8164b2</field>
+                               <field index="folder_hash">19669f1e02c2f16705ec7587044c66443be70725</field>
+                               <field index="extension">jpg</field>
+                               <field index="mime_type">image/jpeg</field>
+                               <field index="name">typo3_image2.jpg</field>
+                               <field index="sha1">da9acdf1e105784a57bbffec9520969578287797</field>
+                               <field index="size">7958</field>
+                               <field index="creation_date">1389878273</field>
+                               <field index="modification_date">1389878273</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">2</field>
+                               <field index="pid">0</field>
+                               <field index="storage">1</field>
+                               <field index="type">2</field>
+                               <field index="metadata">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">5565</field>
+                               <field index="creation_date">1393346082</field>
+                               <field index="modification_date">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">1</field>
+                               <field index="pid">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">0</field>
+                               <field index="is_browsable">1</field>
+                               <field index="is_public">1</field>
+                               <field index="is_writable">1</field>
+                               <field index="is_online">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_fal type="array">
+               <file index="4a705ca3ef43b53dc00de861ba2c86af" type="array">
+                       <filesize>7958</filesize>
+                       <filename>typo3_image2.jpg</filename>
+                       <filemtime>1389878273</filemtime>
+                       <content base64="1">
+/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAA0JCgsKCA0LCgsODg0PEyAVExISEyccHhcgLikxMC4p
+LSwzOko+MzZGNywtQFdBRkxOUlNSMj5aYVpQYEpRUk//2wBDAQ4ODhMREyYVFSZPNS01T09PT09P
+T09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0//wAARCAEsAZADASIA
+AhEBAxEB/8QAGgAAAgMBAQAAAAAAAAAAAAAAAAECBAUDBv/EADsQAAICAgEDAwIEAwYFBAMAAAAB
+AgMEERIFITETQVEiYRQycaGBkcEVI0JSYrEkM0PR8FNyguGSovH/xAAYAQEBAQEBAAAAAAAAAAAA
+AAAAAQIDBP/EACARAQEBAAIDAAMBAQAAAAAAAAABEQIhEjFBAxNRYXH/2gAMAwEAAhEDEQA/APKJ
+bJJGY/xVEVOUuUfgv490boKSIrsNIEMAR0we2bNfMSBPE7Z6+8WBpoYIYQIAGAe4B7DAQD/gACGG
+gKo9gAAgEMAoEMAEMAAQuK3vXckATFaOFVB2SrTg7Fp6ZVlg2xk7J3c1GuUV27vfyaehNJpp+GXR
+k4SyLrMac6+FdUOz3+btohCzjhZlMW1ZGUnr318mvXXGuEYQWoxWkJ1QbbcE21pvXsDWP6cK7HHE
+lqSpVj0/LTLE8m25XSpjCdcIxb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Ce1tDIwTjFL4JIiGc8lf3MzoRuTdMl9mBr1PlVB/KRSy8G3JyoT9aUa4/4U
+yzhvliVP/SjuifWUZVQnWoTjyivZk4xUUlFaS+AGEAAAAAAAxDABAP5EVAAAgAAAoBgAAAAAAAAM
+AAoAGIgBiGAhgAUAAAIBgFLQwAAGAAAAAAIAIPHT6hXx+hbZzxKLJ3+tYuO+6LFWNUnvguxZS7D0
+2pWYM7LOTsff2+Czi4sKO6W5P3Z3Q/8AKND+40u4ew17/YAXgckuLQf0GwmLnTHywavstfuW0Uuk
+98TXxJl74ImEA/dgvACAYAwa9gH7/wAQQTB8CGACAloRTCAYIJhAP3AGAAGAgGBTCGCALg0A2AMA
+AgKDQDAgQD9xAwAMAYQDF7gwAMBphAP3ALhAMTIEAAB//9k=
+</content>
+                       <content_sha1>da9acdf1e105784a57bbffec9520969578287797</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
+KS0sMzpKPjM2RjcsLUBXQUZMTlJTUjI+WmFaUGBKUVJP/9sAQwEODg4TERMmFRUmTzUtNU9PT09P
+T09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09P/8AAEQgBCwGQAwEi
+AAIRAQMRAf/EABsAAAIDAQEBAAAAAAAAAAAAAAECAAMEBQYH/8QALhAAAgEDAwQCAQQCAgMAAAAA
+AAECAwQREiFRBRMxQRRhIgYVMkJxgSMkM3KR/8QAGQEAAwEBAQAAAAAAAAAAAAAAAAECAwQF/8QA
+JREBAAICAgIDAQEAAwEAAAAAAAECAxESI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yuRYxWgNmnEplE1yRVNFwbO9hJSLZIqmitLiyqcyicy2aKJo
+0iFxYrmFTK2geCtK5LtQVIp1BUhaLbQpFkZmRSHUxTU9tsahbGqYFUHVQianFm7uh7ph7ge4LgfJ
+sdQSVQyuoB1B8S5Lp1CiUsiOeRclRUchbJkBMBpvjyaFSGUivAUhTD0cWVdB5ZqpIyU0baKMrO6u
+ZppRNMIlNM0QOayvcsihsEihsGY9qtoqmi+SKZjhpXKzzRIhaywpGhZM3S2DNEDPAvgGnj+Rk2vi
+WJlUR0OHk5Z2bJMgyDI2I5FbJkVsZC2K2BsDYwOQZBkGQDMQBCiEDCBgCSRVKJexWioNncMlcqRr
+aQskiok9sEqRTOmb5pGeaLiT2wzhgpksGyojLUNIlUSpbwTUCQhelbW6gqRUmENFtcph1lOQ5Fob
+XayaykItDa3WDWV5IGhtYnksSKoeS+ApECkTSOh0iJlrVTpGjAtSQ8UuCZl147SWEDTSWCQS4LoJ
+cGNpddbytpo0wRVSSNdNIxsvlIxiM0WxSwCRmUXlnkimaNMyqS3HDSLyo0h0luCFwyvkksYl0ELE
+tiNwZbSZIYCCxuK0ABsLFY0aTIrYWKxkjYuQsVgSZAQAw//Z
+</content>
+                       <content_sha1>e873c1e2ffd0f191e183a1057de3eef4d62e782d</content_sha1>
+               </file>
+       </files_fal>
+</T3RecordDocument>
\ No newline at end of file
index 9c44501..e39e8f9 100644 (file)
@@ -31,7 +31,6 @@ require_once __DIR__ . '/../AbstractImportTestCase.php';
  */
 class ImportInEmptyDatabaseTest extends \TYPO3\CMS\Impexp\Tests\Functional\Import\AbstractImportTestCase {
 
-       protected $scenarioDataSetDirectory = 'typo3/sysext/impexp/Tests/Functional/Import/IrreTutorialRecords/DataSet/Scenario/';
        protected $assertionDataSetDirectory = 'typo3/sysext/impexp/Tests/Functional/Import/IrreTutorialRecords/DataSet/Assertion/';
 
        /**
index 62d6fb9..1a27304 100644 (file)
@@ -31,7 +31,6 @@ require_once __DIR__ . '/../AbstractImportTestCase.php';
  */
 class ImportInEmptyDatabaseTest extends \TYPO3\CMS\Impexp\Tests\Functional\Import\AbstractImportTestCase {
 
-       protected $scenarioDataSetDirectory = 'typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContent/DataSet/Scenario/';
        protected $assertionDataSetDirectory = 'typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContent/DataSet/Assertion/';
 
        /**
index 16f957b..705f2c0 100644 (file)
@@ -5,25 +5,26 @@
 ,3,0,256,0,"Root"
 ,4,3,256,0,"Dummy 1-2"
 "tt_content"
-,"uid","pid","sorting","deleted","header","image"
-,1,1,0,0,"Test content",1
-,2,3,256,0,"Test content",1
+,"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",""
+,"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_image2_01.jpg","299dc37e3c3428b85d9b39c353c6557fa834dac5","19669f1e02c2f16705ec7587044c66443be70725","jpg","image/jpeg","typo3_image2_01.jpg","e873c1e2ffd0f191e183a1057de3eef4d62e782d","5565"
+,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_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,2,2,"tt_content","image","sys_file",\NULL,\NULL,\NULL,""
+,2,3,3,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,2,\NULL,400,267,\NULL,\NULL,0,0
\ No newline at end of file
+,3,0,3,\NULL,400,267,\NULL,\NULL,0,0
\ No newline at end of file
index 53d2bba..2d57ac8 100644 (file)
@@ -5,18 +5,19 @@
 ,3,0,256,0,"Root"
 ,4,3,256,0,"Dummy 1-2"
 "tt_content"
-,"uid","pid","sorting","deleted","header","image"
-,1,1,0,0,"Test content",1
-,2,3,256,0,"Test content",1
+,"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",""
+,"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"
 "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,""
index 18cc261..89e8380 100644 (file)
@@ -31,7 +31,6 @@ require_once __DIR__ . '/../AbstractImportTestCase.php';
  */
 class ImportInEmptyDatabaseTest extends \TYPO3\CMS\Impexp\Tests\Functional\Import\AbstractImportTestCase {
 
-       protected $scenarioDataSetDirectory = 'typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImages/DataSet/Scenario/';
        protected $assertionDataSetDirectory = 'typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImages/DataSet/Assertion/';
 
        /**
index 16ef63f..c05ac8a 100644 (file)
@@ -39,7 +39,6 @@ class ImportInFilledDatabaseTest extends \TYPO3\CMS\Impexp\Tests\Functional\Impo
                'typo3/sysext/impexp/Tests/Functional/Fixtures/Folders/fileadmin/user_upload/typo3_image2.jpg' => 'fileadmin/user_upload/typo3_image2.jpg',
        );
 
-       protected $scenarioDataSetDirectory = 'typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImages/DataSet/Scenario/';
        protected $assertionDataSetDirectory = 'typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImages/DataSet/Assertion/';
 
        /**
diff --git a/typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithRteImagesAndFileLink/DataSet/Assertion/importPagesAndRelatedTtContentWithRteImagesAndFileLink.csv b/typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithRteImagesAndFileLink/DataSet/Assertion/importPagesAndRelatedTtContentWithRteImagesAndFileLink.csv
new file mode 100644 (file)
index 0000000..b25b7fa
--- /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" data-htmlarea-file-table="sys_file" 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/Import/PagesAndTtContentWithRteImagesAndFileLink/ImportInEmptyDatabaseTest.php b/typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithRteImagesAndFileLink/ImportInEmptyDatabaseTest.php
new file mode 100644 (file)
index 0000000..0ebcfe1
--- /dev/null
@@ -0,0 +1,64 @@
+<?php
+namespace TYPO3\CMS\Impexp\Tests\Functional\Import\PagesAndTtContentWithRteImagesAndFileLink;
+
+/***************************************************************
+ * Copyright notice
+ *
+ * (c) 2014 Marc Bastian Heinrichs <typo3@mbh-software.de>
+ * All rights reserved
+ *
+ * This script is part of the TYPO3 project. The TYPO3 project is
+ * free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * The GNU General Public License can be found at
+ * http://www.gnu.org/copyleft/gpl.html.
+ *
+ * This script is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * This copyright notice MUST APPEAR in all copies of the script!
+ ***************************************************************/
+
+require_once __DIR__ . '/../AbstractImportTestCase.php';
+
+/**
+ * Functional test for the ImportExport
+ */
+class ImportInEmptyDatabaseTest extends \TYPO3\CMS\Impexp\Tests\Functional\Import\AbstractImportTestCase {
+
+       /**
+        * @var array
+        */
+       protected $additionalFoldersToCreate = array(
+               '/fileadmin/_processed_'
+       );
+
+       /**
+        * @var string
+        */
+       protected $assertionDataSetDirectory = 'typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithRteImagesAndFileLink/DataSet/Assertion/';
+
+       /**
+        * @test
+        */
+       public function importPagesAndRelatedTtContentWithRteImagesAndFileLink() {
+
+               $this->import->loadFile(__DIR__ . '/../../Fixtures/ImportExportXml/pages-and-ttcontent-with-rte-image-n-file-link.xml', 1);
+               $this->import->importData(0);
+
+               $this->assertAssertionDataSet('importPagesAndRelatedTtContentWithRteImagesAndFileLink');
+
+               $this->assertFileNotExists(PATH_site . 'fileadmin/_processed_/csm_typo3_image2_5c2670fd59.jpg');
+
+               $this->assertFileEquals(__DIR__ . '/../../Fixtures/Folders/fileadmin/user_upload/typo3_image2.jpg', PATH_site . 'fileadmin/user_upload/typo3_image2.jpg');
+               $this->assertFileEquals(__DIR__ . '/../../Fixtures/Folders/fileadmin/user_upload/typo3_image3.jpg', PATH_site . 'fileadmin/user_upload/typo3_image3.jpg');
+
+       }
+
+
+}
\ No newline at end of file