‪TYPO3CMS  11.5
IrreTutorialRecordsTest.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
22 
24 {
26  'typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_irre_csv',
27  'typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_irre_mm',
28  'typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_irre_mnsymmetric',
29  'typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_irre_foreignfield',
30  'typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_irre_mnattributeinline',
31  'typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_irre_mnattributesimple',
32  ];
33 
37  public function ‪exportIrreRecords(): void
38  {
39  ‪$recordTypesIncludeFields = include __DIR__ . '/../Fixtures/IrreRecordsIncludeFields.php';
40 
41  // @todo irre_tutorial.xml contains duplicate sorting values that need careful consideration before converting to csv
42  $this->importDataSet(__DIR__ . '/../Fixtures/DatabaseImports/irre_tutorial.xml');
43 
44  $subject = $this->getAccessibleMock(Export::class, ['setMetaData']);
45  $subject->setPid(1);
46  $subject->setTables(['_ALL']);
47  $subject->setRecordTypesIncludeFields(‪$recordTypesIncludeFields);
48  $subject->process();
49 
50  $out = $subject->render();
51 
52  // @todo Use self::assertXmlStringEqualsXmlFile() instead when sqlite issue is sorted out
54  __DIR__ . '/../Fixtures/XmlExports/irre-records.xml',
55  $out
56  );
57  }
58 }
‪TYPO3\CMS\Impexp\Export\$recordTypesIncludeFields
‪array $recordTypesIncludeFields
Definition: Export.php:119
‪TYPO3\CMS\Impexp\Tests\Functional\Export\IrreTutorialRecordsTest\exportIrreRecords
‪exportIrreRecords()
Definition: IrreTutorialRecordsTest.php:37
‪TYPO3\CMS\Impexp\Tests\Functional\AbstractImportExportTestCase\assertXmlStringEqualsXmlFileWithIgnoredSqliteTypeInteger
‪assertXmlStringEqualsXmlFileWithIgnoredSqliteTypeInteger(string $expectedFile, string $actualXml)
Definition: AbstractImportExportTestCase.php:105
‪TYPO3\CMS\Impexp\Tests\Functional\Export
Definition: ExportControllerTest.php:18
‪TYPO3\CMS\Impexp\Tests\Functional\AbstractImportExportTestCase
Definition: AbstractImportExportTestCase.php:34
‪TYPO3\CMS\Impexp\Tests\Functional\Export\IrreTutorialRecordsTest
Definition: IrreTutorialRecordsTest.php:24
‪TYPO3\CMS\Impexp\Export
Definition: Export.php:48
‪TYPO3\CMS\Impexp\Tests\Functional\Export\IrreTutorialRecordsTest\$testExtensionsToLoad
‪$testExtensionsToLoad
Definition: IrreTutorialRecordsTest.php:25