[TASK] Add functional tests for rendering translated tt_content with FAL 14/53914/2
authorTymoteusz Motylewski <t.motylewski@gmail.com>
Mon, 4 Sep 2017 12:07:01 +0000 (14:07 +0200)
committerBenni Mack <benni@typo3.org>
Tue, 5 Sep 2017 11:30:28 +0000 (13:30 +0200)
Functional tests checking TypoScript rendering of tt_content
records with FAL images.

Releases: master, 8.7, 7.6
Resolves: #82187
Change-Id: I5889ab13183b28dc2ff1ccc2c00c18f01ceacc76
Reviewed-on: https://review.typo3.org/53914
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/Classes/Controller/ContentController.php
typo3/sysext/extbase/Tests/Functional/Persistence/TranslatedContentTest.php
typo3/sysext/frontend/Tests/Functional/Fixtures/Images/kasper-skarhoj1.jpg [new file with mode: 0644]
typo3/sysext/frontend/Tests/Functional/Fixtures/Images/team-t3board10.jpg [new file with mode: 0644]
typo3/sysext/frontend/Tests/Functional/Fixtures/Images/typo3-logo.png [new file with mode: 0644]
typo3/sysext/frontend/Tests/Functional/Rendering/DataSet/LiveDefaultElements.csv
typo3/sysext/frontend/Tests/Functional/Rendering/LocalizedContentRenderingTest.php

index ca979df..c4543d1 100644 (file)
@@ -45,7 +45,20 @@ class ContentController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionControll
     {
         $content = $this->contentRepository->findAll();
         $value[$this->getRuntimeIdentifier()] = $this->getStructure($content);
-
+        // this is required so we don't try to json_encode content of the image
+        $this->view->setConfiguration(['value' => [
+            '_descendAll' => [
+                '_descendAll' => [
+                    '_descendAll' => [
+                        '_descendAll' => [
+                            '_descendAll' => [
+                                '_exclude' => ['contents']
+                            ]
+                        ]
+                    ]
+                ]
+            ]
+        ]]);
         $this->view->assign('value', $value);
     }
 
index f6c995e..7020ba1 100644 (file)
@@ -69,6 +69,14 @@ class TranslatedContentTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandlin
         ]
     ];
 
+    /**
+     * @var array
+     */
+    protected $pathsToLinkInTestInstance = [
+        'typo3/sysext/core/Tests/Functional/Fixtures/Frontend/AdditionalConfiguration.php' => 'typo3conf/AdditionalConfiguration.php',
+        'typo3/sysext/frontend/Tests/Functional/Fixtures/Images' => 'fileadmin/user_upload'
+    ];
+
     protected function setUp()
     {
         parent::setUp();
diff --git a/typo3/sysext/frontend/Tests/Functional/Fixtures/Images/kasper-skarhoj1.jpg b/typo3/sysext/frontend/Tests/Functional/Fixtures/Images/kasper-skarhoj1.jpg
new file mode 100644 (file)
index 0000000..7f70f2f
Binary files /dev/null and b/typo3/sysext/frontend/Tests/Functional/Fixtures/Images/kasper-skarhoj1.jpg differ
diff --git a/typo3/sysext/frontend/Tests/Functional/Fixtures/Images/team-t3board10.jpg b/typo3/sysext/frontend/Tests/Functional/Fixtures/Images/team-t3board10.jpg
new file mode 100644 (file)
index 0000000..bb5f5a8
Binary files /dev/null and b/typo3/sysext/frontend/Tests/Functional/Fixtures/Images/team-t3board10.jpg differ
diff --git a/typo3/sysext/frontend/Tests/Functional/Fixtures/Images/typo3-logo.png b/typo3/sysext/frontend/Tests/Functional/Fixtures/Images/typo3-logo.png
new file mode 100644 (file)
index 0000000..bccbad5
Binary files /dev/null and b/typo3/sysext/frontend/Tests/Functional/Fixtures/Images/typo3-logo.png differ
index 3d1c5fb..c97b64d 100644 (file)
@@ -1,20 +1,41 @@
-sys_language,,,,,,,,,,,,,,,
-,uid,pid,hidden,title,flag,,,,,,,,,,
-,1,0,0,Dansk,dk,,,,,,,,,,
-,2,0,0,Deutsch,de,,,,,,,,,,
-,3,0,0,Polski,pl,,,,,,,,,,
-tt_content,,,,,,,,,,,,,,,
-,uid,pid,sorting,deleted,hidden,sys_language_uid,l18n_parent,l10n_source,t3_origuid,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
-,297,89,256,0,0,0,0,0,0,0,0,0,0,0,Regular Element #1
-,298,89,512,0,0,0,0,0,0,0,0,0,0,0,Regular Element #2
-,299,89,768,0,0,0,0,0,0,0,0,0,0,0,Regular Element #3
-,300,89,1024,0,0,1,299,299,299,0,0,0,0,0,[Translate to Dansk:] Regular Element #3
-,301,89,384,0,0,1,297,297,297,0,0,0,0,0,[Translate to Dansk:] Regular Element #1
-,302,89,448,0,0,2,297,301,301,0,0,0,0,0,[Translate to Deutsch:] [Translate to Dansk:] Regular Element #1
-,303,89,1250,0,0,1,0,0,0,0,0,0,0,0,[DK] Without default language
-,304,89,1250,0,0,2,0,0,0,0,0,0,0,0,[DE] Without default language
-,305,89,512,0,0,3,297,297,297,0,0,0,0,0,[Translate to Polski:] Regular Element #1
-,306,89,1024,0,0,3,0,0,0,0,0,0,0,0,[PL] Without default language
-,307,89,128,0,1,0,0,0,0,0,0,0,0,0,Hidden Element #4
-,308,89,128,0,0,1,307,307,307,0,0,0,0,0,[DK] UnHidden Element #4
-,309,89,512,0,1,3,298,298,298,0,0,0,0,0,[PL] Hidden Regular Element #2
+sys_language,,,,,,,,,,,,,,,,,,,,,,,
+,uid,pid,hidden,title,flag,,,,,,,,,,,,,,,,,,
+,1,0,0,Dansk,dk,,,,,,,,,,,,,,,,,,
+,2,0,0,Deutsch,de,,,,,,,,,,,,,,,,,,
+,3,0,0,Polski,pl,,,,,,,,,,,,,,,,,,
+tt_content,,,,,,,,,,,,,,,,,,,,,,,
+,uid,pid,sorting,deleted,hidden,sys_language_uid,l18n_parent,l10n_source,t3_origuid,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,image,header,,,,,,,
+,297,89,256,0,0,0,0,0,0,0,0,0,0,0,1,Regular Element #1,,,,,,,
+,298,89,512,0,0,0,0,0,0,0,0,0,0,0,1,Regular Element #2,,,,,,,
+,299,89,768,0,0,0,0,0,0,0,0,0,0,0,0,Regular Element #3,,,,,,,
+,300,89,1024,0,0,1,299,299,299,0,0,0,0,0,2,[Translate to Dansk:] Regular Element #3,,,,,,,
+,301,89,384,0,0,1,297,297,297,0,0,0,0,0,0,[Translate to Dansk:] Regular Element #1,,,,,,,
+,302,89,448,0,0,2,297,301,301,0,0,0,0,0,1,[Translate to Deutsch:] [Translate to Dansk:] Regular Element #1,,,,,,,
+,303,89,1250,0,0,1,0,0,0,0,0,0,0,0,1,[DK] Without default language,,,,,,,
+,304,89,1250,0,0,2,0,0,0,0,0,0,0,0,0,[DE] Without default language,,,,,,,
+,305,89,512,0,0,3,297,297,297,0,0,0,0,0,0,[Translate to Polski:] Regular Element #1,,,,,,,
+,306,89,1024,0,0,3,0,0,0,0,0,0,0,0,0,[PL] Without default language,,,,,,,
+,307,89,128,0,1,0,0,0,0,0,0,0,0,0,0,Hidden Element #4,,,,,,,
+,308,89,128,0,0,1,307,307,307,0,0,0,0,0,0,[DK] UnHidden Element #4,,,,,,,
+,309,89,512,0,1,3,298,298,298,0,0,0,0,0,0,[PL] Hidden Regular Element #2,,,,,,,
+,,,,,,,,,,,,,,,,,,,,,,,
+,,,,,,,,,,,,,,,,,,,,,,,
+,,,,,,,,,,,,,,,,,,,,,,,
+sys_file,,,,,,,,,,,,,,,,,,,,,,,
+,uid,pid,type,storage,identifier,extension,mime_type,name,sha1,size,creation_date,modification_date,missing,metadata,identifier_hash,folder_hash,last_indexed,,,,,,
+,1,0,2,1,/user_upload/kasper-skarhoj1.jpg,jpg,image/jpeg,kasper-skarhoj1.jpg,05d8c6dda534a0b9e7023c3031e60e4b49c3da40,39037,1375080761,1374139442,0,0,a58963e60a4fcc31d1a869184a2d5d929dd27c8a,19669f1e02c2f16705ec7587044c66443be70725,0,,,,,,
+,21,0,2,1,/user_upload/team-t3board10.jpg,jpg,image/jpeg,team-t3board10.jpg,ae6951147687ed1f94f60973fca7ef46e2ba2372,166843,1375080761,1374139442,0,0,16ba2a587da8ef10dfccbe8b9841bde85afbd2d4,19669f1e02c2f16705ec7587044c66443be70725,0,,,,,,
+,20,0,2,1,/user_upload/typo3-logo.png,png,image/png,typo3-logo.png,cdac36562aaa65d23831b25c48cd14863b5be2ad,1392,1449871035,1449871035,0,0,ef4e3ead8d320c927228e158d950ade4a105081d,19669f1e02c2f16705ec7587044c66443be70725,0,,,,,,
+,,,,,,,,,,,,,,,,,,,,,,,
+sys_file_metadata,,,,,,,,,,,,,,,,,,,,,,,
+,uid,pid,sys_language_uid,l10n_parent,t3_origuid,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,file,title,width,height,description,alternative,categories,l10n_diffsource,,,,,
+,1,0,0,0,0,0,0,0,0,0,1,Image Kasper,401,600,,,0,,,,,,
+,21,0,0,0,0,0,0,0,0,0,21,Image T3BOARD,1024,683,,,0,,,,,,
+sys_file_reference,,,,,,,,,,,,,,,,,,,,,,,
+,uid,pid,sorting,deleted,sys_language_uid,l10n_parent,t3_origuid,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,uid_local,uid_foreign,tablenames,fieldname,sorting_foreign,table_local,title,description,alternative,link,l10n_diffsource
+,126,89,128,0,0,0,0,0,0,0,0,0,1,297,tt_content,image,2,sys_file,T3BOARD,,,,
+,127,89,64,0,0,0,0,0,0,0,0,0,21,298,tt_content,image,1,sys_file,Kasper,,,,
+,128,89,32,0,1,127,127,0,0,0,0,0,21,300,tt_content,image,1,sys_file,[Kasper] Image translated to Dansk,,,,
+,129,89,16,0,1,0,0,0,0,0,0,0,1,300,tt_content,image,2,sys_file,[T3BOARD] Image added in Dansk (without parent),,,,
+,130,89,8,0,1,0,0,0,0,0,0,0,1,303,tt_content,image,1,sys_file,[T3BOARD] Image added to DK elemet without default language,,,,
+,131,89,8,0,2,0,0,0,0,0,0,0,1,302,tt_content,image,1,sys_file,[T3BOARD] image translated to DE from DK,,,,
index 15a86d1..3f3d933 100644 (file)
@@ -96,12 +96,23 @@ class LocalizedContentRenderingTest extends \TYPO3\CMS\Core\Tests\Functional\Dat
         ]
     ];
 
+    /**
+     * @var array
+     */
+    protected $pathsToLinkInTestInstance = [
+        'typo3/sysext/core/Tests/Functional/Fixtures/Frontend/AdditionalConfiguration.php' => 'typo3conf/AdditionalConfiguration.php',
+        'typo3/sysext/frontend/Tests/Functional/Fixtures/Images' => 'fileadmin/user_upload'
+    ];
+
     protected function setUp()
     {
         parent::setUp();
+        $this->importDataSet('PACKAGE:typo3/testing-framework/Resources/Core/Functional/Fixtures/sys_file_storage.xml');
         $this->importScenarioDataSet('LiveDefaultPages');
         $this->importScenarioDataSet('LiveDefaultElements');
-
+        $this->setUpFrontendRootPage(1, [
+            'typo3/sysext/core/Tests/Functional/Fixtures/Frontend/JsonRenderer.ts',
+        ]);
         $this->backendUser->workspace = 0;
     }
 
@@ -214,9 +225,6 @@ class LocalizedContentRenderingTest extends \TYPO3\CMS\Core\Tests\Functional\Dat
      */
     public function onlyEnglishContentIsRenderedForDefaultLanguage(string $typoScript, string $sysLanguageMode, string $sysLanguageContentOL)
     {
-        $this->setUpFrontendRootPage(1, [
-            'typo3/sysext/core/Tests/Functional/Fixtures/Frontend/JsonRenderer.ts',
-        ]);
         $this->addTypoScriptToTemplateRecord(1, $typoScript);
 
         $frontendResponse = $this->getFrontendResponse(self::VALUE_PageId, 0);
@@ -237,6 +245,26 @@ class LocalizedContentRenderingTest extends \TYPO3\CMS\Core\Tests\Functional\Dat
             ->setValues(...$this->getNonVisibleHeaders($visibleHeaders))
         );
 
+        //assert FAL relations
+        $visibleFiles = ['T3BOARD'];
+        $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
+            ->setRecordIdentifier(self::TABLE_Content . ':297')->setRecordField('image')
+            ->setTable('sys_file_reference')->setField('title')->setValues(...$visibleFiles));
+
+        $this->assertThat($responseSections, $this->getRequestSectionStructureDoesNotHaveRecordConstraint()
+            ->setRecordIdentifier(self::TABLE_Content . ':297')->setRecordField('image')
+            ->setTable('sys_file_reference')->setField('title')->setValues(...$this->getNonVisibleFileTitles($visibleFiles)));
+
+        $visibleFiles = ['Kasper'];
+        $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
+            ->setRecordIdentifier(self::TABLE_Content . ':298')->setRecordField('image')
+            ->setTable('sys_file_reference')->setField('title')->setValues(...$visibleFiles));
+
+        $this->assertThat($responseSections, $this->getRequestSectionStructureDoesNotHaveRecordConstraint()
+            ->setRecordIdentifier(self::TABLE_Content . ':298')->setRecordField('image')
+            ->setTable('sys_file_reference')->setField('title')->setValues(...$this->getNonVisibleFileTitles($visibleFiles)));
+
+        //Assert TSFE and page record title
         $content = json_decode($frontendResponse->getContent());
         $this->assertEquals('Default language Page', $content->Scope->page->title);
         $this->assertEquals(0, $content->Scope->tsfe->sys_language_uid, 'sys_language_uid doesn\'t match');
@@ -259,42 +287,140 @@ class LocalizedContentRenderingTest extends \TYPO3\CMS\Core\Tests\Functional\Dat
             [
                 'typoScript' => 'config.sys_language_overlay = 0
                                 config.sys_language_mode =',
-                'visibleRecordHeaders' => ['[Translate to Dansk:] Regular Element #1', '[Translate to Dansk:] Regular Element #3', '[DK] Without default language', '[DK] UnHidden Element #4'],
+                'visibleRecords' => [
+                    300 => [
+                        'header' => '[Translate to Dansk:] Regular Element #3',
+                        'image' => ['[Kasper] Image translated to Dansk', '[T3BOARD] Image added in Dansk (without parent)'],
+                    ],
+                    301 => [
+                        'header' => '[Translate to Dansk:] Regular Element #1',
+                        'image' => [],
+                    ],
+                    303 => [
+                        'header' => '[DK] Without default language',
+                        'image' => ['[T3BOARD] Image added to DK elemet without default language']
+                    ],
+                    308 => [
+                        'header' => '[DK] UnHidden Element #4',
+                        'image' => []
+                    ],
+                ],
                 'sys_language_mode' => '',
                 'sys_language_contentOL' => 0
             ],
             [
                 'typoScript' => 'config.sys_language_overlay = 0
                                 config.sys_language_mode = content_fallback',
-                'visibleRecordHeaders' => ['[Translate to Dansk:] Regular Element #1', '[Translate to Dansk:] Regular Element #3', '[DK] Without default language', '[DK] UnHidden Element #4'],
+                'visibleRecords' => [
+                    300 => [
+                        'header' => '[Translate to Dansk:] Regular Element #3',
+                        'image' => ['[Kasper] Image translated to Dansk', '[T3BOARD] Image added in Dansk (without parent)'],
+                    ],
+                    301 => [
+                        'header' => '[Translate to Dansk:] Regular Element #1',
+                        'image' => [],
+                    ],
+                    303 => [
+                        'header' => '[DK] Without default language',
+                        'image' => ['[T3BOARD] Image added to DK elemet without default language']
+                    ],
+                    308 => [
+                        'header' => '[DK] UnHidden Element #4',
+                        'image' => []
+                    ],
+                ],
                 'sys_language_mode' => 'content_fallback',
                 'sys_language_contentOL' => 0
             ],
             [
                 'typoScript' => 'config.sys_language_overlay = 0
                                 config.sys_language_mode = content_fallback;1,0',
-                'visibleRecordHeaders' => ['[Translate to Dansk:] Regular Element #1', '[Translate to Dansk:] Regular Element #3', '[DK] Without default language', '[DK] UnHidden Element #4'],
+                'visibleRecords' => [
+                    300 => [
+                        'header' => '[Translate to Dansk:] Regular Element #3',
+                        'image' => ['[Kasper] Image translated to Dansk', '[T3BOARD] Image added in Dansk (without parent)'],
+                    ],
+                    301 => [
+                        'header' => '[Translate to Dansk:] Regular Element #1',
+                        'image' => [],
+                    ],
+                    303 => [
+                        'header' => '[DK] Without default language',
+                        'image' => ['[T3BOARD] Image added to DK elemet without default language']
+                    ],
+                    308 => [
+                        'header' => '[DK] UnHidden Element #4',
+                        'image' => []
+                    ],
+                ],
                 'sys_language_mode' => 'content_fallback',
                 'sys_language_contentOL' => 0
             ],
             [
                 'typoScript' => 'config.sys_language_overlay = 0
                                 config.sys_language_mode = strict',
-                'visibleRecordHeaders' => ['[Translate to Dansk:] Regular Element #1', '[Translate to Dansk:] Regular Element #3', '[DK] Without default language', '[DK] UnHidden Element #4'],
+                'visibleRecords' => [
+                    300 => [
+                        'header' => '[Translate to Dansk:] Regular Element #3',
+                        'image' => ['[Kasper] Image translated to Dansk', '[T3BOARD] Image added in Dansk (without parent)'],
+                    ],
+                    301 => [
+                        'header' => '[Translate to Dansk:] Regular Element #1',
+                        'image' => [],
+                    ],
+                    303 => [
+                        'header' => '[DK] Without default language',
+                        'image' => ['[T3BOARD] Image added to DK elemet without default language']
+                    ],
+                    308 => [
+                        'header' => '[DK] UnHidden Element #4',
+                        'image' => []
+                    ],
+                ],
                 'sys_language_mode' => 'strict',
                 'sys_language_contentOL' => 0
             ],
             [
                 'typoScript' => 'config.sys_language_overlay = 0
                                 config.sys_language_mode = ignore',
-                'visibleRecordHeaders' => ['[Translate to Dansk:] Regular Element #1', '[Translate to Dansk:] Regular Element #3', '[DK] Without default language', '[DK] UnHidden Element #4'],
+                'visibleRecords' => [
+                    300 => [
+                        'header' => '[Translate to Dansk:] Regular Element #3',
+                        'image' => ['[Kasper] Image translated to Dansk', '[T3BOARD] Image added in Dansk (without parent)'],
+                    ],
+                    301 => [
+                        'header' => '[Translate to Dansk:] Regular Element #1',
+                        'image' => [],
+                    ],
+                    303 => [
+                        'header' => '[DK] Without default language',
+                        'image' => ['[T3BOARD] Image added to DK elemet without default language']
+                    ],
+                    308 => [
+                        'header' => '[DK] UnHidden Element #4',
+                        'image' => []
+                    ],
+                ],
                 'sys_language_mode' => 'ignore',
                 'sys_language_contentOL' => 0
             ],
             [
                 'typoScript' => 'config.sys_language_overlay = 1
                                 config.sys_language_mode =',
-                'visibleRecordHeaders' => ['[Translate to Dansk:] Regular Element #1', 'Regular Element #2', '[Translate to Dansk:] Regular Element #3'],
+                'visibleRecords' => [
+                    297 => [
+                        'header' => '[Translate to Dansk:] Regular Element #1',
+                        'image' => [],
+                    ],
+                    298 => [
+                        'header' => 'Regular Element #2',
+                        'image' => ['Kasper'],
+                    ],
+                    299 => [
+                        'header' => '[Translate to Dansk:] Regular Element #3',
+                        'image' => ['[Kasper] Image translated to Dansk', '[T3BOARD] Image added in Dansk (without parent)'],
+                    ],
+                ],
                 'sys_language_mode' => '',
                 'sys_language_contentOL' => 1
             ],
@@ -303,7 +429,20 @@ class LocalizedContentRenderingTest extends \TYPO3\CMS\Core\Tests\Functional\Dat
             [
                 'typoScript' => 'config.sys_language_overlay = 1
                                 config.sys_language_mode = content_fallback',
-                'visibleRecordHeaders' => ['[Translate to Dansk:] Regular Element #1', 'Regular Element #2', '[Translate to Dansk:] Regular Element #3'],
+                'visibleRecords' => [
+                    297 => [
+                        'header' => '[Translate to Dansk:] Regular Element #1',
+                        'image' => [],
+                    ],
+                    298 => [
+                        'header' => 'Regular Element #2',
+                        'image' => ['Kasper'],
+                    ],
+                    299 => [
+                        'header' => '[Translate to Dansk:] Regular Element #3',
+                        'image' => ['[Kasper] Image translated to Dansk', '[T3BOARD] Image added in Dansk (without parent)'],
+                    ],
+                ],
                 'sys_language_mode' => 'content_fallback',
                 'sys_language_contentOL' => 1
             ],
@@ -313,21 +452,60 @@ class LocalizedContentRenderingTest extends \TYPO3\CMS\Core\Tests\Functional\Dat
             [
                 'typoScript' => 'config.sys_language_overlay = 1
                                 config.sys_language_mode = content_fallback;1,0',
-                'visibleRecordHeaders' => ['[Translate to Dansk:] Regular Element #1', 'Regular Element #2', '[Translate to Dansk:] Regular Element #3'],
+                'visibleRecords' => [
+                    297 => [
+                        'header' => '[Translate to Dansk:] Regular Element #1',
+                        'image' => [],
+                    ],
+                    298 => [
+                        'header' => 'Regular Element #2',
+                        'image' => ['Kasper'],
+                    ],
+                    299 => [
+                        'header' => '[Translate to Dansk:] Regular Element #3',
+                        'image' => ['[Kasper] Image translated to Dansk', '[T3BOARD] Image added in Dansk (without parent)'],
+                    ],
+                ],
                 'sys_language_mode' => 'content_fallback',
                 'sys_language_contentOL' => 1
             ],
             [
                 'typoScript' => 'config.sys_language_overlay = 1
                                 config.sys_language_mode = strict',
-                'visibleRecordHeaders' => ['[Translate to Dansk:] Regular Element #1', 'Regular Element #2', '[Translate to Dansk:] Regular Element #3'],
+                'visibleRecords' => [
+                    297 => [
+                        'header' => '[Translate to Dansk:] Regular Element #1',
+                        'image' => [],
+                    ],
+                    298 => [
+                        'header' => 'Regular Element #2',
+                        'image' => ['Kasper'],
+                    ],
+                    299 => [
+                        'header' => '[Translate to Dansk:] Regular Element #3',
+                        'image' => ['[Kasper] Image translated to Dansk', '[T3BOARD] Image added in Dansk (without parent)'],
+                    ],
+                ],
                 'sys_language_mode' => 'strict',
                 'sys_language_contentOL' => 1
             ],
             [
                 'typoScript' => 'config.sys_language_overlay = 1
                                 config.sys_language_mode = ignore',
-                'visibleRecordHeaders' => ['[Translate to Dansk:] Regular Element #1', 'Regular Element #2', '[Translate to Dansk:] Regular Element #3'],
+                'visibleRecords' => [
+                    297 => [
+                        'header' => '[Translate to Dansk:] Regular Element #1',
+                        'image' => [],
+                    ],
+                    298 => [
+                        'header' => 'Regular Element #2',
+                        'image' => ['Kasper'],
+                    ],
+                    299 => [
+                        'header' => '[Translate to Dansk:] Regular Element #3',
+                        'image' => ['[Kasper] Image translated to Dansk', '[T3BOARD] Image added in Dansk (without parent)'],
+                    ],
+                ],
                 'sys_language_mode' => 'ignore',
                 'sys_language_contentOL' => 1
             ],
@@ -336,21 +514,48 @@ class LocalizedContentRenderingTest extends \TYPO3\CMS\Core\Tests\Functional\Dat
             [
                 'typoScript' => 'config.sys_language_overlay = hideNonTranslated
                                 config.sys_language_mode =',
-                'visibleRecordHeaders' => ['[Translate to Dansk:] Regular Element #1', '[Translate to Dansk:] Regular Element #3'],
+                'visibleRecords' => [
+                    297 => [
+                        'header' => '[Translate to Dansk:] Regular Element #1',
+                        'image' => [],
+                    ],
+                    299 => [
+                        'header' => '[Translate to Dansk:] Regular Element #3',
+                        'image' => ['[Kasper] Image translated to Dansk', '[T3BOARD] Image added in Dansk (without parent)'],
+                    ],
+                ],
                 'sys_language_mode' => '',
                 'sys_language_contentOL' => 'hideNonTranslated'
             ],
             [
                 'typoScript' => 'config.sys_language_overlay = hideNonTranslated
                                 config.sys_language_mode = content_fallback',
-                'visibleRecordHeaders' => ['[Translate to Dansk:] Regular Element #1', '[Translate to Dansk:] Regular Element #3'],
+                'visibleRecords' => [
+                    297 => [
+                        'header' => '[Translate to Dansk:] Regular Element #1',
+                        'image' => [],
+                    ],
+                    299 => [
+                        'header' => '[Translate to Dansk:] Regular Element #3',
+                        'image' => ['[Kasper] Image translated to Dansk', '[T3BOARD] Image added in Dansk (without parent)'],
+                    ],
+                ],
                 'sys_language_mode' => 'content_fallback',
                 'sys_language_contentOL' => 'hideNonTranslated'
             ],
             [
                 'typoScript' => 'config.sys_language_overlay = hideNonTranslated
                                 config.sys_language_mode = content_fallback;1,0',
-                'visibleRecordHeaders' => ['[Translate to Dansk:] Regular Element #1', '[Translate to Dansk:] Regular Element #3'],
+                'visibleRecords' => [
+                    297 => [
+                        'header' => '[Translate to Dansk:] Regular Element #1',
+                        'image' => [],
+                    ],
+                    299 => [
+                        'header' => '[Translate to Dansk:] Regular Element #3',
+                        'image' => ['[Kasper] Image translated to Dansk', '[T3BOARD] Image added in Dansk (without parent)'],
+                    ],
+                ],
                 'sys_language_mode' => 'content_fallback',
                 'sys_language_contentOL' => 'hideNonTranslated'
             ],
@@ -358,14 +563,32 @@ class LocalizedContentRenderingTest extends \TYPO3\CMS\Core\Tests\Functional\Dat
             [
                 'typoScript' => 'config.sys_language_overlay = hideNonTranslated
                                 config.sys_language_mode = strict',
-                'visibleRecordHeaders' => ['[Translate to Dansk:] Regular Element #1', '[Translate to Dansk:] Regular Element #3'],
+                'visibleRecords' => [
+                    297 => [
+                        'header' => '[Translate to Dansk:] Regular Element #1',
+                        'image' => [],
+                    ],
+                    299 => [
+                        'header' => '[Translate to Dansk:] Regular Element #3',
+                        'image' => ['[Kasper] Image translated to Dansk', '[T3BOARD] Image added in Dansk (without parent)'],
+                    ],
+                ],
                 'sys_language_mode' => 'strict',
                 'sys_language_contentOL' => 'hideNonTranslated'
             ],
             [
                 'typoScript' => 'config.sys_language_overlay = hideNonTranslated
                                 config.sys_language_mode = ignore',
-                'visibleRecordHeaders' => ['[Translate to Dansk:] Regular Element #1', '[Translate to Dansk:] Regular Element #3'],
+                'visibleRecords' => [
+                    297 => [
+                        'header' => '[Translate to Dansk:] Regular Element #1',
+                        'image' => [],
+                    ],
+                    299 => [
+                        'header' => '[Translate to Dansk:] Regular Element #3',
+                        'image' => ['[Kasper] Image translated to Dansk', '[T3BOARD] Image added in Dansk (without parent)'],
+                    ],
+                ],
                 'sys_language_mode' => 'ignore',
                 'sys_language_contentOL' => 'hideNonTranslated'
             ],
@@ -377,18 +600,19 @@ class LocalizedContentRenderingTest extends \TYPO3\CMS\Core\Tests\Functional\Dat
      * @dataProvider dutchDataProvider
      *
      * @param string $typoScript
-     * @param array $visibleHeaders
+     * @param array $visibleRecords
      * @param string $sysLanguageMode
      * @param string $sysLanguageContentOL
      */
-    public function renderingOfDutchLanguage(string $typoScript, array $visibleHeaders, string $sysLanguageMode, string $sysLanguageContentOL)
+    public function renderingOfDutchLanguage(string $typoScript, array $visibleRecords, string $sysLanguageMode, string $sysLanguageContentOL)
     {
-        $this->setUpFrontendRootPage(1, [
-            'typo3/sysext/core/Tests/Functional/Fixtures/Frontend/JsonRenderer.ts',
-        ]);
         $this->addTypoScriptToTemplateRecord(1, $typoScript);
         $frontendResponse = $this->getFrontendResponse(self::VALUE_PageId, 1);
         $responseSections = $frontendResponse->getResponseSections();
+        $visibleHeaders = array_map(function ($element) {
+            return $element['header'];
+        }, $visibleRecords);
+
         $this->assertThat(
             $responseSections,
             $this->getRequestSectionHasRecordConstraint()
@@ -403,6 +627,19 @@ class LocalizedContentRenderingTest extends \TYPO3\CMS\Core\Tests\Functional\Dat
             ->setField('header')
             ->setValues(...$this->getNonVisibleHeaders($visibleHeaders))
         );
+
+        foreach ($visibleRecords as $ttContentUid => $properties) {
+            $visibleFileTitles = $properties['image'];
+            if (!empty($visibleFileTitles)) {
+                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
+                    ->setRecordIdentifier(self::TABLE_Content . ':' . $ttContentUid)->setRecordField('image')
+                    ->setTable('sys_file_reference')->setField('title')->setValues(...$visibleFileTitles));
+            }
+            $this->assertThat($responseSections, $this->getRequestSectionStructureDoesNotHaveRecordConstraint()
+                ->setRecordIdentifier(self::TABLE_Content . ':' . $ttContentUid)->setRecordField('image')
+                ->setTable('sys_file_reference')->setField('title')->setValues(...$this->getNonVisibleFileTitles($visibleFileTitles)));
+        }
+
         $content = json_decode($frontendResponse->getContent());
         $this->assertEquals('[DK]Page', $content->Scope->page->title);
         $this->assertEquals(1, $content->Scope->tsfe->sys_language_uid, 'sys_language_uid doesn\'t match');
@@ -422,7 +659,20 @@ class LocalizedContentRenderingTest extends \TYPO3\CMS\Core\Tests\Functional\Dat
             [
                 'typoScript' => 'config.sys_language_overlay = 0
                                 config.sys_language_mode =',
-                'visibleRecordHeaders' => ['Regular Element #1', 'Regular Element #2', 'Regular Element #3'],
+                'visibleRecords' => [
+                    297 => [
+                        'header' => 'Regular Element #1',
+                        'image' => ['T3BOARD'],
+                    ],
+                    298 => [
+                        'header' => 'Regular Element #2',
+                        'image' => ['Kasper'],
+                    ],
+                    299 => [
+                        'header' => 'Regular Element #3',
+                        'image' => [],
+                    ],
+                ],
                 'pageTitle' => 'Default language Page',
                 'sys_language_uid' => 0,
                 'sys_language_content' => 0,
@@ -432,7 +682,20 @@ class LocalizedContentRenderingTest extends \TYPO3\CMS\Core\Tests\Functional\Dat
             [
                 'typoScript' => 'config.sys_language_overlay = 0
                                 config.sys_language_mode = content_fallback',
-                'visibleRecordHeaders' => ['Regular Element #1', 'Regular Element #2', 'Regular Element #3'],
+                'visibleRecords' => [
+                    297 => [
+                        'header' => 'Regular Element #1',
+                        'image' => ['T3BOARD'],
+                    ],
+                    298 => [
+                        'header' => 'Regular Element #2',
+                        'image' => ['Kasper'],
+                    ],
+                    299 => [
+                        'header' => 'Regular Element #3',
+                        'image' => [],
+                    ],
+                ],
                 'pageTitle' => 'Default language Page',
                 'sys_language_uid' => 2,
                 'sys_language_content' => 0,
@@ -442,7 +705,24 @@ class LocalizedContentRenderingTest extends \TYPO3\CMS\Core\Tests\Functional\Dat
             [
                 'typoScript' => 'config.sys_language_overlay = 0
                                 config.sys_language_mode = content_fallback;1,0',
-                'visibleRecordHeaders' => ['[Translate to Dansk:] Regular Element #1', '[Translate to Dansk:] Regular Element #3', '[DK] Without default language', '[DK] UnHidden Element #4'],
+                'visibleRecords' => [
+                    300 => [
+                        'header' => '[Translate to Dansk:] Regular Element #3',
+                        'image' => ['[Kasper] Image translated to Dansk', '[T3BOARD] Image added in Dansk (without parent)'],
+                    ],
+                    301 => [
+                        'header' => '[Translate to Dansk:] Regular Element #1',
+                        'image' => [],
+                    ],
+                    303 => [
+                        'header' => '[DK] Without default language',
+                        'image' => ['[T3BOARD] Image added to DK elemet without default language'],
+                    ],
+                    308 => [
+                        'header' => '[DK] UnHidden Element #4',
+                        'image' => [],
+                    ],
+                ],
                 'pageTitle' => 'Default language Page', //TODO: change it to "[DK]Page" once #81657 is fixed
                 'sys_language_uid' => 2,
                 'sys_language_content' => 1,
@@ -452,7 +732,7 @@ class LocalizedContentRenderingTest extends \TYPO3\CMS\Core\Tests\Functional\Dat
             [
                 'typoScript' => 'config.sys_language_overlay = 0
                                 config.sys_language_mode = strict',
-                'visibleRecordHeaders' => [],
+                'visibleRecords' => [],
                 'pageTitle' => '',
                 'sys_language_uid' => 2,
                 'sys_language_content' => 2,
@@ -463,7 +743,16 @@ class LocalizedContentRenderingTest extends \TYPO3\CMS\Core\Tests\Functional\Dat
             [
                 'typoScript' => 'config.sys_language_overlay = 0
                                 config.sys_language_mode = ignore',
-                'visibleRecordHeaders' => ['[Translate to Deutsch:] [Translate to Dansk:] Regular Element #1', '[DE] Without default language'],
+                'visibleRecords' => [
+                    302 => [
+                        'header' => '[Translate to Deutsch:] [Translate to Dansk:] Regular Element #1',
+                        'image' => ['[T3BOARD] image translated to DE from DK'],
+                    ],
+                    304 => [
+                        'header' => '[DE] Without default language',
+                        'image' => [],
+                    ],
+                ],
                 'pageTitle' => 'Default language Page',
                 'sys_language_uid' => 2,
                 'sys_language_content' => 2,
@@ -473,7 +762,20 @@ class LocalizedContentRenderingTest extends \TYPO3\CMS\Core\Tests\Functional\Dat
             5 => [
                 'typoScript' => 'config.sys_language_overlay = 1
                                 config.sys_language_mode =',
-                'visibleRecordHeaders' => ['Regular Element #1', 'Regular Element #2', 'Regular Element #3'],
+                'visibleRecords' => [
+                    297 => [
+                        'header' => 'Regular Element #1',
+                        'image' => ['T3BOARD'],
+                    ],
+                    298 => [
+                        'header' => 'Regular Element #2',
+                        'image' => ['Kasper'],
+                    ],
+                    299 => [
+                        'header' => 'Regular Element #3',
+                        'image' => [],
+                    ],
+                ],
                 'pageTitle' => 'Default language Page',
                 'sys_language_uid' => 0,
                 'sys_language_content' => 0,
@@ -484,7 +786,20 @@ class LocalizedContentRenderingTest extends \TYPO3\CMS\Core\Tests\Functional\Dat
             [
                 'typoScript' => 'config.sys_language_overlay = 1
                                 config.sys_language_mode = content_fallback',
-                'visibleRecordHeaders' => ['Regular Element #1', 'Regular Element #2', 'Regular Element #3'],
+                'visibleRecords' => [
+                    297 => [
+                        'header' => 'Regular Element #1',
+                        'image' => ['T3BOARD'],
+                    ],
+                    298 => [
+                        'header' => 'Regular Element #2',
+                        'image' => ['Kasper'],
+                    ],
+                    299 => [
+                        'header' => 'Regular Element #3',
+                        'image' => [],
+                    ],
+                ],
                 'pageTitle' => 'Default language Page',
                 'sys_language_uid' => 2,
                 'sys_language_content' => 0,
@@ -496,7 +811,20 @@ class LocalizedContentRenderingTest extends \TYPO3\CMS\Core\Tests\Functional\Dat
             [
                 'typoScript' => 'config.sys_language_overlay = 1
                                 config.sys_language_mode = content_fallback;1,0',
-                'visibleRecordHeaders' => ['[Translate to Dansk:] Regular Element #1', 'Regular Element #2', '[Translate to Dansk:] Regular Element #3'],
+                'visibleRecords' => [
+                    297 => [
+                        'header' => '[Translate to Dansk:] Regular Element #1',
+                        'image' => [],
+                    ],
+                    298 => [
+                        'header' => 'Regular Element #2',
+                        'image' => ['Kasper'],
+                    ],
+                    299 => [
+                        'header' => '[Translate to Dansk:] Regular Element #3',
+                        'image' => ['[Kasper] Image translated to Dansk', '[T3BOARD] Image added in Dansk (without parent)'],
+                    ],
+                ],
                 'pageTitle' => 'Default language Page', //TODO: change it to "[DK]Page" once #81657 is fixed
                 'sys_language_uid' => 2,
                 'sys_language_content' => 1,
@@ -506,7 +834,7 @@ class LocalizedContentRenderingTest extends \TYPO3\CMS\Core\Tests\Functional\Dat
             [
                 'typoScript' => 'config.sys_language_overlay = 1
                                 config.sys_language_mode = strict',
-                'visibleRecordHeaders' => [],
+                'visibleRecords' => [],
                 'pageTitle' => '',
                 'sys_language_uid' => 2,
                 'sys_language_content' => 2,
@@ -517,7 +845,20 @@ class LocalizedContentRenderingTest extends \TYPO3\CMS\Core\Tests\Functional\Dat
             [
                 'typoScript' => 'config.sys_language_overlay = 1
                                 config.sys_language_mode = ignore',
-                'visibleRecordHeaders' => ['[Translate to Deutsch:] [Translate to Dansk:] Regular Element #1', 'Regular Element #2', 'Regular Element #3'],
+                'visibleRecords' => [
+                    297 => [
+                        'header' => '[Translate to Deutsch:] [Translate to Dansk:] Regular Element #1',
+                        'image' => ['[T3BOARD] image translated to DE from DK'],
+                    ],
+                    298 => [
+                        'header' => 'Regular Element #2',
+                        'image' => ['Kasper'],
+                    ],
+                    299 => [
+                        'header' => 'Regular Element #3',
+                        'image' => [],
+                    ],
+                ],
                 'pageTitle' => 'Default language Page',
                 'sys_language_uid' => 2,
                 'sys_language_content' => 2,
@@ -527,7 +868,20 @@ class LocalizedContentRenderingTest extends \TYPO3\CMS\Core\Tests\Functional\Dat
             10 => [
                 'typoScript' => 'config.sys_language_overlay = hideNonTranslated
                                 config.sys_language_mode =',
-                'visibleRecordHeaders' => ['Regular Element #1', 'Regular Element #2', 'Regular Element #3'],
+                'visibleRecords' => [
+                    297 => [
+                        'header' => 'Regular Element #1',
+                        'image' => ['T3BOARD'],
+                    ],
+                    298 => [
+                        'header' => 'Regular Element #2',
+                        'image' => ['Kasper'],
+                    ],
+                    299 => [
+                        'header' => 'Regular Element #3',
+                        'image' => [],
+                    ],
+                ],
                 'pageTitle' => 'Default language Page',
                 'sys_language_uid' => 0,
                 'sys_language_content' => 0,
@@ -537,7 +891,20 @@ class LocalizedContentRenderingTest extends \TYPO3\CMS\Core\Tests\Functional\Dat
             [
                 'typoScript' => 'config.sys_language_overlay = hideNonTranslated
                                 config.sys_language_mode = content_fallback',
-                'visibleRecordHeaders' => ['Regular Element #1', 'Regular Element #2', 'Regular Element #3'],
+                'visibleRecords' => [
+                    297 => [
+                        'header' => 'Regular Element #1',
+                        'image' => ['T3BOARD'],
+                    ],
+                    298 => [
+                        'header' => 'Regular Element #2',
+                        'image' => ['Kasper'],
+                    ],
+                    299 => [
+                        'header' => 'Regular Element #3',
+                        'image' => [],
+                    ],
+                ],
                 'pageTitle' => 'Default language Page',
                 'sys_language_uid' => 2,
                 'sys_language_content' => 0,
@@ -547,7 +914,16 @@ class LocalizedContentRenderingTest extends \TYPO3\CMS\Core\Tests\Functional\Dat
             [
                 'typoScript' => 'config.sys_language_overlay = hideNonTranslated
                                 config.sys_language_mode = content_fallback;1,0',
-                'visibleRecordHeaders' => ['[Translate to Dansk:] Regular Element #1', '[Translate to Dansk:] Regular Element #3'],
+                'visibleRecords' => [
+                    297 => [
+                        'header' => '[Translate to Dansk:] Regular Element #1',
+                        'image' => [],
+                    ],
+                    299 => [
+                        'header' => '[Translate to Dansk:] Regular Element #3',
+                        'image' => ['[Kasper] Image translated to Dansk', '[T3BOARD] Image added in Dansk (without parent)'],
+                    ],
+                ],
                 'pageTitle' => 'Default language Page', //TODO: change it to "[DK]Page" once #81657 is fixed
                 'sys_language_uid' => 2,
                 'sys_language_content' => 1,
@@ -557,7 +933,7 @@ class LocalizedContentRenderingTest extends \TYPO3\CMS\Core\Tests\Functional\Dat
             [
                 'typoScript' => 'config.sys_language_overlay = hideNonTranslated
                                 config.sys_language_mode = strict',
-                'visibleRecordHeaders' => [],
+                'visibleRecords' => [],
                 'pageTitle' => '',
                 'sys_language_uid' => 2,
                 'sys_language_content' => 2,
@@ -568,7 +944,12 @@ class LocalizedContentRenderingTest extends \TYPO3\CMS\Core\Tests\Functional\Dat
             [
                 'typoScript' => 'config.sys_language_overlay = hideNonTranslated
                                 config.sys_language_mode = ignore',
-                'visibleRecordHeaders' => ['[Translate to Deutsch:] [Translate to Dansk:] Regular Element #1'],
+                'visibleRecords' => [
+                    297 => [
+                        'header' => '[Translate to Deutsch:] [Translate to Dansk:] Regular Element #1',
+                        'image' => ['[T3BOARD] image translated to DE from DK'],
+                    ],
+                ],
                 'pageTitle' => 'Default language Page',
                 'sys_language_uid' => 2,
                 'sys_language_content' => 2,
@@ -585,7 +966,7 @@ class LocalizedContentRenderingTest extends \TYPO3\CMS\Core\Tests\Functional\Dat
      * @dataProvider contentOnNonTranslatedPageDataProvider
      *
      * @param string $typoScript
-     * @param array $visibleHeaders
+     * @param array $visibleRecords
      * @param string $pageTitle
      * @param int $sysLanguageUid
      * @param int $sysLanguageContent
@@ -593,12 +974,12 @@ class LocalizedContentRenderingTest extends \TYPO3\CMS\Core\Tests\Functional\Dat
      * @param string $sysLanguageContentOL
      * @param string $status 'success' or 404
      */
-    public function contentOnNonTranslatedPageGerman(string $typoScript, array $visibleHeaders, string $pageTitle, int $sysLanguageUid, int $sysLanguageContent, string $sysLanguageMode, string $sysLanguageContentOL, string $status='success')
+    public function contentOnNonTranslatedPageGerman(string $typoScript, array $visibleRecords, string $pageTitle, int $sysLanguageUid, int $sysLanguageContent, string $sysLanguageMode, string $sysLanguageContentOL, string $status='success')
     {
-        $this->setUpFrontendRootPage(1, [
-            'typo3/sysext/core/Tests/Functional/Fixtures/Frontend/JsonRenderer.ts',
-        ]);
         $this->addTypoScriptToTemplateRecord(1, $typoScript);
+        $visibleHeaders = array_map(function ($element) {
+            return $element['header'];
+        }, $visibleRecords);
 
         $frontendResponse = $this->getFrontendResponse(self::VALUE_PageId, 2);
         if ($status === Response::STATUS_Success) {
@@ -618,6 +999,18 @@ class LocalizedContentRenderingTest extends \TYPO3\CMS\Core\Tests\Functional\Dat
                 ->setValues(...$this->getNonVisibleHeaders($visibleHeaders))
             );
 
+            foreach ($visibleRecords as $ttContentUid => $properties) {
+                $visibleFileTitles = $properties['image'];
+                if (!empty($visibleFileTitles)) {
+                    $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
+                        ->setRecordIdentifier(self::TABLE_Content . ':' . $ttContentUid)->setRecordField('image')
+                        ->setTable('sys_file_reference')->setField('title')->setValues(...$visibleFileTitles));
+                }
+                $this->assertThat($responseSections, $this->getRequestSectionStructureDoesNotHaveRecordConstraint()
+                    ->setRecordIdentifier(self::TABLE_Content . ':' . $ttContentUid)->setRecordField('image')
+                    ->setTable('sys_file_reference')->setField('title')->setValues(...$this->getNonVisibleFileTitles($visibleFileTitles)));
+            }
+
             $content = json_decode($frontendResponse->getContent());
             $this->assertEquals($pageTitle, $content->Scope->page->title);
             $this->assertEquals($sysLanguageUid, $content->Scope->tsfe->sys_language_uid, 'sys_language_uid doesn\'t match');
@@ -764,9 +1157,6 @@ class LocalizedContentRenderingTest extends \TYPO3\CMS\Core\Tests\Functional\Dat
      */
     public function contentOnPartiallyTranslatedPage(string $typoScript, array $visibleHeaders, string $sysLanguageMode, string $sysLanguageContentOL)
     {
-        $this->setUpFrontendRootPage(1, [
-            'typo3/sysext/core/Tests/Functional/Fixtures/Frontend/JsonRenderer.ts',
-        ]);
         $this->addTypoScriptToTemplateRecord(1, $typoScript);
 
         $frontendResponse = $this->getFrontendResponse(self::VALUE_PageId, 3);
@@ -823,6 +1213,25 @@ class LocalizedContentRenderingTest extends \TYPO3\CMS\Core\Tests\Functional\Dat
     }
 
     /**
+     * Helper function to ease asserting that rest of the files are not present
+     *
+     * @param array $visibleTitles
+     * @return array
+     */
+    protected function getNonVisibleFileTitles(array $visibleTitles): array
+    {
+        $allElements = [
+            'T3BOARDD',
+            'Kasper',
+            '[Kasper] Image translated to Dansk',
+            '[T3BOARD] Image added in Dansk (without parent)',
+            '[T3BOARD] Image added to DK elemet without default language',
+            '[T3BOARD] image translated to DE from DK',
+        ];
+        return array_diff($allElements, $visibleTitles);
+    }
+
+    /**
      * Adds TypoScript setup snippet to the existing template record
      *
      * @param int $pageId