Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] Create valid source data for DataHandler tests
Tests in DataScenarios/Regular for the DataHandler are based on invalid source data. There are translated content elements on pages that have no translations. It's not possible to translate content elements without having a page translation first in the backend. A lot of the tests use workarounds and create those missing page translations first. The tests should be based on valid source data in order to check the pages and handling of the content. There is now a dedicated csv file containing tt_content and their related pages records to run tests with translations. For this reason, all tests that do not include a page translation process themselves import the default translations via a separate csv file. Accordingly, the tests localizePage*, localizeAndCopyPage*, localizeNestedPages* and movePageLocalized* do not import the default translations. It is also ensured that no content translation exist in the source data without a corresponding page translation. Resolves: #103734 Releases: main Change-Id: I9475c8e4fee53b1925a0d8bc4f33acd58dd29aa4 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/83632 Tested-by: Eric Harrer <info@eric-harrer.de> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by: Eric Harrer <info@eric-harrer.de> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: core-ci <typo3@b13.com> Tested-by: Oliver Klee <typo3-coding@oliverklee.de>
- Loading branch information
1 parent
2f23b3e
commit eef9e63
Showing
307 changed files
with
2,686 additions
and
2,773 deletions.
There are no files selected for viewing
178 changes: 164 additions & 14 deletions
178
typo3/sysext/core/Tests/Functional/DataScenarios/Regular/AbstractActionTestCase.php
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
.../sysext/core/Tests/Functional/DataScenarios/Regular/DataSet/ImportDefaultTranslations.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
"pages",,,,,,,,,,,,,, | ||
,"uid","pid","sorting","deleted","sys_language_uid","l10n_parent","l10n_source","t3ver_wsid","t3ver_state","t3ver_stage","t3ver_oid","title","slug" | ||
,91,88,256,0,1,89,89,0,0,0,0,"[Translate to Dansk:] Relations","/data-handler/translate-to-dansk-relations" | ||
,92,88,256,0,2,89,89,0,0,0,0,"[Translate to Deutsch:] Relations","/data-handler/translate-to-deutsch-relations" | ||
"tt_content",,,,,,,,,,,,,, | ||
,"uid","pid","sorting","deleted","sys_language_uid","l18n_parent","l10n_source","t3ver_wsid","t3ver_state","t3ver_stage","t3ver_oid","header","bodytext" | ||
,300,89,1024,0,1,299,299,0,0,0,0,"[Translate to Dansk:] Regular Element #3", | ||
,301,89,384,0,1,297,297,0,0,0,0,"[Translate to Dansk:] Regular Element #1", | ||
,302,89,448,0,2,297,301,0,0,0,0,"[Translate to Deutsch:] [Translate to Dansk:] Regular Element #1", | ||
"sys_refindex",,,,,,,,,,,,,, | ||
,"hash","tablename","recuid","field","flexpointer","softref_key","softref_id","sorting","workspace","ref_table","ref_uid","ref_string", | ||
,"1130084e4038e95f2d5806b731cd416a","tt_content",300,"l18n_parent",,,,0,0,"tt_content",299,, | ||
,"4a1e04a83a4a17882682d86f6cd61f3d","tt_content",301,"l18n_parent",,,,0,0,"tt_content",297,, | ||
,"25f3b71b67f29fa33fbfd4fa2d930b70","tt_content",302,"l18n_parent",,,,0,0,"tt_content",297,, | ||
,"583b9974d1df1d9efb695cdabfe53a73","pages",91,"l10n_parent",,,,0,0,"pages",89,, | ||
,"2a42323931078b2842779bd9446e8152","pages",92,"l10n_parent",,,,0,0,"pages",89,, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
typo3/sysext/core/Tests/Functional/DataScenarios/Regular/DataSet/ImportFreeModeElements.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
"pages",,,,,,,,,,,,,, | ||
,"uid","pid","sorting","deleted","sys_language_uid","l10n_parent","l10n_source","t3ver_wsid","t3ver_state","t3ver_stage","t3ver_oid","title","slug" | ||
,100,88,256,0,1,90,90,0,0,0,0,"[Translate to Dansk:] Target","/data-handler/translate-to-dansk-target" | ||
,101,88,256,0,2,90,90,0,0,0,0,"[Translate to Deutsch:] Target","/data-handler/translate-to-deutsch-target" | ||
"tt_content",,,,,,,,,,,,, | ||
,"uid","pid","sorting","deleted","sys_language_uid","l18n_parent","l10n_source","t3ver_wsid","t3ver_state","t3ver_stage","t3ver_oid","header" | ||
,310,90,256,0,0,0,0,0,0,0,0,"Regular Element #10" | ||
,311,90,512,0,1,0,310,0,0,0,0,"[Translate to Dansk:] Regular Element #10" | ||
,312,90,768,0,2,0,311,0,0,0,0,"[Translate to Deutsch:] [Translate to Dansk:] Regular Element #10" | ||
"sys_refindex",,,,,,,,,,,,,, | ||
,"hash","tablename","recuid","field","flexpointer","softref_key","softref_id","sorting","workspace","ref_table","ref_uid","ref_string", | ||
,"811c1b9b63612efde79cdcdc83dbbb7a","pages",100,"l10n_parent",,,,0,0,"pages",90,, | ||
,"1eeeb475499458a4b827f36672c0b398","pages",101,"l10n_parent",,,,0,0,"pages",90,, |
Oops, something went wrong.