[BUGFIX] Use correct image references for LiveDefaultElements 35/58035/2
authorMarkus Klein <markus.klein@typo3.org>
Fri, 24 Aug 2018 21:52:00 +0000 (23:52 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Sat, 25 Aug 2018 11:34:18 +0000 (13:34 +0200)
Resolves: #85976
Releases: master, 8.7
Change-Id: I0f6588aa58be317da51cff59a5eb915831fc0774
Reviewed-on: https://review.typo3.org/58035
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/extbase/Tests/Functional/Persistence/TranslatedContentTest.php
typo3/sysext/frontend/Tests/Functional/Rendering/DataSet/LiveDefaultElements.csv
typo3/sysext/frontend/Tests/Functional/Rendering/LocalizedContentRenderingTest.php

index bb83d11..1f96d2d 100644 (file)
@@ -199,7 +199,7 @@ class TranslatedContentTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandlin
             ->setRecordIdentifier(self::TABLE_Content . ':297')->setRecordField('image')
             ->setTable('sys_file_reference')->setField('title')->setValues(...$this->getNonVisibleFileTitles($visibleFiles)));
 
-        $visibleFiles = ['Kasper'];
+        $visibleFiles = ['Kasper2'];
         $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
             ->setRecordIdentifier(self::TABLE_Content . ':298')->setRecordField('image')
             ->setTable('sys_file_reference')->setField('title')->setValues(...$visibleFiles));
@@ -234,6 +234,8 @@ class TranslatedContentTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandlin
                 'typoScript' => 'config.sys_language_overlay = 0
                                     config.sys_language_mode =',
                 'visibleRecords' => [
+                    // todo all uids are wrong, these should be the uids of the translations
+                    // todo the images are wrong as these should be translated
                     297 => [
                         'header' => '[Translate to Dansk:] Regular Element #1',
                         'image' => ['T3BOARD'],
@@ -241,11 +243,11 @@ class TranslatedContentTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandlin
                     ],
                     298 => [
                         'header' => 'Regular Element #2',
-                        'image' => ['Kasper'],
+                        'image' => ['Kasper2'],
                     ],
                     299 => [
                         'header' => '[Translate to Dansk:] Regular Element #3',
-                        'image' => [],
+                        'image' => ['Kasper'],
                     ],
                     303 => [
                         'header' => '[DK] Without default language',
@@ -261,19 +263,19 @@ class TranslatedContentTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandlin
                 'typoScript' => 'config.sys_language_overlay = 0
                                 config.sys_language_mode = content_fallback',
                 'visibleRecords' => [
+                    // todo as above, the wrong elements are shown and the images are not translated
                     297 => [
                         'header' => '[Translate to Dansk:] Regular Element #1',
                         'image' => ['T3BOARD'],
                         'categories' => ['[Translate to Dansk:] Category 1', 'Category 3 - not translated'],
-
                     ],
                     298 => [
                         'header' => 'Regular Element #2',
-                        'image' => ['Kasper'],
+                        'image' => ['Kasper2'],
                     ],
                     299 => [
                         'header' => '[Translate to Dansk:] Regular Element #3',
-                        'image' => []
+                        'image' => ['Kasper']
                     ],
                     303 => [
                         'header' => '[DK] Without default language',
@@ -289,6 +291,7 @@ class TranslatedContentTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandlin
                 'typoScript' => 'config.sys_language_overlay = 0
                                 config.sys_language_mode = content_fallback;1,0',
                 'visibleRecords' => [
+                    // todo just wrong see other cases
                     297 => [
                         'header' => '[Translate to Dansk:] Regular Element #1',
                         'image' => ['T3BOARD'],
@@ -296,11 +299,11 @@ class TranslatedContentTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandlin
                     ],
                     298 => [
                         'header' => 'Regular Element #2',
-                        'image' => ['Kasper'],
+                        'image' => ['Kasper2'],
                     ],
                     299 => [
                         'header' => '[Translate to Dansk:] Regular Element #3',
-                        'image' => []
+                        'image' => ['Kasper']
                     ],
                     303 => [
                         'header' => '[DK] Without default language',
@@ -316,6 +319,7 @@ class TranslatedContentTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandlin
                 'typoScript' => 'config.sys_language_overlay = 0
                                 config.sys_language_mode = strict',
                 'visibleRecords' => [
+                    // todo just wrong see other cases
                     297 => [
                         'header' => '[Translate to Dansk:] Regular Element #1',
                         'image' => [],
@@ -323,7 +327,7 @@ class TranslatedContentTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandlin
                     ],
                     299 => [
                         'header' => '[Translate to Dansk:] Regular Element #3',
-                        'image' => []
+                        'image' => ['Kasper']
                     ],
                     303 => [
                         'header' => '[DK] Without default language',
@@ -335,19 +339,19 @@ class TranslatedContentTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandlin
                 'typoScript' => 'config.sys_language_overlay = 0
                                 config.sys_language_mode = ignore',
                 'visibleRecords' => [
+                    // todo just wrong see other cases
                     297 => [
                         'header' => '[Translate to Dansk:] Regular Element #1',
                         'image' => ['T3BOARD'],
                         'categories' => ['[Translate to Dansk:] Category 1', 'Category 3 - not translated'],
-
                     ],
                     298 => [
                         'header' => 'Regular Element #2',
-                        'image' => ['Kasper'],
+                        'image' => ['Kasper2'],
                     ],
                     299 => [
                         'header' => '[Translate to Dansk:] Regular Element #3',
-                        'image' => []
+                        'image' => ['Kasper']
                     ],
                     303 => [
                         'header' => '[DK] Without default language',
@@ -363,6 +367,7 @@ class TranslatedContentTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandlin
                 'typoScript' => 'config.sys_language_overlay = 1
                                 config.sys_language_mode =',
                 'visibleRecords' => [
+                    // todo just wrong see other cases
                     297 => [
                         'header' => '[Translate to Dansk:] Regular Element #1',
                         'image' => ['T3BOARD'],
@@ -371,11 +376,11 @@ class TranslatedContentTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandlin
                     ],
                     298 => [
                         'header' => 'Regular Element #2',
-                        'image' => ['Kasper'],
+                        'image' => ['Kasper2'],
                     ],
                     299 => [
                         'header' => '[Translate to Dansk:] Regular Element #3',
-                        'image' => []
+                        'image' => ['Kasper']
                     ],
                     303 => [
                         'header' => '[DK] Without default language',
@@ -393,6 +398,7 @@ class TranslatedContentTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandlin
                 'typoScript' => 'config.sys_language_overlay = 1
                                 config.sys_language_mode = content_fallback',
                 'visibleRecords' => [
+                    // todo just wrong see other cases
                     297 => [
                         'header' => '[Translate to Dansk:] Regular Element #1',
                         'image' => ['T3BOARD'],
@@ -401,11 +407,11 @@ class TranslatedContentTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandlin
                     ],
                     298 => [
                         'header' => 'Regular Element #2',
-                        'image' => ['Kasper'],
+                        'image' => ['Kasper2'],
                     ],
                     299 => [
                         'header' => '[Translate to Dansk:] Regular Element #3',
-                        'image' => []
+                        'image' => ['Kasper']
                     ],
                     303 => [
                         'header' => '[DK] Without default language',
@@ -423,6 +429,7 @@ class TranslatedContentTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandlin
                 'typoScript' => 'config.sys_language_overlay = 1
                                 config.sys_language_mode = content_fallback;1,0',
                 'visibleRecords' => [
+                    // todo just wrong see other cases
                     297 => [
                         'header' => '[Translate to Dansk:] Regular Element #1',
                         'image' => ['T3BOARD'],
@@ -430,11 +437,11 @@ class TranslatedContentTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandlin
                     ],
                     298 => [
                         'header' => 'Regular Element #2',
-                        'image' => ['Kasper'],
+                        'image' => ['Kasper2'],
                     ],
                     299 => [
                         'header' => '[Translate to Dansk:] Regular Element #3',
-                        'image' => []
+                        'image' => ['Kasper']
                     ],
                     303 => [
                         'header' => '[DK] Without default language',
@@ -450,6 +457,7 @@ class TranslatedContentTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandlin
                 'typoScript' => 'config.sys_language_overlay = 1
                                 config.sys_language_mode = strict',
                 'visibleRecords' => [
+                    // todo just wrong see other cases
                     297 => [
                         'header' => '[Translate to Dansk:] Regular Element #1',
                         'image' => [],
@@ -457,7 +465,7 @@ class TranslatedContentTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandlin
                     ],
                     299 => [
                         'header' => '[Translate to Dansk:] Regular Element #3',
-                        'image' => []
+                        'image' => ['Kasper']
                     ],
                     303 => [
                         'header' => '[DK] Without default language',
@@ -469,6 +477,7 @@ class TranslatedContentTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandlin
                 'typoScript' => 'config.sys_language_overlay = 1
                                 config.sys_language_mode = ignore',
                 'visibleRecords' => [
+                    // todo just wrong see other cases
                     297 => [
                         'header' => '[Translate to Dansk:] Regular Element #1',
                         'image' => ['T3BOARD'],
@@ -476,11 +485,11 @@ class TranslatedContentTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandlin
                     ],
                     298 => [
                         'header' => 'Regular Element #2',
-                        'image' => ['Kasper'],
+                        'image' => ['Kasper2'],
                     ],
                     299 => [
                         'header' => '[Translate to Dansk:] Regular Element #3',
-                        'image' => []
+                        'image' => ['Kasper']
                     ],
                     303 => [
                         'header' => '[DK] Without default language',
@@ -500,6 +509,7 @@ class TranslatedContentTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandlin
                 'typoScript' => 'config.sys_language_overlay = hideNonTranslated
                                 config.sys_language_mode =',
                 'visibleRecords' => [
+                    // todo too many records and wrong images
                     297 => [
                         'header' => '[Translate to Dansk:] Regular Element #1',
                         'image' => ['T3BOARD'],
@@ -507,11 +517,11 @@ class TranslatedContentTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandlin
                     ],
                     298 => [
                         'header' => 'Regular Element #2',
-                        'image' => ['Kasper'],
+                        'image' => ['Kasper2'],
                     ],
                     299 => [
                         'header' => '[Translate to Dansk:] Regular Element #3',
-                        'image' => []
+                        'image' => ['Kasper']
                     ],
                     303 => [
                         'header' => '[DK] Without default language',
@@ -527,6 +537,7 @@ class TranslatedContentTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandlin
                 'typoScript' => 'config.sys_language_overlay = hideNonTranslated
                                 config.sys_language_mode = content_fallback',
                 'visibleRecords' => [
+                    // todo same as #10
                     297 => [
                         'header' => '[Translate to Dansk:] Regular Element #1',
                         'image' => ['T3BOARD'],
@@ -534,11 +545,11 @@ class TranslatedContentTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandlin
                     ],
                     298 => [
                         'header' => 'Regular Element #2',
-                        'image' => ['Kasper'],
+                        'image' => ['Kasper2'],
                     ],
                     299 => [
                         'header' => '[Translate to Dansk:] Regular Element #3',
-                        'image' => []
+                        'image' => ['Kasper']
                     ],
                     303 => [
                         'header' => '[DK] Without default language',
@@ -554,6 +565,7 @@ class TranslatedContentTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandlin
                 'typoScript' => 'config.sys_language_overlay = hideNonTranslated
                                 config.sys_language_mode = content_fallback;1,0',
                 'visibleRecords' => [
+                    // todo same as #10
                     297 => [
                         'header' => '[Translate to Dansk:] Regular Element #1',
                         'image' => ['T3BOARD'],
@@ -561,11 +573,11 @@ class TranslatedContentTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandlin
                     ],
                     298 => [
                         'header' => 'Regular Element #2',
-                        'image' => ['Kasper'],
+                        'image' => ['Kasper2'],
                     ],
                     299 => [
                         'header' => '[Translate to Dansk:] Regular Element #3',
-                        'image' => []
+                        'image' => ['Kasper']
                     ],
                     303 => [
                         'header' => '[DK] Without default language',
@@ -584,6 +596,7 @@ class TranslatedContentTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandlin
                 'typoScript' => 'config.sys_language_overlay = hideNonTranslated
                                 config.sys_language_mode = strict',
                 'visibleRecords' => [
+                    // todo same as #10
                     297 => [
                         'header' => '[Translate to Dansk:] Regular Element #1',
                         'image' => [],
@@ -591,7 +604,7 @@ class TranslatedContentTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandlin
                     ],
                     299 => [
                         'header' => '[Translate to Dansk:] Regular Element #3',
-                        'image' => []
+                        'image' => ['Kasper']
                     ],
                     303 => [
                         'header' => '[DK] Without default language',
@@ -603,6 +616,7 @@ class TranslatedContentTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandlin
                 'typoScript' => 'config.sys_language_overlay = hideNonTranslated
                                 config.sys_language_mode = ignore',
                 'visibleRecords' => [
+                    // todo same as #10
                     297 => [
                         'header' => '[Translate to Dansk:] Regular Element #1',
                         'image' => ['T3BOARD'],
@@ -610,11 +624,11 @@ class TranslatedContentTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandlin
                     ],
                     298 => [
                         'header' => 'Regular Element #2',
-                        'image' => ['Kasper'],
+                        'image' => ['Kasper2'],
                     ],
                     299 => [
                         'header' => '[Translate to Dansk:] Regular Element #3',
-                        'image' => []
+                        'image' => ['Kasper']
                     ],
                     303 => [
                         'header' => '[DK] Without default language',
@@ -701,11 +715,11 @@ class TranslatedContentTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandlin
                     ],
                     298 => [
                         'header' => 'Regular Element #2',
-                        'image' => ['Kasper'],
+                        'image' => ['Kasper2'],
                     ],
                     299 => [
                         'header' => 'Regular Element #3',
-                        'image' => [],
+                        'image' => ['Kasper'],
                     ],
                 ],
             ],
@@ -719,11 +733,11 @@ class TranslatedContentTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandlin
                     ],
                     298 => [
                         'header' => 'Regular Element #2',
-                        'image' => ['Kasper'],
+                        'image' => ['Kasper2'],
                     ],
                     299 => [
                         'header' => 'Regular Element #3',
-                        'image' => [],
+                        'image' => ['Kasper'],
                     ],
                 ],
             ],
@@ -731,17 +745,18 @@ class TranslatedContentTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandlin
                 'typoScript' => 'config.sys_language_overlay = 0
                                 config.sys_language_mode = content_fallback;1,0',
                 'visibleRecords' => [
+                    // todo there is something wrong with the result
                     297 => [
                         'header' => '[Translate to Dansk:] Regular Element #1',
                         'image' => ['T3BOARD'],
                     ],
                     298 => [
                         'header' => 'Regular Element #2',
-                        'image' => ['Kasper'],
+                        'image' => ['Kasper2'],
                     ],
                     299 => [
                         'header' => '[Translate to Dansk:] Regular Element #3',
-                        'image' => []
+                        'image' => ['Kasper']
                     ],
                     303 => [
                         'header' => '[DK] Without default language',
@@ -763,17 +778,18 @@ class TranslatedContentTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandlin
                 'typoScript' => 'config.sys_language_overlay = 0
                                 config.sys_language_mode = ignore',
                 'visibleRecords' => [
+                    // todo there is something wrong with the result
                     297 => [
                         'header' => '[Translate to Deutsch:] [Translate to Dansk:] Regular Element #1',
                         'image' => ['T3BOARD'],
                     ],
                     298 => [
                         'header' => 'Regular Element #2',
-                        'image' => ['Kasper'],
+                        'image' => ['Kasper2'],
                     ],
                     299 => [
                         'header' => 'Regular Element #3',
-                        'image' => []
+                        'image' => ['Kasper']
                     ],
                     304 => [
                         'header' => '[DE] Without default language',
@@ -791,11 +807,11 @@ class TranslatedContentTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandlin
                     ],
                     298 => [
                         'header' => 'Regular Element #2',
-                        'image' => ['Kasper'],
+                        'image' => ['Kasper2'],
                     ],
                     299 => [
                         'header' => 'Regular Element #3',
-                        'image' => [],
+                        'image' => ['Kasper'],
                     ],
                 ],
             ],
@@ -810,11 +826,11 @@ class TranslatedContentTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandlin
                     ],
                     298 => [
                         'header' => 'Regular Element #2',
-                        'image' => ['Kasper'],
+                        'image' => ['Kasper2'],
                     ],
                     299 => [
                         'header' => 'Regular Element #3',
-                        'image' => [],
+                        'image' => ['Kasper'],
                     ],
                 ],
             ],
@@ -826,16 +842,17 @@ class TranslatedContentTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandlin
                 'visibleRecords' => [
                     297 => [
                         'header' => '[Translate to Dansk:] Regular Element #1',
-                        'image' => ['T3BOARD'],
+                        'image' => ['T3BOARD'], // todo this is wrong and should contain both translated images for #1
                     ],
                     298 => [
                         'header' => 'Regular Element #2',
-                        'image' => ['Kasper'],
+                        'image' => ['Kasper2'],
                     ],
                     299 => [
                         'header' => '[Translate to Dansk:] Regular Element #3',
-                        'image' => []
+                        'image' => ['Kasper'] // todo this is wrong and should contain both translated images for #3
                     ],
+                    // todo those records shouldn't be here at all
                     303 => [
                         'header' => '[DK] Without default language',
                         'image' => ['[T3BOARD] Image added to DK element without default language'],
@@ -862,11 +879,11 @@ class TranslatedContentTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandlin
                     ],
                     298 => [
                         'header' => 'Regular Element #2',
-                        'image' => ['Kasper'],
+                        'image' => ['Kasper2'],
                     ],
                     299 => [
                         'header' => 'Regular Element #3',
-                        'image' => []
+                        'image' => ['Kasper']
                     ],
                     304 => [
                         'header' => '[DE] Without default language',
@@ -884,11 +901,11 @@ class TranslatedContentTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandlin
                     ],
                     298 => [
                         'header' => 'Regular Element #2',
-                        'image' => ['Kasper'],
+                        'image' => ['Kasper2'],
                     ],
                     299 => [
                         'header' => 'Regular Element #3',
-                        'image' => [],
+                        'image' => ['Kasper'],
                     ],
                 ],
             ],
@@ -902,11 +919,11 @@ class TranslatedContentTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandlin
                     ],
                     298 => [
                         'header' => 'Regular Element #2',
-                        'image' => ['Kasper'],
+                        'image' => ['Kasper2'],
                     ],
                     299 => [
                         'header' => 'Regular Element #3',
-                        'image' => [],
+                        'image' => ['Kasper'],
                     ],
                 ],
             ],
@@ -914,17 +931,19 @@ class TranslatedContentTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandlin
                 'typoScript' => 'config.sys_language_overlay = hideNonTranslated
                                 config.sys_language_mode = content_fallback;1,0',
                 'visibleRecords' => [
+                    // todo this is totally different to TS rendering, we shall see default content only
+                    // because the page is not translated and we have content_fallback active
                     297 => [
                         'header' => '[Translate to Dansk:] Regular Element #1',
                         'image' => ['T3BOARD'],
                     ],
                     298 => [
                         'header' => 'Regular Element #2',
-                        'image' => ['Kasper'],
+                        'image' => ['Kasper2'],
                     ],
                     299 => [
                         'header' => '[Translate to Dansk:] Regular Element #3',
-                        'image' => []
+                        'image' => ['Kasper']
                     ],
                     303 => [
                         'header' => '[DK] Without default language',
@@ -952,11 +971,11 @@ class TranslatedContentTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandlin
                     ],
                     298 => [
                         'header' => 'Regular Element #2',
-                        'image' => ['Kasper'],
+                        'image' => ['Kasper2'],
                     ],
                     299 => [
                         'header' => 'Regular Element #3',
-                        'image' => []
+                        'image' => ['Kasper']
                     ],
                     304 => [
                         'header' => '[DE] Without default language',
@@ -1184,6 +1203,7 @@ class TranslatedContentTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandlin
             '[T3BOARD] Image added in Dansk (without parent)',
             '[T3BOARD] Image added to DK element without default language',
             '[T3BOARD] image translated to DE from DK',
+            'Kasper2'
         ];
         return array_diff($allElements, $visibleTitles);
     }
index 837a3fd..8699e3e 100644 (file)
@@ -7,7 +7,7 @@
 ,"uid","pid","header","image","sorting","deleted","hidden","sys_language_uid","l18n_parent","l10n_source","t3_origuid","t3ver_wsid","t3ver_state","t3ver_stage","t3ver_oid","t3ver_move_id","categories",,,,,,
 ,297,89,"Regular Element #1",1,256,0,0,0,0,0,0,0,0,0,0,0,2,,,,,,
 ,298,89,"Regular Element #2",1,512,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,
-,299,89,"Regular Element #3",0,768,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,
+,299,89,"Regular Element #3",1,768,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,
 ,300,89,"[Translate to Dansk:] Regular Element #3",2,1024,0,0,1,299,299,299,0,0,0,0,0,0,,,,,,
 ,301,89,"[Translate to Dansk:] Regular Element #1",0,384,0,0,1,297,297,297,0,0,0,0,0,2,,,,,,
 ,302,89,"[Translate to Deutsch:] [Translate to Dansk:] Regular Element #1",1,448,0,0,2,297,301,301,0,0,0,0,0,0,,,,,,
 "sys_file_reference",,,,,,,,,,,,,,,,,,,,,,,
 ,"uid","pid","title","uid_local","uid_foreign","sys_language_uid","l10n_parent","t3_origuid","t3ver_wsid","t3ver_state","t3ver_stage","t3ver_oid","t3ver_move_id","sorting","deleted","tablenames","fieldname","sorting_foreign","table_local","description","alternative","link","l10n_diffsource"
 ,126,89,"T3BOARD",1,297,0,0,0,0,0,0,0,0,0,0,"tt_content","image",2,"sys_file",,,,
-,127,89,"Kasper",21,298,0,0,0,0,0,0,0,0,0,0,"tt_content","image",1,"sys_file",,,,
+,127,89,"Kasper",21,299,0,0,0,0,0,0,0,0,0,0,"tt_content","image",1,"sys_file",,,,
 ,128,89,"[Kasper] Image translated to Dansk",21,300,1,127,127,0,0,0,0,0,0,0,"tt_content","image",1,"sys_file",,,,
 ,129,89,"[T3BOARD] Image added in Dansk (without parent)",1,300,1,0,0,0,0,0,0,0,0,0,"tt_content","image",2,"sys_file",,,,
 ,130,89,"[T3BOARD] Image added to DK element without default language",1,303,1,0,0,0,0,0,0,0,0,0,"tt_content","image",1,"sys_file",,,,
 ,131,89,"[T3BOARD] image translated to DE from DK",1,302,2,0,0,0,0,0,0,0,0,0,"tt_content","image",1,"sys_file",,,,
+,132,89,"Kasper2",1,298,0,0,0,0,0,0,0,0,0,0,"tt_content","image",1,"sys_file",,,,
 "sys_category",,,,,,,,,,,,,,,,,,,,,,,
 ,"uid","pid","title","sys_language_uid","l10n_parent","t3ver_wsid","t3ver_state","t3ver_stage","t3ver_oid","t3ver_move_id","deleted",,,,,,,,,,,,
 ,1,89,"Category 1",0,0,0,0,0,0,0,0,,,,,,,,,,,,
index 118f9d4..980beb4 100644 (file)
@@ -253,7 +253,7 @@ class LocalizedContentRenderingTest extends \TYPO3\CMS\Core\Tests\Functional\Dat
             ->setRecordIdentifier(self::TABLE_Content . ':297')->setRecordField('image')
             ->setTable('sys_file_reference')->setField('title')->setValues(...$this->getNonVisibleFileTitles($visibleFiles)));
 
-        $visibleFiles = ['Kasper'];
+        $visibleFiles = ['Kasper2'];
         $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
             ->setRecordIdentifier(self::TABLE_Content . ':298')->setRecordField('image')
             ->setTable('sys_file_reference')->setField('title')->setValues(...$visibleFiles));
@@ -412,7 +412,7 @@ class LocalizedContentRenderingTest extends \TYPO3\CMS\Core\Tests\Functional\Dat
                     ],
                     298 => [
                         'header' => 'Regular Element #2',
-                        'image' => ['Kasper'],
+                        'image' => ['Kasper2'],
                     ],
                     299 => [
                         'header' => '[Translate to Dansk:] Regular Element #3',
@@ -434,7 +434,7 @@ class LocalizedContentRenderingTest extends \TYPO3\CMS\Core\Tests\Functional\Dat
                     ],
                     298 => [
                         'header' => 'Regular Element #2',
-                        'image' => ['Kasper'],
+                        'image' => ['Kasper2'],
                     ],
                     299 => [
                         'header' => '[Translate to Dansk:] Regular Element #3',
@@ -457,7 +457,7 @@ class LocalizedContentRenderingTest extends \TYPO3\CMS\Core\Tests\Functional\Dat
                     ],
                     298 => [
                         'header' => 'Regular Element #2',
-                        'image' => ['Kasper'],
+                        'image' => ['Kasper2'],
                     ],
                     299 => [
                         'header' => '[Translate to Dansk:] Regular Element #3',
@@ -477,7 +477,7 @@ class LocalizedContentRenderingTest extends \TYPO3\CMS\Core\Tests\Functional\Dat
                     ],
                     298 => [
                         'header' => 'Regular Element #2',
-                        'image' => ['Kasper'],
+                        'image' => ['Kasper2'],
                     ],
                     299 => [
                         'header' => '[Translate to Dansk:] Regular Element #3',
@@ -497,7 +497,7 @@ class LocalizedContentRenderingTest extends \TYPO3\CMS\Core\Tests\Functional\Dat
                     ],
                     298 => [
                         'header' => 'Regular Element #2',
-                        'image' => ['Kasper'],
+                        'image' => ['Kasper2'],
                     ],
                     299 => [
                         'header' => '[Translate to Dansk:] Regular Element #3',
@@ -664,11 +664,11 @@ class LocalizedContentRenderingTest extends \TYPO3\CMS\Core\Tests\Functional\Dat
                     ],
                     298 => [
                         'header' => 'Regular Element #2',
-                        'image' => ['Kasper'],
+                        'image' => ['Kasper2'],
                     ],
                     299 => [
                         'header' => 'Regular Element #3',
-                        'image' => [],
+                        'image' => ['Kasper'],
                     ],
                 ],
                 'pageTitle' => 'Default language Page',
@@ -687,11 +687,11 @@ class LocalizedContentRenderingTest extends \TYPO3\CMS\Core\Tests\Functional\Dat
                     ],
                     298 => [
                         'header' => 'Regular Element #2',
-                        'image' => ['Kasper'],
+                        'image' => ['Kasper2'],
                     ],
                     299 => [
                         'header' => 'Regular Element #3',
-                        'image' => [],
+                        'image' => ['Kasper'],
                     ],
                 ],
                 'pageTitle' => 'Default language Page',
@@ -767,11 +767,11 @@ class LocalizedContentRenderingTest extends \TYPO3\CMS\Core\Tests\Functional\Dat
                     ],
                     298 => [
                         'header' => 'Regular Element #2',
-                        'image' => ['Kasper'],
+                        'image' => ['Kasper2'],
                     ],
                     299 => [
                         'header' => 'Regular Element #3',
-                        'image' => [],
+                        'image' => ['Kasper'],
                     ],
                 ],
                 'pageTitle' => 'Default language Page',
@@ -791,11 +791,11 @@ class LocalizedContentRenderingTest extends \TYPO3\CMS\Core\Tests\Functional\Dat
                     ],
                     298 => [
                         'header' => 'Regular Element #2',
-                        'image' => ['Kasper'],
+                        'image' => ['Kasper2'],
                     ],
                     299 => [
                         'header' => 'Regular Element #3',
-                        'image' => [],
+                        'image' => ['Kasper'],
                     ],
                 ],
                 'pageTitle' => 'Default language Page',
@@ -816,7 +816,7 @@ class LocalizedContentRenderingTest extends \TYPO3\CMS\Core\Tests\Functional\Dat
                     ],
                     298 => [
                         'header' => 'Regular Element #2',
-                        'image' => ['Kasper'],
+                        'image' => ['Kasper2'],
                     ],
                     299 => [
                         'header' => '[Translate to Dansk:] Regular Element #3',
@@ -850,11 +850,11 @@ class LocalizedContentRenderingTest extends \TYPO3\CMS\Core\Tests\Functional\Dat
                     ],
                     298 => [
                         'header' => 'Regular Element #2',
-                        'image' => ['Kasper'],
+                        'image' => ['Kasper2'],
                     ],
                     299 => [
                         'header' => 'Regular Element #3',
-                        'image' => [],
+                        'image' => ['Kasper'],
                     ],
                 ],
                 'pageTitle' => 'Default language Page',
@@ -873,11 +873,11 @@ class LocalizedContentRenderingTest extends \TYPO3\CMS\Core\Tests\Functional\Dat
                     ],
                     298 => [
                         'header' => 'Regular Element #2',
-                        'image' => ['Kasper'],
+                        'image' => ['Kasper2'],
                     ],
                     299 => [
                         'header' => 'Regular Element #3',
-                        'image' => [],
+                        'image' => ['Kasper'],
                     ],
                 ],
                 'pageTitle' => 'Default language Page',
@@ -896,11 +896,11 @@ class LocalizedContentRenderingTest extends \TYPO3\CMS\Core\Tests\Functional\Dat
                     ],
                     298 => [
                         'header' => 'Regular Element #2',
-                        'image' => ['Kasper'],
+                        'image' => ['Kasper2'],
                     ],
                     299 => [
                         'header' => 'Regular Element #3',
-                        'image' => [],
+                        'image' => ['Kasper'],
                     ],
                 ],
                 'pageTitle' => 'Default language Page',
@@ -1225,6 +1225,7 @@ class LocalizedContentRenderingTest extends \TYPO3\CMS\Core\Tests\Functional\Dat
             '[T3BOARD] Image added in Dansk (without parent)',
             '[T3BOARD] Image added to DK element without default language',
             '[T3BOARD] image translated to DE from DK',
+            'Kasper2',
         ];
         return array_diff($allElements, $visibleTitles);
     }