Task #85493
closedCover fetching translated Select MM field with tests for extbase
100%
Description
Fetching of the translated MM relation needs to be covered with functional tests.
We already have tests for FAL in
typo3/sysext/extbase/Tests/Functional/Persistence/TranslatedContentTest.php
We can extend the test covering existing relation to categories which is an MM relation configured as select (tree) field.
The categories field is configured in tt_content like:
'categories' => array ( 'exclude' => true, 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_category.categories', 'config' => array ( 'type' => 'select', 'renderType' => 'selectTree', 'foreign_table' => 'sys_category', 'foreign_table_where' => ' AND sys_category.sys_language_uid IN (-1, 0) ORDER BY sys_category.sorting ASC', 'MM' => 'sys_category_record_mm', 'MM_opposite_field' => 'items', 'MM_match_fields' => array ( 'tablenames' => 'tt_content', 'fieldname' => 'categories', ), 'size' => 20, 'maxitems' => 9999, 'treeConfig' => array ( 'parentField' => 'parent', 'appearance' => array ( 'expandAll' => true, 'showHeader' => true, 'maxLevels' => 99, ), ), ), ),
Updated by Tymoteusz Motylewski over 6 years ago
- Tracker changed from Bug to Task
Updated by Gerrit Code Review over 6 years ago
- Status changed from New to Under Review
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/57474
Updated by Gerrit Code Review over 6 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/57474
Updated by Tymoteusz Motylewski over 6 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 18ccfab963f313e10982a9ca647a5e6ce90cbdef.
Updated by Gerrit Code Review over 6 years ago
- Status changed from Resolved to Under Review
Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/57611
Updated by Gerrit Code Review over 6 years ago
Patch set 2 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/57611
Updated by Tymoteusz Motylewski over 6 years ago
- Status changed from Under Review to Resolved
Applied in changeset af9a40ac6add03c9afe68ef9c881c0cdb8ecf6a3.