2 declare(strict_types = 1);
19 use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
28 protected function setUp()
32 $this->subject = $this->getAccessibleMock(DatabaseRecordList::class, [
'dummy'], [],
'',
false);
41 'title' =>
'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:tt_content',
45 'showitem' =>
'--div--;LABEL,--palette--;;general,bodytext;LABEL',
51 'showitem' =>
'CType;LABEL,colPos;LABEL',
56 '--div--;LABEL,CType;LABEL,colPos;LABEL,bodytext;LABEL',
61 'title' =>
'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:tt_content',
65 'showitem' =>
'--div--;LABEL,
66 --palette--;;general,bodytext;LABEL',
72 'showitem' =>
'CType;LABEL,colPos;LABEL',
78 CType;LABEL,colPos;LABEL,bodytext;LABEL',
80 'spacesInShowItems' => [
83 'title' =>
'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:tt_content',
87 'showitem' =>
'--div-- ; LABEL , --palette-- ; ; general , bodytext ; LABEL',
93 'showitem' =>
'CType ; LABEL , colPos ; LABEL',
98 '--div-- ; LABEL , CType ; LABEL , colPos ; LABEL , bodytext ; LABEL',
100 'spacesInShowItemsAndLinebreaks' => [
103 'title' =>
'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:tt_content',
107 'showitem' =>
'--div-- ; LABEL ,
108 --palette-- ; ; general , bodytext ; LABEL',
114 'showitem' =>
'CType ; LABEL , colPos ; LABEL',
120 CType ; LABEL , colPos ; LABEL , bodytext ; LABEL',
122 'nonExistentPalette' => [
125 'title' =>
'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:tt_content',
129 'showitem' =>
'--div--;LABEL,--palette--;;iDoNotExist,bodytext;LABEL',
134 '--div--;LABEL,,bodytext;LABEL',
136 'trailingCommaInPalette' => [
139 'title' =>
'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:tt_content',
143 'showitem' =>
'--div--;LABEL,--palette--;;general,bodytext;LABEL',
149 'showitem' =>
'CType;LABEL,colPos;LABEL,',
154 '--div--;LABEL,CType;LABEL,colPos;LABEL,bodytext;LABEL',
156 'trailingSpaceInPalette' => [
159 'title' =>
'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:tt_content',
163 'showitem' =>
'--div--;LABEL,--palette--;;general,bodytext;LABEL',
169 'showitem' =>
'CType;LABEL,colPos;LABEL ',
174 '--div--;LABEL,CType;LABEL,colPos;LABEL,bodytext;LABEL',
176 'trailingTabInPalette' => [
179 'title' =>
'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:tt_content',
183 'showitem' =>
'--div--;LABEL,--palette--;;general,bodytext;LABEL',
189 'showitem' =>
'CType;LABEL,colPos;LABEL ',
194 '--div--;LABEL,CType;LABEL,colPos;LABEL,bodytext;LABEL',
196 'trailingLinebreakInPalette' => [
199 'title' =>
'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:tt_content',
203 'showitem' =>
'--div--;LABEL,--palette--;;general,bodytext;LABEL',
209 'showitem' =>
'CType;LABEL,colPos;LABEL
215 '--div--;LABEL,CType;LABEL,colPos;LABEL,bodytext;LABEL',
229 $this->assertSame($expected, $this->subject->_callRef(
'getVisibleColumns', $tableTCA, $type));