2 namespace TYPO3\CMS\Impexp\Tests\Functional\Import\PagesAndTtContentWithImages;
32 $this->markTestSkipped(
'Test not available on case insensitive filesystems.');
35 $this->
import->loadFile(__DIR__ .
'/../../Fixtures/ImportExportXml/pages-and-ttcontent-with-image.xml', 1);
36 $this->
import->importData(0);
38 $this->assertAssertionDataSet(
'importPagesAndRelatedTtContentWithImagesOnCaseSensitiveFilesystems');
40 $this->assertFileEquals(__DIR__ .
'/../../Fixtures/Folders/fileadmin/user_upload/typo3_image2.jpg', PATH_site .
'fileadmin/user_upload/typo3_image2.jpg');
49 $this->markTestSkipped(
'Test not available on case sensitive filesystems.');
52 $this->
import->loadFile(__DIR__ .
'/../../Fixtures/ImportExportXml/pages-and-ttcontent-with-image.xml', 1);
53 $this->
import->importData(0);
55 $this->assertAssertionDataSet(
'importPagesAndRelatedTtContentWithImagesOnCaseInsensitiveFilesystems');
57 $this->assertFileEquals(__DIR__ .
'/../../Fixtures/Folders/fileadmin/user_upload/typo3_image2.jpg', PATH_site .
'fileadmin/user_upload/typo3_image2.jpg');
66 $this->markTestSkipped(
'Test not available on case insensitive filesystems.');
69 $this->
import->loadFile(__DIR__ .
'/ImportExportXml/pages-and-ttcontent-with-image-without-storage.xml', 1);
70 $this->
import->importData(0);
72 $this->assertAssertionDataSet(
'importPagesAndRelatedTtContentWithImagesButWithoutStorageOnCaseSensitiveFilesystems');
74 $this->assertFileEquals(__DIR__ .
'/../../Fixtures/Folders/fileadmin/user_upload/typo3_image2.jpg', PATH_site .
'fileadmin/user_upload/typo3_image2.jpg');
83 $this->markTestSkipped(
'Test not available on case sensitive filesystems.');
86 $this->
import->loadFile(__DIR__ .
'/ImportExportXml/pages-and-ttcontent-with-image-without-storage.xml', 1);
87 $this->
import->importData(0);
89 $this->assertAssertionDataSet(
'importPagesAndRelatedTtContentWithImagesButWithoutStorageOnCaseInsensitiveFilesystems');
91 $this->assertFileEquals(__DIR__ .
'/../../Fixtures/Folders/fileadmin/user_upload/typo3_image2.jpg', PATH_site .
'fileadmin/user_upload/typo3_image2.jpg');
99 $this->
import->loadFile(__DIR__ .
'/ImportExportXml/pages-and-ttcontent-with-image-with-spaces-in-path.xml', 1);
100 $this->
import->importData(0);
102 $this->assertAssertionDataSet(
'importPagesAndRelatedTtContentWithImagesWithSpacesInPath');
104 $this->assertFileEquals(__DIR__ .
'/../../Fixtures/Folders/fileadmin/user_upload/typo3_image2.jpg', PATH_site .
'fileadmin/user_upload/folder_with_spaces/typo3_image2.jpg');
105 $this->assertFileEquals(__DIR__ .
'/../../Fixtures/Folders/fileadmin/user_upload/typo3_image3.jpg', PATH_site .
'fileadmin/user_upload/folder_with_spaces/typo3_image3.jpg');
113 $this->
import->loadFile(PATH_site .
'typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/pages-and-ttcontent-with-image-but-not-included.xml', 1);
114 $this->
import->importData(0);
116 $this->assertAssertionDataSet(
'importPagesAndRelatedTtContentWithImagesButNotIncluded');
118 $this->assertFileEquals(__DIR__ .
'/../../Fixtures/Folders/fileadmin/user_upload/typo3_image2.jpg', PATH_site .
'fileadmin/user_upload/typo3_image2.jpg');
126 $this->
import->loadFile(__DIR__ .
'/ImportExportXml/pages-and-ttcontent-with-image-with-forced-uids.xml', 1);
127 $this->
import->force_all_UIDS =
true;
128 $this->
import->importData(0);
130 $this->assertAssertionDataSet(
'importPagesAndRelatedTtContentWithImageWithForcedUids');
132 $this->assertFileEquals(__DIR__ .
'/../../Fixtures/Folders/fileadmin/user_upload/typo3_image2.jpg', PATH_site .
'fileadmin/user_upload/typo3_image2.jpg');
134 $expectedErrors = array(
135 'Forcing uids of sys_file records is not supported! They will be imported as new records!'
137 $errors = $this->
import->errorLog;
138 $this->assertSame($expectedErrors, $errors);