[BUGFIX] Use correct image references for LiveDefaultElements 33/58033/8
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 09:17:54 +0000 (11:17 +0200)
Resolves: #85976
Releases: master, 8.7
Change-Id: I0f6588aa58be317da51cff59a5eb915831fc0774
Reviewed-on: https://review.typo3.org/58033
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Tested-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
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 7e3f49b..24213c0 100644 (file)
@@ -208,7 +208,7 @@ class TranslatedContentTest extends AbstractDataHandlerActionTestCase
             ->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));
@@ -243,6 +243,8 @@ class TranslatedContentTest extends AbstractDataHandlerActionTestCase
                 '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'],
@@ -250,11 +252,11 @@ class TranslatedContentTest extends AbstractDataHandlerActionTestCase
                     ],
                     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',
@@ -270,19 +272,19 @@ class TranslatedContentTest extends AbstractDataHandlerActionTestCase
                 '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',
@@ -298,6 +300,7 @@ class TranslatedContentTest extends AbstractDataHandlerActionTestCase
                 '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'],
@@ -305,11 +308,11 @@ class TranslatedContentTest extends AbstractDataHandlerActionTestCase
                     ],
                     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',
@@ -325,6 +328,7 @@ class TranslatedContentTest extends AbstractDataHandlerActionTestCase
                 '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' => [],
@@ -332,7 +336,7 @@ class TranslatedContentTest extends AbstractDataHandlerActionTestCase
                     ],
                     299 => [
                         'header' => '[Translate to Dansk:] Regular Element #3',
-                        'image' => []
+                        'image' => ['Kasper']
                     ],
                     303 => [
                         'header' => '[DK] Without default language',
@@ -344,19 +348,19 @@ class TranslatedContentTest extends AbstractDataHandlerActionTestCase
                 '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',
@@ -372,6 +376,7 @@ class TranslatedContentTest extends AbstractDataHandlerActionTestCase
                 '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'],
@@ -380,11 +385,11 @@ class TranslatedContentTest extends AbstractDataHandlerActionTestCase
                     ],
                     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',
@@ -402,6 +407,7 @@ class TranslatedContentTest extends AbstractDataHandlerActionTestCase
                 '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'],
@@ -410,11 +416,11 @@ class TranslatedContentTest extends AbstractDataHandlerActionTestCase
                     ],
                     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',
@@ -432,6 +438,7 @@ class TranslatedContentTest extends AbstractDataHandlerActionTestCase
                 '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'],
@@ -439,11 +446,11 @@ class TranslatedContentTest extends AbstractDataHandlerActionTestCase
                     ],
                     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',
@@ -459,6 +466,7 @@ class TranslatedContentTest extends AbstractDataHandlerActionTestCase
                 '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' => [],
@@ -466,7 +474,7 @@ class TranslatedContentTest extends AbstractDataHandlerActionTestCase
                     ],
                     299 => [
                         'header' => '[Translate to Dansk:] Regular Element #3',
-                        'image' => []
+                        'image' => ['Kasper']
                     ],
                     303 => [
                         'header' => '[DK] Without default language',
@@ -478,6 +486,7 @@ class TranslatedContentTest extends AbstractDataHandlerActionTestCase
                 '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'],
@@ -485,11 +494,11 @@ class TranslatedContentTest extends AbstractDataHandlerActionTestCase
                     ],
                     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',
@@ -509,6 +518,7 @@ class TranslatedContentTest extends AbstractDataHandlerActionTestCase
                 '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'],
@@ -516,11 +526,11 @@ class TranslatedContentTest extends AbstractDataHandlerActionTestCase
                     ],
                     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',
@@ -536,6 +546,7 @@ class TranslatedContentTest extends AbstractDataHandlerActionTestCase
                 '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'],
@@ -543,11 +554,11 @@ class TranslatedContentTest extends AbstractDataHandlerActionTestCase
                     ],
                     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',
@@ -563,6 +574,7 @@ class TranslatedContentTest extends AbstractDataHandlerActionTestCase
                 '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'],
@@ -570,11 +582,11 @@ class TranslatedContentTest extends AbstractDataHandlerActionTestCase
                     ],
                     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',
@@ -593,6 +605,7 @@ class TranslatedContentTest extends AbstractDataHandlerActionTestCase
                 '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' => [],
@@ -600,7 +613,7 @@ class TranslatedContentTest extends AbstractDataHandlerActionTestCase
                     ],
                     299 => [
                         'header' => '[Translate to Dansk:] Regular Element #3',
-                        'image' => []
+                        'image' => ['Kasper']
                     ],
                     303 => [
                         'header' => '[DK] Without default language',
@@ -612,6 +625,7 @@ class TranslatedContentTest extends AbstractDataHandlerActionTestCase
                 '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'],
@@ -619,11 +633,11 @@ class TranslatedContentTest extends AbstractDataHandlerActionTestCase
                     ],
                     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',
@@ -710,11 +724,11 @@ class TranslatedContentTest extends AbstractDataHandlerActionTestCase
                     ],
                     298 => [
                         'header' => 'Regular Element #2',
-                        'image' => ['Kasper'],
+                        'image' => ['Kasper2'],
                     ],
                     299 => [
                         'header' => 'Regular Element #3',
-                        'image' => [],
+                        'image' => ['Kasper'],
                     ],
                 ],
             ],
@@ -728,11 +742,11 @@ class TranslatedContentTest extends AbstractDataHandlerActionTestCase
                     ],
                     298 => [
                         'header' => 'Regular Element #2',
-                        'image' => ['Kasper'],
+                        'image' => ['Kasper2'],
                     ],
                     299 => [
                         'header' => 'Regular Element #3',
-                        'image' => [],
+                        'image' => ['Kasper'],
                     ],
                 ],
             ],
@@ -740,17 +754,18 @@ class TranslatedContentTest extends AbstractDataHandlerActionTestCase
                 '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',
@@ -772,17 +787,18 @@ class TranslatedContentTest extends AbstractDataHandlerActionTestCase
                 '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',
@@ -800,11 +816,11 @@ class TranslatedContentTest extends AbstractDataHandlerActionTestCase
                     ],
                     298 => [
                         'header' => 'Regular Element #2',
-                        'image' => ['Kasper'],
+                        'image' => ['Kasper2'],
                     ],
                     299 => [
                         'header' => 'Regular Element #3',
-                        'image' => [],
+                        'image' => ['Kasper'],
                     ],
                 ],
             ],
@@ -819,11 +835,11 @@ class TranslatedContentTest extends AbstractDataHandlerActionTestCase
                     ],
                     298 => [
                         'header' => 'Regular Element #2',
-                        'image' => ['Kasper'],
+                        'image' => ['Kasper2'],
                     ],
                     299 => [
                         'header' => 'Regular Element #3',
-                        'image' => [],
+                        'image' => ['Kasper'],
                     ],
                 ],
             ],
@@ -835,16 +851,17 @@ class TranslatedContentTest extends AbstractDataHandlerActionTestCase
                 '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'],
@@ -871,11 +888,11 @@ class TranslatedContentTest extends AbstractDataHandlerActionTestCase
                     ],
                     298 => [
                         'header' => 'Regular Element #2',
-                        'image' => ['Kasper'],
+                        'image' => ['Kasper2'],
                     ],
                     299 => [
                         'header' => 'Regular Element #3',
-                        'image' => []
+                        'image' => ['Kasper']
                     ],
                     304 => [
                         'header' => '[DE] Without default language',
@@ -893,11 +910,11 @@ class TranslatedContentTest extends AbstractDataHandlerActionTestCase
                     ],
                     298 => [
                         'header' => 'Regular Element #2',
-                        'image' => ['Kasper'],
+                        'image' => ['Kasper2'],
                     ],
                     299 => [
                         'header' => 'Regular Element #3',
-                        'image' => [],
+                        'image' => ['Kasper'],
                     ],
                 ],
             ],
@@ -911,11 +928,11 @@ class TranslatedContentTest extends AbstractDataHandlerActionTestCase
                     ],
                     298 => [
                         'header' => 'Regular Element #2',
-                        'image' => ['Kasper'],
+                        'image' => ['Kasper2'],
                     ],
                     299 => [
                         'header' => 'Regular Element #3',
-                        'image' => [],
+                        'image' => ['Kasper'],
                     ],
                 ],
             ],
@@ -923,17 +940,19 @@ class TranslatedContentTest extends AbstractDataHandlerActionTestCase
                 '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',
@@ -961,11 +980,11 @@ class TranslatedContentTest extends AbstractDataHandlerActionTestCase
                     ],
                     298 => [
                         'header' => 'Regular Element #2',
-                        'image' => ['Kasper'],
+                        'image' => ['Kasper2'],
                     ],
                     299 => [
                         'header' => 'Regular Element #3',
-                        'image' => []
+                        'image' => ['Kasper']
                     ],
                     304 => [
                         'header' => '[DE] Without default language',
@@ -1197,6 +1216,7 @@ class TranslatedContentTest extends AbstractDataHandlerActionTestCase
             '[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 4af8a1e..ded7f23 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","t3ver_wsid","t3ver_state","t3ver_stage","t3ver_oid","t3ver_move_id","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,"tt_content","image",2,"sys_file",,,,
-,127,89,"Kasper",21,298,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,"tt_content","image",1,"sys_file",,,,
 ,128,89,"[Kasper] Image translated to Dansk",21,300,1,127,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,"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,"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,"tt_content","image",1,"sys_file",,,,
+,132,89,Kasper2,1,298,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 507ccba..d075958 100644 (file)
@@ -254,7 +254,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));
@@ -413,7 +413,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',
@@ -435,7 +435,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',
@@ -458,7 +458,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',
@@ -478,7 +478,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',
@@ -498,7 +498,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',
@@ -665,11 +665,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',
@@ -688,11 +688,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',
@@ -768,11 +768,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',
@@ -792,11 +792,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',
@@ -817,7 +817,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',
@@ -851,11 +851,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',
@@ -874,11 +874,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',
@@ -897,11 +897,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',
@@ -1230,6 +1230,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);
     }