18 use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
37 'extbase only with string' => [
39 'EXT:myext/Resources/Private/Language/modules.xlf',
41 'shortdescription' =>
'EXT:myext/Resources/Private/Language/modules.xlf:mlang_labels_tablabel',
42 'description' =>
'EXT:myext/Resources/Private/Language/modules.xlf:mlang_labels_tabdescr',
43 'title' =>
'EXT:myext/Resources/Private/Language/modules.xlf:mlang_tabs_tab',
46 'array with LLLs and proper names' => [
49 'shortdescription' =>
'EXT:myext/Resources/Private/Language/modules.xlf:myshortdescription',
50 'description' =>
'EXT:myext/Resources/Private/Language/modules.xlf:mydescription',
51 'title' =>
'EXT:myext/Resources/Private/Language/modules.xlf:mytitle',
54 'shortdescription' =>
'EXT:myext/Resources/Private/Language/modules.xlf:myshortdescription',
55 'description' =>
'EXT:myext/Resources/Private/Language/modules.xlf:mydescription',
56 'title' =>
'EXT:myext/Resources/Private/Language/modules.xlf:mytitle',
59 'XLF reference inside [ll_ref] - classic' => [
62 'll_ref' =>
'EXT:myext/Resources/Private/Language/modules.xlf',
65 'shortdescription' =>
'EXT:myext/Resources/Private/Language/modules.xlf:mlang_labels_tablabel',
66 'description' =>
'EXT:myext/Resources/Private/Language/modules.xlf:mlang_labels_tabdescr',
67 'title' =>
'EXT:myext/Resources/Private/Language/modules.xlf:mlang_tabs_tab',
70 'XLF reference inside [default][ll_ref] - classic with default' => [
74 'll_ref' =>
'EXT:myext/Resources/Private/Language/modules.xlf',
78 'shortdescription' =>
'EXT:myext/Resources/Private/Language/modules.xlf:mlang_labels_tablabel',
79 'description' =>
'EXT:myext/Resources/Private/Language/modules.xlf:mlang_labels_tabdescr',
80 'title' =>
'EXT:myext/Resources/Private/Language/modules.xlf:mlang_tabs_tab',
83 'XLF reference inside [it][ll_ref] - classic with italian' => [
87 'll_ref' =>
'EXT:myext/Resources/Private/Language/modules.xlf',
91 'shortdescription' =>
'EXT:myext/Resources/Private/Language/modules.xlf:mlang_labels_tablabel',
92 'description' =>
'EXT:myext/Resources/Private/Language/modules.xlf:mlang_labels_tabdescr',
93 'title' =>
'EXT:myext/Resources/Private/Language/modules.xlf:mlang_tabs_tab',
96 'classic inline labels' => [
97 'classic_inline_labels',
101 'tablabel' =>
'My short description!',
102 'tabdescr' =>
'My description!',
110 'shortdescription' =>
'My short description!',
111 'description' =>
'My description!',
112 'title' =>
'My title',
115 'classic inline labels in italian completely' => [
116 'classic_italian_labels',
120 'tablabel' =>
'My short description!',
121 'tabdescr' =>
'My description!',
129 'tablabel' =>
'Mama Mia short description!',
130 'tabdescr' =>
'Mama Mia description!',
138 'shortdescription' =>
'Mama Mia short description!',
139 'description' =>
'Mama Mia description!',
140 'title' =>
'Mama Mia',
143 'classic inline labels in italian partially' => [
144 'classic_italian_labels',
148 'tablabel' =>
'My short description!',
149 'tabdescr' =>
'My original description!',
157 'tablabel' =>
'Mama Mia short description!',
165 'shortdescription' =>
'Mama Mia short description!',
166 'description' =>
'My original description!',
167 'title' =>
'Mama Mia',
184 $moduleLoader->addLabelsForModule($moduleName, $labels);
185 $this->assertEquals($expectedResult, $moduleLoader->getLabelsForModule($moduleName));