‪TYPO3CMS  10.4
TcaRecordTitleTest.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
17 
18 use Prophecy\Argument;
19 use Prophecy\Prophecy\ObjectProphecy;
22 use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
23 
27 class ‪TcaRecordTitleTest extends UnitTestCase
28 {
32  protected ‪$timeZone;
33 
34  public function ‪setUp(): void
35  {
36  parent::setUp();
37  $this->timeZone = date_default_timezone_get();
38  date_default_timezone_set('UTC');
39  }
40 
41  protected function ‪tearDown(): void
42  {
43  date_default_timezone_set($this->timeZone);
44  parent::tearDown();
45  }
46 
51  {
52  $input = [
53  'tableName' => 'aTable',
54  'databaseRew' => [],
55  'processedTca' => [
56  'ctrl' => [],
57  ],
58  ];
59  $this->expectException(\UnexpectedValueException::class);
60  $this->expectExceptionCode(1443706103);
61  (new ‪TcaRecordTitle())->addData($input);
62  }
63 
68  {
69  $input = [
70  'tableName' => 'aTable',
71  'databaseRow' => [],
72  'isInlineChild' => false,
73  'processedTca' => [
74  'ctrl' => [
75  'label' => 'uid',
76  'label_userFunc' => function (&$parameters) {
77  $parameters['title'] = 'Test';
78  }
79  ],
80  'columns' => [],
81  ],
82  ];
83 
84  $expected = $input;
85  $expected['recordTitle'] = 'Test';
86 
87  self::assertSame($expected, (new TcaRecordTitle())->addData($input));
88  }
89 
94  {
95  $input = [
96  'tableName' => 'aTable',
97  'databaseRow' => [
98  'uid' => 5,
99  ],
100  'isInlineChild' => true,
101  'isOnSymmetricSide' => false,
102  'inlineParentConfig' => [
103  'foreign_label' => 'aField',
104  ],
105  'processedTca' => [
106  'ctrl' => [
107  'label' => 'uid',
108  'formattedLabel_userFunc' => function (&$parameters) {
109  $parameters['title'] = 'Test';
110  }
111  ],
112  'columns' => [],
113  ],
114  ];
115 
116  $expected = $input;
117  $expected['recordTitle'] = 'Test';
118 
119  self::assertSame($expected, (new TcaRecordTitle())->addData($input));
120  }
121 
126  {
127  $input = [
128  'tableName' => 'aTable',
129  'databaseRow' => [
130  'aField' => 'aValue',
131  ],
132  'processedTca' => [
133  'ctrl' => [
134  'label' => 'foo',
135  'label_userFunc' => function (&$parameters) {
136  $parameters['title'] = 'Value that MUST NOT be used, otherwise the code is broken.';
137  }
138  ],
139  'columns' => [
140  'aField' => [
141  'config' => [
142  'type' => 'input',
143  ],
144  ],
145  ],
146  ],
147  'isInlineChild' => true,
148  'isOnSymmetricSide' => false,
149  'inlineParentConfig' => [
150  'foreign_label' => 'aField',
151  ],
152  ];
153  $expected = $input;
154  $expected['recordTitle'] = 'aValue';
155  self::assertSame($expected, (new TcaRecordTitle())->addData($input));
156  }
157 
162  {
163  $input = [
164  'tableName' => 'aTable',
165  'databaseRow' => [
166  'uid' => 5,
167  'aField' => 'aValue',
168  ],
169  'processedTca' => [
170  'ctrl' => [
171  'label' => 'foo',
172  'formattedLabel_userFunc' => function (&$parameters) {
173  $parameters['title'] = 'aFormattedLabel';
174  },
175  ],
176  'columns' => [
177  'aField' => [
178  'config' => [
179  'type' => 'input',
180  ],
181  ],
182  ],
183  ],
184  'isInlineChild' => true,
185  'isOnSymmetricSide' => false,
186  'inlineParentConfig' => [
187  'foreign_label' => 'aField',
188  ],
189  ];
190  $expected = $input;
191  $expected['recordTitle'] = 'aFormattedLabel';
192  self::assertSame($expected, (new TcaRecordTitle())->addData($input));
193  }
194 
199  {
200  $input = [
201  'tableName' => 'aTable',
202  'databaseRow' => [
203  'aField' => 'aValue',
204  ],
205  'processedTca' => [
206  'ctrl' => [
207  'label' => 'foo',
208  ],
209  'columns' => [
210  'aField' => [
211  'config' => [
212  'type' => 'input',
213  ],
214  ],
215  ],
216  ],
217  'isInlineChild' => true,
218  'inlineParentConfig' => [
219  'symmetric_label' => 'aField',
220  ],
221  'isOnSymmetricSide' => true,
222  ];
223  $expected = $input;
224  $expected['recordTitle'] = 'aValue';
225  self::assertSame($expected, (new TcaRecordTitle())->addData($input));
226  }
227 
231  public function ‪addDataReturnsRecordTitleForUid()
232  {
233  $input = [
234  'tableName' => 'aTable',
235  'isInlineChild' => false,
236  'databaseRow' => [
237  'uid' => 'NEW56017ee37d10e587251374',
238  ],
239  'processedTca' => [
240  'ctrl' => [
241  'label' => 'uid'
242  ],
243  'columns' => [],
244  ]
245  ];
246 
248  $languageService = $this->prophesize(LanguageService::class);
249  ‪$GLOBALS['LANG'] = $languageService->reveal();
250  $languageService->sL(Argument::cetera())->willReturnArgument(0);
251 
252  $expected = $input;
253  $expected['recordTitle'] = 'NEW56017ee37d10e587251374';
254  self::assertSame($expected, (new TcaRecordTitle())->addData($input));
255  }
256 
267  {
268  return [
269  'new record' => [
270  [
271  'type' => 'input',
272  ],
273  '',
274  '',
275  ],
276  'plain text input' => [
277  [
278  'type' => 'input',
279  ],
280  'aValue',
281  'aValue',
282  ],
283  'date input' => [
284  [
285  'type' => 'input',
286  'eval' => 'date'
287  ],
288  '978307261',
289  '01-01-01 (-7 days)',
290  ],
291  'date input (dbType: date)' => [
292  [
293  'type' => 'input',
294  'eval' => 'date',
295  'dbType' => 'date'
296  ],
297  '2001-01-01',
298  '01-01-01 (-7 days)',
299  ],
300  'date input (disableAgeDisplay: TRUE)' => [
301  [
302  'type' => 'input',
303  'eval' => 'date',
304  'disableAgeDisplay' => true
305  ],
306  '978307261',
307  '01-01-01',
308  ],
309  'time input' => [
310  [
311  'type' => 'input',
312  'eval' => 'time',
313  ],
314  '44100',
315  '12:15',
316  ],
317  'time input (dbType: time)' => [
318  [
319  'type' => 'input',
320  'eval' => 'time',
321  'dbType' => 'time'
322  ],
323  '23:59:00',
324  '23:59',
325  ],
326  'timesec input' => [
327  [
328  'type' => 'input',
329  'eval' => 'timesec',
330  ],
331  '44130',
332  '12:15:30',
333  ],
334  'timesec input (dbType: time)' => [
335  [
336  'type' => 'input',
337  'eval' => 'timesec',
338  'dbType' => 'time'
339  ],
340  '23:59:59',
341  '23:59:59',
342  ],
343  'datetime input' => [
344  [
345  'type' => 'input',
346  'eval' => 'datetime',
347  'dbType' => 'date'
348  ],
349  '978307261',
350  '01-01-01 00:01',
351  ],
352  'datetime input (dbType: datetime)' => [
353  [
354  'type' => 'input',
355  'eval' => 'datetime',
356  'dbType' => 'datetime'
357  ],
358  '2014-12-31 23:59:59',
359  '31-12-14 23:59',
360  ],
361  ];
362  }
363 
372  public function ‪addDataReturnsRecordTitleForInputType($fieldConfig, $fieldValue, $expectedTitle)
373  {
374  $input = [
375  'tableName' => 'aTable',
376  'isInlineChild' => false,
377  'databaseRow' => [
378  'uid' => '1',
379  'aField' => $fieldValue,
380  ],
381  'processedTca' => [
382  'ctrl' => [
383  'label' => 'aField'
384  ],
385  'columns' => [
386  'aField' => [
387  'config' => $fieldConfig,
388  ]
389  ],
390  ]
391  ];
392 
394  $languageService = $this->prophesize(LanguageService::class);
395  ‪$GLOBALS['LANG'] = $languageService->reveal();
396  $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.minutesHoursDaysYears')
397  ->willReturn(' min| hrs| days| yrs| min| hour| day| year');
398  $languageService->sL(Argument::cetera())->willReturnArgument(0);
399  ‪$GLOBALS['EXEC_TIME'] = 978912061;
400 
401  $expected = $input;
402  $expected['recordTitle'] = $expectedTitle;
403  self::assertSame($expected, (new TcaRecordTitle())->addData($input));
404  }
405 
410  {
411  $input = [
412  'tableName' => 'aTable',
413  'isInlineChild' => false,
414  'databaseRow' => [
415  'uid' => '1',
416  'aField' => '',
417  'anotherField' => 'anotherValue',
418  ],
419  'processedTca' => [
420  'ctrl' => [
421  'label' => 'aField',
422  'label_alt' => 'anotherField',
423  ],
424  'columns' => [
425  'aField' => [
426  'config' => [
427  'type' => 'input'
428  ]
429  ],
430  'anotherField' => [
431  'config' => [
432  'type' => 'input'
433  ]
434  ]
435  ],
436  ]
437  ];
438 
439  $expected = $input;
440  $expected['recordTitle'] = 'anotherValue';
441  self::assertSame($expected, (new TcaRecordTitle())->addData($input));
442  }
443 
448  {
449  $input = [
450  'tableName' => 'aTable',
451  'isInlineChild' => false,
452  'databaseRow' => [
453  'uid' => '1',
454  'aField' => '',
455  'anotherField' => '',
456  'additionalField' => 'additionalValue'
457  ],
458  'processedTca' => [
459  'ctrl' => [
460  'label' => 'aField',
461  'label_alt' => 'anotherField,additionalField',
462  ],
463  'columns' => [
464  'aField' => [
465  'config' => [
466  'type' => 'input'
467  ]
468  ],
469  'anotherField' => [
470  'config' => [
471  'type' => 'input'
472  ]
473  ],
474  'additionalField' => [
475  'config' => [
476  'type' => 'input'
477  ]
478  ],
479  ],
480  ]
481  ];
482 
483  $expected = $input;
484  $expected['recordTitle'] = 'additionalValue';
485  self::assertSame($expected, (new TcaRecordTitle())->addData($input));
486  }
487 
492  {
493  $input = [
494  'tableName' => 'aTable',
495  'isInlineChild' => false,
496  'databaseRow' => [
497  'uid' => '1',
498  'aField' => 'aField',
499  'anotherField' => 'anotherField'
500  ],
501  'processedTca' => [
502  'ctrl' => [
503  'label' => 'aField',
504  'label_alt' => 'anotherField',
505  'label_alt_force' => true,
506  ],
507  'columns' => [
508  'aField' => [
509  'config' => [
510  'type' => 'input'
511  ]
512  ],
513  'anotherField' => [
514  'config' => [
515  'type' => 'input'
516  ]
517  ],
518  ],
519  ]
520  ];
521 
522  $expected = $input;
523  $expected['recordTitle'] = 'aField, anotherField';
524  self::assertSame($expected, (new TcaRecordTitle())->addData($input));
525  }
526 
531  {
532  $input = [
533  'tableName' => 'aTable',
534  'isInlineChild' => false,
535  'databaseRow' => [
536  'uid' => '1',
537  'aField' => 'aField',
538  'anotherField' => 'anotherField',
539  'additionalField' => 'additionalValue'
540  ],
541  'processedTca' => [
542  'ctrl' => [
543  'label' => 'aField',
544  'label_alt' => 'anotherField,additionalField',
545  'label_alt_force' => true,
546  ],
547  'columns' => [
548  'aField' => [
549  'config' => [
550  'type' => 'input'
551  ]
552  ],
553  'anotherField' => [
554  'config' => [
555  'type' => 'input'
556  ]
557  ],
558  'additionalField' => [
559  'config' => [
560  'type' => 'input'
561  ]
562  ],
563  ],
564  ]
565  ];
566 
567  $expected = $input;
568  $expected['recordTitle'] = 'aField, anotherField, additionalValue';
569  self::assertSame($expected, (new TcaRecordTitle())->addData($input));
570  }
571 
576  {
577  $input = [
578  'tableName' => 'aTable',
579  'isInlineChild' => false,
580  'databaseRow' => [
581  'uid' => '1',
582  'aField' => 'aField',
583  'anotherField' => '',
584  'additionalField' => 'additionalValue'
585  ],
586  'processedTca' => [
587  'ctrl' => [
588  'label' => 'aField',
589  'label_alt' => 'anotherField,additionalField',
590  'label_alt_force' => true,
591  ],
592  'columns' => [
593  'aField' => [
594  'config' => [
595  'type' => 'input'
596  ]
597  ],
598  'anotherField' => [
599  'config' => [
600  'type' => 'input'
601  ]
602  ],
603  'additionalField' => [
604  'config' => [
605  'type' => 'input'
606  ]
607  ],
608  ],
609  ]
610  ];
611 
612  $expected = $input;
613  $expected['recordTitle'] = 'aField, additionalValue';
614  self::assertSame($expected, (new TcaRecordTitle())->addData($input));
615  }
616 
621  {
622  $input = [
623  'tableName' => 'aTable',
624  'isInlineChild' => false,
625  'databaseRow' => [
626  'uid' => '1',
627  'aField' => '2',
628  ],
629  'processedTca' => [
630  'ctrl' => [
631  'label' => 'aField'
632  ],
633  'columns' => [
634  'aField' => [
635  'config' => [
636  'type' => 'radio',
637  'items' => [
638  ['foo', 1],
639  ['bar', 2],
640  ['baz', 3],
641  ]
642  ]
643  ]
644  ],
645  ]
646  ];
647 
648  $expected = $input;
649  $expected['recordTitle'] = 'bar';
650  self::assertSame($expected, (new TcaRecordTitle())->addData($input));
651  }
652 
657  {
658  $input = [
659  'tableName' => 'aTable',
660  'isInlineChild' => false,
661  'databaseRow' => [
662  'uid' => '1',
663  'aField' => '2',
664  ],
665  'processedTca' => [
666  'ctrl' => [
667  'label' => 'aField'
668  ],
669  'columns' => [
670  'aField' => [
671  'config' => [
672  'type' => 'inline'
673  ],
674  'children' => [
675  [
676  'recordTitle' => 'foo',
677  'vanillaUid' => 2
678  ]
679  ]
680  ]
681  ],
682  ]
683  ];
684 
685  $expected = $input;
686  $expected['recordTitle'] = 'foo';
687  self::assertSame($expected, (new TcaRecordTitle())->addData($input));
688  }
689 
700  {
701  return [
702  'new record' => [
703  [
704  'internal_type' => 'db',
705  ],
706  [],
707  ''
708  ],
709  'internal_type: file' => [
710  [
711  'internal_type' => 'file',
712  ],
713  [
714  [
715  'uidOrPath' => 'somePath/aFile.jpg',
716  ],
717  [
718  'uidOrPath' => 'someOtherPath/anotherFile.png',
719  ],
720  ],
721  'somePath/aFile.jpg, someOtherPath/anotherFile.png',
722  ],
723  'internal_type: db, single table, single record' => [
724  [
725  'internal_type' => 'db',
726  'allowed' => 'aTable'
727  ],
728  [
729  [
730  'title' => 'aValue',
731  ],
732  ],
733  'aValue',
734  ],
735  'internal_type: db, single table, multiple records' => [
736  [
737  'internal_type' => 'db',
738  'allowed' => 'aTable'
739  ],
740  [
741  [
742  'title' => 'aValue',
743  ],
744  [
745  'title' => 'anotherValue',
746  ],
747  ],
748  'aValue, anotherValue',
749  ],
750  'internal_type: db, multiple tables, single record' => [
751  [
752  'internal_type' => 'db',
753  'allowed' => 'aTable,anotherTable'
754  ],
755  [
756  [
757  'uid' => 1,
758  'table' => 'anotherTable',
759  'title' => 'anotherValue',
760  ],
761  ],
762  'anotherValue',
763  ],
764  'internal_type: db, multiple tables, multiple records' => [
765  [
766  'internal_type' => 'db',
767  'allowed' => 'aTable,anotherTable'
768  ],
769  [
770  [
771  'uid' => 1,
772  'table' => 'aTable',
773  'title' => 'aValue',
774  ],
775  [
776  'uid' => 2,
777  'table' => 'anotherTable',
778  'title' => 'anotherValue',
779  ],
780  ],
781  'aValue, anotherValue',
782  ],
783  ];
784  }
785 
794  public function ‪addDataReturnsRecordTitleForGroupType($fieldConfig, $fieldValue, $expectedTitle)
795  {
796  $input = [
797  'tableName' => 'aTable',
798  'isInlineChild' => false,
799  'databaseRow' => [
800  'uid' => '1',
801  'aField' => $fieldValue,
802  ],
803  'processedTca' => [
804  'ctrl' => [
805  'label' => 'aField'
806  ],
807  'columns' => [
808  'aField' => [
809  'config' => array_merge(
810  [
811  'type' => 'group',
812  ],
813  $fieldConfig
814  ),
815  ]
816  ],
817  ]
818  ];
819 
821  $languageService = $this->prophesize(LanguageService::class);
822  ‪$GLOBALS['LANG'] = $languageService->reveal();
823  $languageService->sL(Argument::cetera())->willReturnArgument(0);
824 
825  $expected = $input;
826  $expected['recordTitle'] = $expectedTitle;
827  self::assertSame($expected, (new TcaRecordTitle())->addData($input));
828  }
829 
834  {
835  $input = [
836  'tableName' => 'aTable',
837  'isInlineChild' => false,
838  'databaseRow' => [
839  'uid' => '1',
840  'aField' => [
841  [
842  'uid' => 1,
843  'table' => 'aTable',
844  'title' => 'aValue',
845  ],
846  [
847  'uid' => 2,
848  'table' => 'anotherTable',
849  'title' => 'anotherValue',
850  ],
851  ],
852  ],
853  'processedTca' => [
854  'ctrl' => [
855  'label' => 'aField'
856  ],
857  'columns' => [
858  'aField' => [
859  'config' => [
860  'type' => 'group',
861  'internal_type' => 'db',
862  'allowed' => 'aTable,anotherTable',
863  ]
864  ]
865  ],
866  ]
867  ];
868 
869  $expected = $input;
870  $expected['recordTitle'] = 'aValue, anotherValue';
871  self::assertSame($expected, (new TcaRecordTitle())->addData($input));
872  }
873 
878  {
879  $input = [
880  'tableName' => 'aTable',
881  'isInlineChild' => false,
882  'databaseRow' => [
883  'aField' => 1,
884  ],
885  'processedTca' => [
886  'ctrl' => [
887  'label' => 'aField'
888  ],
889  'columns' => [
890  'aField' => [
891  'config' => [
892  'type' => 'check',
893  ]
894  ]
895  ],
896  ]
897  ];
898 
900  $languageService = $this->prophesize(LanguageService::class);
901  ‪$GLOBALS['LANG'] = $languageService->reveal();
902  $languageService->sL(Argument::cetera())->willReturnArgument(0)->shouldBeCalled();
903 
904  $expected = $input;
905  $expected['recordTitle'] = 'LLL:EXT:core/Resources/Private/Language/locallang_common.xlf:yes';
906  self::assertSame($expected, (new TcaRecordTitle())->addData($input));
907  }
908 
913  {
914  $input = [
915  'tableName' => 'aTable',
916  'isInlineChild' => false,
917  'databaseRow' => [
918  'aField' => '5'
919  ],
920  'processedTca' => [
921  'ctrl' => [
922  'label' => 'aField'
923  ],
924  'columns' => [
925  'aField' => [
926  'config' => [
927  'type' => 'check',
928  'items' => [
929  ['foo', ''],
930  ['bar', ''],
931  ['baz', ''],
932  ]
933  ]
934  ]
935  ],
936  ]
937  ];
938 
940  $languageService = $this->prophesize(LanguageService::class);
941  ‪$GLOBALS['LANG'] = $languageService->reveal();
942  $languageService->sL(Argument::cetera())->willReturnArgument(0);
943 
944  $expected = $input;
945  $expected['recordTitle'] = 'foo, baz';
946  self::assertSame($expected, (new TcaRecordTitle())->addData($input));
947  }
948 
953  {
954  $input = [
955  'tableName' => 'aTable',
956  'isInlineChild' => false,
957  'databaseRow' => [
958  'aField' => [
959  'data' => [
960  'sDEF' => [
961  'lDEF' => [
962  'aFlexField' => [
963  'vDEF' => 'aFlexValue',
964  ]
965  ]
966  ]
967  ]
968  ]
969  ],
970  'processedTca' => [
971  'ctrl' => [
972  'label' => 'aField'
973  ],
974  'columns' => [
975  'aField' => [
976  'config' => [
977  'type' => 'flex',
978  'ds' => [
979  'sheets' => [
980  'sDEF' => [
981  'ROOT' => [
982  'type' => 'array',
983  'el' => [
984  'aFlexField' => [
985  'label' => 'Some input field',
986  'config' => [
987  'type' => 'input',
988  ],
989  ],
990  ],
991  ],
992  ],
993  ],
994  ]
995 
996  ]
997  ]
998  ],
999  ]
1000  ];
1001 
1002  $expected = $input;
1003  $expected['recordTitle'] = '';
1004  self::assertSame($expected, (new TcaRecordTitle())->addData($input));
1005  }
1006 
1011  {
1012  $input = [
1013  'tableName' => 'aTable',
1014  'isInlineChild' => false,
1015  'databaseRow' => [
1016  'aField' => [
1017  '1',
1018  '2'
1019  ]
1020  ],
1021  'processedTca' => [
1022  'ctrl' => [
1023  'label' => 'aField'
1024  ],
1025  'columns' => [
1026  'aField' => [
1027  'config' => [
1028  'type' => 'select',
1029  'items' => [
1030  ['foo', 1, null, null],
1031  ['bar', 2, null, null],
1032  ['baz', 4, null, null],
1033  ]
1034  ]
1035  ]
1036  ],
1037  ]
1038  ];
1039 
1040  $expected = $input;
1041  $expected['recordTitle'] = 'foo, bar';
1042  self::assertSame($expected, (new TcaRecordTitle())->addData($input));
1043  }
1044 
1049  {
1050  $input = [
1051  'tableName' => 'aTable',
1052  'isInlineChild' => false,
1053  'databaseRow' => [
1054  'aField' => '<p> text </p>',
1055  ],
1056  'processedTca' => [
1057  'ctrl' => [
1058  'label' => 'aField',
1059  ],
1060  'columns' => [
1061  'aField' => [
1062  'config' => [
1063  'type' => 'text',
1064  ],
1065  ],
1066  ],
1067  ],
1068  ];
1069 
1070  $expected = $input;
1071  $expected['recordTitle'] = 'text';
1072  self::assertSame($expected, (new TcaRecordTitle())->addData($input));
1073  }
1074 }
‪TYPO3\CMS\Backend\Tests\Unit\Form\FormDataProvider\TcaRecordTitleTest\addDataReturnsRecordTitleForGroupTypeWithInternalTypeDb
‪addDataReturnsRecordTitleForGroupTypeWithInternalTypeDb()
Definition: TcaRecordTitleTest.php:832
‪TYPO3\CMS\Backend\Tests\Unit\Form\FormDataProvider\TcaRecordTitleTest\addDataReturnsRecordTitleWithForcedAlternativeLabel
‪addDataReturnsRecordTitleWithForcedAlternativeLabel()
Definition: TcaRecordTitleTest.php:490
‪TYPO3\CMS\Backend\Tests\Unit\Form\FormDataProvider\TcaRecordTitleTest\addDataReturnsRecordTitleForInputTypeDataProvider
‪addDataReturnsRecordTitleForInputTypeDataProvider()
Definition: TcaRecordTitleTest.php:265
‪TYPO3\CMS\Backend\Tests\Unit\Form\FormDataProvider\TcaRecordTitleTest\addDataReturnsRecordTitleForInlineChildWithForeignLabel
‪addDataReturnsRecordTitleForInlineChildWithForeignLabel()
Definition: TcaRecordTitleTest.php:124
‪TYPO3\CMS\Backend\Tests\Unit\Form\FormDataProvider\TcaRecordTitleTest\addDataReturnsRecordTitleForGroupType
‪addDataReturnsRecordTitleForGroupType($fieldConfig, $fieldValue, $expectedTitle)
Definition: TcaRecordTitleTest.php:793
‪TYPO3\CMS\Backend\Tests\Unit\Form\FormDataProvider\TcaRecordTitleTest\addDataReturnsEmptyRecordTitleForFlexType
‪addDataReturnsEmptyRecordTitleForFlexType()
Definition: TcaRecordTitleTest.php:951
‪TYPO3\CMS\Backend\Tests\Unit\Form\FormDataProvider\TcaRecordTitleTest\addDataReturnsRecordTitleWithMultipleAlternativeLabels
‪addDataReturnsRecordTitleWithMultipleAlternativeLabels()
Definition: TcaRecordTitleTest.php:446
‪TYPO3\CMS\Backend\Tests\Unit\Form\FormDataProvider\TcaRecordTitleTest\addDataReturnsRecordTitleForArrayCheckboxType
‪addDataReturnsRecordTitleForArrayCheckboxType()
Definition: TcaRecordTitleTest.php:911
‪TYPO3\CMS\Backend\Tests\Unit\Form\FormDataProvider\TcaRecordTitleTest\setUp
‪setUp()
Definition: TcaRecordTitleTest.php:33
‪TYPO3\CMS\Backend\Tests\Unit\Form\FormDataProvider\TcaRecordTitleTest\addDataOverridesRecordTitleWithFormattedLabelUserFuncForInlineChildWithForeignLabel
‪addDataOverridesRecordTitleWithFormattedLabelUserFuncForInlineChildWithForeignLabel()
Definition: TcaRecordTitleTest.php:160
‪TYPO3\CMS\Backend\Tests\Unit\Form\FormDataProvider\TcaRecordTitleTest\addDataReturnsRecordTitleForUid
‪addDataReturnsRecordTitleForUid()
Definition: TcaRecordTitleTest.php:230
‪TYPO3\CMS\Backend\Tests\Unit\Form\FormDataProvider\TcaRecordTitleTest\addDataReturnsRecordTitleWithMultipleForcedAlternativeLabels
‪addDataReturnsRecordTitleWithMultipleForcedAlternativeLabels()
Definition: TcaRecordTitleTest.php:529
‪TYPO3\CMS\Backend\Tests\Unit\Form\FormDataProvider\TcaRecordTitleTest\addDataReturnsRecordTitleForRadioType
‪addDataReturnsRecordTitleForRadioType()
Definition: TcaRecordTitleTest.php:619
‪TYPO3\CMS\Backend\Tests\Unit\Form\FormDataProvider\TcaRecordTitleTest\addDataReturnsRecordTitleForGroupTypeDataProvider
‪addDataReturnsRecordTitleForGroupTypeDataProvider()
Definition: TcaRecordTitleTest.php:698
‪TYPO3\CMS\Backend\Tests\Unit\Form\FormDataProvider\TcaRecordTitleTest\addDataReturnsRecordTitleForInlineChildWithSymmetricLabel
‪addDataReturnsRecordTitleForInlineChildWithSymmetricLabel()
Definition: TcaRecordTitleTest.php:197
‪TYPO3\CMS\Backend\Tests\Unit\Form\FormDataProvider\TcaRecordTitleTest\addDataReturnsStrippedAndTrimmedValueForTextType
‪addDataReturnsStrippedAndTrimmedValueForTextType()
Definition: TcaRecordTitleTest.php:1047
‪TYPO3\CMS\Backend\Tests\Unit\Form\FormDataProvider\TcaRecordTitleTest\addDataReturnsRecordTitleForInlineType
‪addDataReturnsRecordTitleForInlineType()
Definition: TcaRecordTitleTest.php:655
‪TYPO3\CMS\Backend\Tests\Unit\Form\FormDataProvider\TcaRecordTitleTest\addDataReturnsRecordTitleIgnoresEmptyAlternativeLabels
‪addDataReturnsRecordTitleIgnoresEmptyAlternativeLabels()
Definition: TcaRecordTitleTest.php:574
‪TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle
Definition: TcaRecordTitle.php:31
‪TYPO3\CMS\Backend\Tests\Unit\Form\FormDataProvider\TcaRecordTitleTest\addDataReturnsRecordTitleForSelectType
‪addDataReturnsRecordTitleForSelectType()
Definition: TcaRecordTitleTest.php:1009
‪TYPO3\CMS\Backend\Tests\Unit\Form\FormDataProvider\TcaRecordTitleTest\addDataReturnsRecordTitleForFormattedLabelUserFunction
‪addDataReturnsRecordTitleForFormattedLabelUserFunction()
Definition: TcaRecordTitleTest.php:92
‪TYPO3\CMS\Backend\Tests\Unit\Form\FormDataProvider\TcaRecordTitleTest\addDataReturnsRecordTitleWithAlternativeLabel
‪addDataReturnsRecordTitleWithAlternativeLabel()
Definition: TcaRecordTitleTest.php:408
‪TYPO3\CMS\Backend\Tests\Unit\Form\FormDataProvider\TcaRecordTitleTest\tearDown
‪tearDown()
Definition: TcaRecordTitleTest.php:40
‪TYPO3\CMS\Backend\Tests\Unit\Form\FormDataProvider\TcaRecordTitleTest\$timeZone
‪string $timeZone
Definition: TcaRecordTitleTest.php:31
‪$GLOBALS
‪$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['adminpanel']['modules']
Definition: ext_localconf.php:5
‪TYPO3\CMS\Core\Localization\LanguageService
Definition: LanguageService.php:42
‪TYPO3\CMS\Backend\Tests\Unit\Form\FormDataProvider\TcaRecordTitleTest\addDataReturnsRecordTitleForInputType
‪addDataReturnsRecordTitleForInputType($fieldConfig, $fieldValue, $expectedTitle)
Definition: TcaRecordTitleTest.php:371
‪TYPO3\CMS\Backend\Tests\Unit\Form\FormDataProvider\TcaRecordTitleTest\addDataReturnsRecordTitleForLabelUserFunction
‪addDataReturnsRecordTitleForLabelUserFunction()
Definition: TcaRecordTitleTest.php:66
‪TYPO3\CMS\Backend\Tests\Unit\Form\FormDataProvider\TcaRecordTitleTest\addDataThrowsExceptionWithMissingLabel
‪addDataThrowsExceptionWithMissingLabel()
Definition: TcaRecordTitleTest.php:49
‪TYPO3\CMS\Backend\Tests\Unit\Form\FormDataProvider
Definition: DatabaseDefaultLanguagePageRowTest.php:18
‪TYPO3\CMS\Backend\Tests\Unit\Form\FormDataProvider\TcaRecordTitleTest\addDataReturnsRecordTitleForSingleCheckboxType
‪addDataReturnsRecordTitleForSingleCheckboxType()
Definition: TcaRecordTitleTest.php:876
‪TYPO3\CMS\Backend\Tests\Unit\Form\FormDataProvider\TcaRecordTitleTest
Definition: TcaRecordTitleTest.php:28