‪TYPO3CMS  9.5
DefaultTcaSchemaTest.php
Go to the documentation of this file.
1 <?php
2 declare(strict_types = 1);
3 
5 
6 /*
7  * This file is part of the TYPO3 CMS project.
8  *
9  * It is free software; you can redistribute it and/or modify it under
10  * the terms of the GNU General Public License, either version 2
11  * of the License, or any later version.
12  *
13  * For the full copyright and license information, please read the
14  * LICENSE.txt file that was distributed with this source code.
15  *
16  * The TYPO3 project - inspiring people to share!
17  */
18 
19 use Doctrine\DBAL\Schema\Column;
20 use Doctrine\DBAL\Schema\Index;
21 use Doctrine\DBAL\Schema\SchemaException;
22 use Doctrine\DBAL\Schema\Table;
23 use Doctrine\DBAL\Types\Type;
25 use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
26 
30 class ‪DefaultTcaSchemaTest extends UnitTestCase
31 {
35  protected ‪$subject;
36 
40  protected ‪$defaultTable;
41 
42  public function ‪setUp(): void
43  {
44  parent::setUp();
45  $this->subject = new ‪DefaultTcaSchema();
46  $this->defaultTable = new Table('aTable');
47  }
48 
53  {
54  ‪$GLOBALS['TCA'] = [];
55  $this->assertEquals([$this->defaultTable], $this->subject->enrich([$this->defaultTable]));
56  }
57 
61  public function ‪enrichDoesNotAddColumnIfExists()
62  {
63  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [];
64 
65  $table = new Table('aTable');
66  $table->addColumn('uid', 'integer');
67  $table->addColumn('pid', 'integer');
68  $input[] = $table;
69 
70  $table = new Table('aTable');
71  $table->addColumn('uid', 'integer');
72  $table->addColumn('pid', 'integer');
73  $expected[] = $table;
74 
75  $this->assertEquals($expected, $this->subject->enrich($input));
76  }
77 
82  {
83  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [];
84 
85  $table = new Table('aTable');
86  $table->addColumn('foo', 'integer');
87  $input[] = $table;
88  $table = new Table('aTable');
89  $table->addColumn('uid', 'integer');
90  $table->addColumn('pid', 'integer');
91  $input[] = $table;
92 
93  $table = new Table('aTable');
94  $table->addColumn('foo', 'integer');
95  $expected[] = $table;
96  $table = new Table('aTable');
97  $table->addColumn('uid', 'integer');
98  $table->addColumn('pid', 'integer');
99  $expected[] = $table;
100 
101  $this->assertEquals($expected, $this->subject->enrich($input));
102  }
103 
108  {
109  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [];
110 
111  $table = new Table('aTable');
112  $table->addColumn('foo', 'integer');
113  $input[] = $table;
114  $table = new Table('aTable');
115  $table->addColumn('bar', 'integer');
116  $input[] = $table;
117 
118  $result = $this->subject->enrich($input);
119 
120  $this->assertInstanceOf(Column::class, $result[0]->getColumn('uid'));
121  }
122 
126  public function ‪enrichAddsUidAndPrimaryKey()
127  {
128  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [];
129  $result = $this->subject->enrich([$this->defaultTable]);
130  $expectedUidColumn = new Column(
131  '`uid`',
132  Type::getType('integer'),
133  [
134  'notnull' => true,
135  'unsigned' => true,
136  'autoincrement' => true,
137  ]
138  );
139  $expectedPrimaryKey = new Index('primary', ['uid'], true, true);
140  $this->assertEquals($expectedUidColumn, $result[0]->getColumn('uid'));
141  $this->assertEquals($expectedPrimaryKey, $result[0]->getPrimaryKey());
142  }
143 
147  public function ‪enrichAddsPid()
148  {
149  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [];
150  $result = $this->subject->enrich([$this->defaultTable]);
151  $expectedPidColumn = new Column(
152  '`pid`',
153  Type::getType('integer'),
154  [
155  'default' => 0,
156  'notnull' => true,
157  'unsigned' => true,
158  ]
159  );
160  $this->assertEquals($expectedPidColumn, $result[0]->getColumn('pid'));
161  }
162 
167  {
168  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
169  'versioningWS' => true,
170  ];
171  $result = $this->subject->enrich([$this->defaultTable]);
172  $expectedPidColumn = new Column(
173  '`pid`',
174  Type::getType('integer'),
175  [
176  'default' => 0,
177  'notnull' => true,
178  'unsigned' => false,
179  ]
180  );
181  $this->assertEquals($expectedPidColumn, $result[0]->getColumn('pid'));
182  }
183 
187  public function ‪enrichAddsTstamp()
188  {
189  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
190  'tstamp' => 'updatedon',
191  ];
192  $result = $this->subject->enrich([$this->defaultTable]);
193  $expectedColumn = new Column(
194  '`updatedon`',
195  Type::getType('integer'),
196  [
197  'default' => 0,
198  'notnull' => true,
199  'unsigned' => true,
200  ]
201  );
202  $this->assertEquals($expectedColumn, $result[0]->getColumn('updatedon'));
203  }
204 
208  public function ‪enrichAddsCrdate()
209  {
210  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
211  'crdate' => 'createdon',
212  ];
213  $result = $this->subject->enrich([$this->defaultTable]);
214  $expectedColumn = new Column(
215  '`createdon`',
216  Type::getType('integer'),
217  [
218  'default' => 0,
219  'notnull' => true,
220  'unsigned' => true,
221  ]
222  );
223  $this->assertEquals($expectedColumn, $result[0]->getColumn('createdon'));
224  }
225 
229  public function ‪enrichAddsCruserid()
230  {
231  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
232  'cruser_id' => 'createdby',
233  ];
234  $result = $this->subject->enrich([$this->defaultTable]);
235  $expectedColumn = new Column(
236  '`createdby`',
237  Type::getType('integer'),
238  [
239  'default' => 0,
240  'notnull' => true,
241  'unsigned' => true,
242  ]
243  );
244  $this->assertEquals($expectedColumn, $result[0]->getColumn('createdby'));
245  }
246 
250  public function ‪enrichAddsDeleted()
251  {
252  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
253  'delete' => 'deleted',
254  ];
255  $result = $this->subject->enrich([$this->defaultTable]);
256  $expectedColumn = new Column(
257  '`deleted`',
258  Type::getType('smallint'),
259  [
260  'default' => 0,
261  'notnull' => true,
262  'unsigned' => true,
263  ]
264  );
265  $this->assertEquals($expectedColumn, $result[0]->getColumn('deleted'));
266  }
267 
271  public function ‪enrichAddsDisabled()
272  {
273  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
274  'enablecolumns' => [
275  'disabled' => 'disabled',
276  ]
277  ];
278  $result = $this->subject->enrich([$this->defaultTable]);
279  $expectedColumn = new Column(
280  '`disabled`',
281  Type::getType('smallint'),
282  [
283  'default' => 0,
284  'notnull' => true,
285  'unsigned' => true,
286  ]
287  );
288  $this->assertEquals($expectedColumn, $result[0]->getColumn('disabled'));
289  }
290 
294  public function ‪enrichAddsStarttime()
295  {
296  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
297  'enablecolumns' => [
298  'starttime' => 'starttime',
299  ]
300  ];
301  $result = $this->subject->enrich([$this->defaultTable]);
302  $expectedColumn = new Column(
303  '`starttime`',
304  Type::getType('integer'),
305  [
306  'default' => 0,
307  'notnull' => true,
308  'unsigned' => true,
309  ]
310  );
311  $this->assertEquals($expectedColumn, $result[0]->getColumn('starttime'));
312  }
313 
317  public function ‪enrichAddsEndtime()
318  {
319  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
320  'enablecolumns' => [
321  'endtime' => 'endtime',
322  ]
323  ];
324  $result = $this->subject->enrich([$this->defaultTable]);
325  $expectedColumn = new Column(
326  '`endtime`',
327  Type::getType('integer'),
328  [
329  'default' => 0,
330  'notnull' => true,
331  'unsigned' => true,
332  ]
333  );
334  $this->assertEquals($expectedColumn, $result[0]->getColumn('endtime'));
335  }
336 
340  public function ‪enrichAddsFegroup()
341  {
342  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
343  'enablecolumns' => [
344  'fe_group' => 'fe_group',
345  ]
346  ];
347  $result = $this->subject->enrich([$this->defaultTable]);
348  $expectedColumn = new Column(
349  '`fe_group`',
350  Type::getType('string'),
351  [
352  'default' => '0',
353  'notnull' => true,
354  'length' => 255,
355  ]
356  );
357  $this->assertEquals($expectedColumn, $result[0]->getColumn('fe_group'));
358  }
359 
363  public function ‪enrichAddsSorting()
364  {
365  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
366  'sortby' => 'sorting',
367  ];
368  $result = $this->subject->enrich([$this->defaultTable]);
369  $expectedColumn = new Column(
370  '`sorting`',
371  Type::getType('integer'),
372  [
373  'default' => '0',
374  'notnull' => true,
375  'unsigned' => false,
376  ]
377  );
378  $this->assertEquals($expectedColumn, $result[0]->getColumn('sorting'));
379  }
380 
384  public function ‪enrichAddsParentKey()
385  {
386  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [];
387  $result = $this->subject->enrich([$this->defaultTable]);
388  $expectedIndex = new Index('parent', ['pid']);
389  $this->assertEquals($expectedIndex, $result[0]->getIndex('parent'));
390  }
391 
395  public function ‪enrichAddsParentKeyWithDelete()
396  {
397  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
398  'delete' => 'deleted',
399  ];
400  $result = $this->subject->enrich([$this->defaultTable]);
401  $expectedIndex = new Index('parent', ['pid', 'deleted']);
402  $this->assertEquals($expectedIndex, $result[0]->getIndex('parent'));
403  }
404 
408  public function ‪enrichAddsParentKeyWithDisabled()
409  {
410  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
411  'enablecolumns' => [
412  'disabled' => 'disabled',
413  ],
414  ];
415  $result = $this->subject->enrich([$this->defaultTable]);
416  $expectedIndex = new Index('parent', ['pid', 'disabled']);
417  $this->assertEquals($expectedIndex, $result[0]->getIndex('parent'));
418  }
419 
423  public function ‪enrichAddsParentKeyInCorrectOrder()
424  {
425  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
426  'delete' => 'deleted',
427  'enablecolumns' => [
428  'disabled' => 'disabled',
429  ],
430  ];
431  $result = $this->subject->enrich([$this->defaultTable]);
432  $expectedIndex = new Index('parent', ['pid', 'deleted', 'disabled']);
433  $this->assertEquals($expectedIndex, $result[0]->getIndex('parent'));
434  }
435 
439  public function ‪enrichAddsSysLanguageUid()
440  {
441  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
442  'languageField' => 'sys_language_uid',
443  ];
444  $result = $this->subject->enrich([$this->defaultTable]);
445  $expectedColumn = new Column(
446  '`sys_language_uid`',
447  Type::getType('integer'),
448  [
449  'default' => 0,
450  'notnull' => true,
451  'unsigned' => false,
452  ]
453  );
454  $this->assertEquals($expectedColumn, $result[0]->getColumn('sys_language_uid'));
455  }
456 
460  public function ‪enrichAddsL10nParent()
461  {
462  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
463  'languageField' => 'sys_language_uid',
464  'transOrigPointerField' => 'l10n_parent',
465  ];
466  $result = $this->subject->enrich([$this->defaultTable]);
467  $expectedColumn = new Column(
468  '`l10n_parent`',
469  Type::getType('integer'),
470  [
471  'default' => 0,
472  'notnull' => true,
473  'unsigned' => true,
474  ]
475  );
476  $this->assertEquals($expectedColumn, $result[0]->getColumn('l10n_parent'));
477  }
478 
483  {
484  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
485  'transOrigPointerField' => 'l10n_parent',
486  ];
487  $result = $this->subject->enrich([$this->defaultTable]);
488  $this->expectException(SchemaException::class);
489  $result[0]->getColumn('l10n_parent');
490  }
491 
495  public function ‪enrichAddsDescription()
496  {
497  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
498  'descriptionColumn' => 'rowDescription',
499  ];
500  $result = $this->subject->enrich([$this->defaultTable]);
501  $expectedColumn = new Column(
502  '`rowDescription`',
503  Type::getType('text'),
504  [
505  'notnull' => false,
506  'length' => 65535,
507  ]
508  );
509  $this->assertEquals($expectedColumn, $result[0]->getColumn('rowDescription'));
510  }
511 
515  public function ‪enrichAddsEditlock()
516  {
517  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
518  'editlock' => 'editlock'
519  ];
520  $result = $this->subject->enrich([$this->defaultTable]);
521  $expectedColumn = new Column(
522  '`editlock`',
523  Type::getType('smallint'),
524  [
525  'default' => 0,
526  'notnull' => true,
527  'unsigned' => true,
528  ]
529  );
530  $this->assertEquals($expectedColumn, $result[0]->getColumn('editlock'));
531  }
532 
536  public function ‪enrichAddsL10nSource()
537  {
538  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
539  'languageField' => 'sys_language_uid',
540  'translationSource' => 'l10n_source',
541  ];
542  $result = $this->subject->enrich([$this->defaultTable]);
543  $expectedColumn = new Column(
544  '`l10n_source`',
545  Type::getType('integer'),
546  [
547  'default' => 0,
548  'notnull' => true,
549  'unsigned' => true,
550  ]
551  );
552  $this->assertEquals($expectedColumn, $result[0]->getColumn('l10n_source'));
553  }
554 
559  {
560  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
561  'translationSource' => 'l10n_source',
562  ];
563  $result = $this->subject->enrich([$this->defaultTable]);
564  $this->expectException(SchemaException::class);
565  $result[0]->getColumn('l10n_source');
566  }
567 
571  public function ‪enrichAddsL10nState()
572  {
573  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
574  'languageField' => 'sys_language_uid',
575  'transOrigPointerField' => 'l10n_parent',
576  ];
577  $result = $this->subject->enrich([$this->defaultTable]);
578  $expectedColumn = new Column(
579  '`l10n_state`',
580  Type::getType('text'),
581  [
582  'notnull' => false,
583  'length' => 65535,
584  ]
585  );
586  $this->assertEquals($expectedColumn, $result[0]->getColumn('l10n_state'));
587  }
588 
593  {
594  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
595  'transOrigPointerField' => 'l10n_parent',
596  ];
597  $result = $this->subject->enrich([$this->defaultTable]);
598  $this->expectException(SchemaException::class);
599  $result[0]->getColumn('l10n_state');
600  }
601 
606  {
607  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
608  'languageField' => 'sys_language_uid',
609  ];
610  $result = $this->subject->enrich([$this->defaultTable]);
611  $this->expectException(SchemaException::class);
612  $result[0]->getColumn('l10n_state');
613  }
614 
618  public function ‪enrichAddsT3origUid()
619  {
620  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
621  'origUid' => 't3_origuid',
622  ];
623  $result = $this->subject->enrich([$this->defaultTable]);
624  $expectedColumn = new Column(
625  '`t3_origuid`',
626  Type::getType('integer'),
627  [
628  'default' => 0,
629  'notnull' => true,
630  'unsigned' => true,
631  ]
632  );
633  $this->assertEquals($expectedColumn, $result[0]->getColumn('t3_origuid'));
634  }
635 
639  public function ‪enrichAddsL10nDiffsource()
640  {
641  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
642  'transOrigDiffSourceField' => 'l18n_diffsource',
643  ];
644  $result = $this->subject->enrich([$this->defaultTable]);
645  $expectedColumn = new Column(
646  '`l18n_diffsource`',
647  Type::getType('blob'),
648  [
649  'length' => 16777215,
650  'notnull' => false,
651  ]
652  );
653  $this->assertEquals($expectedColumn, $result[0]->getColumn('l18n_diffsource'));
654  }
655 
659  public function ‪enrichAddsT3verOid()
660  {
661  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
662  'versioningWS' => true,
663  ];
664  $result = $this->subject->enrich([$this->defaultTable]);
665  $expectedColumn = new Column(
666  '`t3ver_oid`',
667  Type::getType('integer'),
668  [
669  'default' => 0,
670  'notnull' => true,
671  'unsigned' => true,
672  ]
673  );
674  $this->assertEquals($expectedColumn, $result[0]->getColumn('t3ver_oid'));
675  }
676 
680  public function ‪enrichAddsT3verId()
681  {
682  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
683  'versioningWS' => true,
684  ];
685  $result = $this->subject->enrich([$this->defaultTable]);
686  $expectedColumn = new Column(
687  '`t3ver_id`',
688  Type::getType('integer'),
689  [
690  'default' => 0,
691  'notnull' => true,
692  'unsigned' => true,
693  ]
694  );
695  $this->assertEquals($expectedColumn, $result[0]->getColumn('t3ver_id'));
696  }
697 
701  public function ‪enrichAddsT3verLabel()
702  {
703  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
704  'versioningWS' => true,
705  ];
706  $result = $this->subject->enrich([$this->defaultTable]);
707  $expectedColumn = new Column(
708  '`t3ver_label`',
709  Type::getType('string'),
710  [
711  'default' => '',
712  'notnull' => true,
713  'length' => 255,
714  ]
715  );
716  $this->assertEquals($expectedColumn, $result[0]->getColumn('t3ver_label'));
717  }
718 
722  public function ‪enrichAddsT3verWsid()
723  {
724  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
725  'versioningWS' => true,
726  ];
727  $result = $this->subject->enrich([$this->defaultTable]);
728  $expectedColumn = new Column(
729  '`t3ver_wsid`',
730  Type::getType('integer'),
731  [
732  'default' => 0,
733  'notnull' => true,
734  'unsigned' => true,
735  ]
736  );
737  $this->assertEquals($expectedColumn, $result[0]->getColumn('t3ver_wsid'));
738  }
739 
743  public function ‪enrichAddsT3verState()
744  {
745  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
746  'versioningWS' => true,
747  ];
748  $result = $this->subject->enrich([$this->defaultTable]);
749  $expectedColumn = new Column(
750  '`t3ver_state`',
751  Type::getType('smallint'),
752  [
753  'default' => 0,
754  'notnull' => true,
755  'unsigned' => false,
756  ]
757  );
758  $this->assertEquals($expectedColumn, $result[0]->getColumn('t3ver_state'));
759  }
760 
764  public function ‪enrichAddsT3verStage()
765  {
766  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
767  'versioningWS' => true,
768  ];
769  $result = $this->subject->enrich([$this->defaultTable]);
770  $expectedColumn = new Column(
771  '`t3ver_stage`',
772  Type::getType('integer'),
773  [
774  'default' => 0,
775  'notnull' => true,
776  'unsigned' => false,
777  ]
778  );
779  $this->assertEquals($expectedColumn, $result[0]->getColumn('t3ver_stage'));
780  }
781 
785  public function ‪enrichAddsT3verCount()
786  {
787  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
788  'versioningWS' => true,
789  ];
790  $result = $this->subject->enrich([$this->defaultTable]);
791  $expectedColumn = new Column(
792  '`t3ver_count`',
793  Type::getType('integer'),
794  [
795  'default' => 0,
796  'notnull' => true,
797  'unsigned' => true,
798  ]
799  );
800  $this->assertEquals($expectedColumn, $result[0]->getColumn('t3ver_count'));
801  }
802 
806  public function ‪enrichAddsT3verTstamp()
807  {
808  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
809  'versioningWS' => true,
810  ];
811  $result = $this->subject->enrich([$this->defaultTable]);
812  $expectedColumn = new Column(
813  '`t3ver_tstamp`',
814  Type::getType('integer'),
815  [
816  'default' => 0,
817  'notnull' => true,
818  'unsigned' => true,
819  ]
820  );
821  $this->assertEquals($expectedColumn, $result[0]->getColumn('t3ver_tstamp'));
822  }
823 
827  public function ‪enrichAddsT3verMoveId()
828  {
829  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
830  'versioningWS' => true,
831  ];
832  $result = $this->subject->enrich([$this->defaultTable]);
833  $expectedColumn = new Column(
834  '`t3ver_move_id`',
835  Type::getType('integer'),
836  [
837  'default' => 0,
838  'notnull' => true,
839  'unsigned' => true,
840  ]
841  );
842  $this->assertEquals($expectedColumn, $result[0]->getColumn('t3ver_move_id'));
843  }
844 
848  public function ‪enrichAddsT3verOidIndex()
849  {
850  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
851  'versioningWS' => true,
852  ];
853  $result = $this->subject->enrich([$this->defaultTable]);
854  $expectedIndex = new Index('t3ver_oid', ['t3ver_oid', 't3ver_wsid']);
855  $this->assertEquals($expectedIndex, $result[0]->getIndex('t3ver_oid'));
856  }
857 }
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsL10nDiffsource
‪enrichAddsL10nDiffsource()
Definition: DefaultTcaSchemaTest.php:637
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichDoesNotAddL10nStateIfTransOrigPointerFieldIsNotDefined
‪enrichDoesNotAddL10nStateIfTransOrigPointerFieldIsNotDefined()
Definition: DefaultTcaSchemaTest.php:603
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsStarttime
‪enrichAddsStarttime()
Definition: DefaultTcaSchemaTest.php:292
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsParentKeyWithDisabled
‪enrichAddsParentKeyWithDisabled()
Definition: DefaultTcaSchemaTest.php:406
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichDoesNotAddL10nStateIfLanguageFieldIsNotDefined
‪enrichDoesNotAddL10nStateIfLanguageFieldIsNotDefined()
Definition: DefaultTcaSchemaTest.php:590
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsT3verState
‪enrichAddsT3verState()
Definition: DefaultTcaSchemaTest.php:741
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsFegroup
‪enrichAddsFegroup()
Definition: DefaultTcaSchemaTest.php:338
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichKeepsGivenTablesArrayWithEmptyTca
‪enrichKeepsGivenTablesArrayWithEmptyTca()
Definition: DefaultTcaSchemaTest.php:50
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsT3verWsid
‪enrichAddsT3verWsid()
Definition: DefaultTcaSchemaTest.php:720
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsDeleted
‪enrichAddsDeleted()
Definition: DefaultTcaSchemaTest.php:248
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsCrdate
‪enrichAddsCrdate()
Definition: DefaultTcaSchemaTest.php:206
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema
Definition: ConnectionMigratorTest.php:4
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsT3verOidIndex
‪enrichAddsT3verOidIndex()
Definition: DefaultTcaSchemaTest.php:846
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsT3origUid
‪enrichAddsT3origUid()
Definition: DefaultTcaSchemaTest.php:616
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichDoesNotAddL10nParentIfLanguageFieldIsNotDefined
‪enrichDoesNotAddL10nParentIfLanguageFieldIsNotDefined()
Definition: DefaultTcaSchemaTest.php:480
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\$subject
‪DefaultTcaSchema $subject
Definition: DefaultTcaSchemaTest.php:34
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsParentKey
‪enrichAddsParentKey()
Definition: DefaultTcaSchemaTest.php:382
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsDescription
‪enrichAddsDescription()
Definition: DefaultTcaSchemaTest.php:493
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsT3verMoveId
‪enrichAddsT3verMoveId()
Definition: DefaultTcaSchemaTest.php:825
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\$defaultTable
‪Table $defaultTable
Definition: DefaultTcaSchemaTest.php:38
‪TYPO3\CMS\Core\Database\Schema\DefaultTcaSchema
Definition: DefaultTcaSchema.php:35
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsDisabled
‪enrichAddsDisabled()
Definition: DefaultTcaSchemaTest.php:269
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsEndtime
‪enrichAddsEndtime()
Definition: DefaultTcaSchemaTest.php:315
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsT3verLabel
‪enrichAddsT3verLabel()
Definition: DefaultTcaSchemaTest.php:699
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsSignedPidWithEnabledWorkspace
‪enrichAddsSignedPidWithEnabledWorkspace()
Definition: DefaultTcaSchemaTest.php:164
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsT3verId
‪enrichAddsT3verId()
Definition: DefaultTcaSchemaTest.php:678
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsParentKeyWithDelete
‪enrichAddsParentKeyWithDelete()
Definition: DefaultTcaSchemaTest.php:393
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsSorting
‪enrichAddsSorting()
Definition: DefaultTcaSchemaTest.php:361
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsL10nSource
‪enrichAddsL10nSource()
Definition: DefaultTcaSchemaTest.php:534
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichDoesNotAddColumnIfTableExistsMultipleTimesAndUidExists
‪enrichDoesNotAddColumnIfTableExistsMultipleTimesAndUidExists()
Definition: DefaultTcaSchemaTest.php:79
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsT3verStage
‪enrichAddsT3verStage()
Definition: DefaultTcaSchemaTest.php:762
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsUidAndPrimaryKey
‪enrichAddsUidAndPrimaryKey()
Definition: DefaultTcaSchemaTest.php:124
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsSysLanguageUid
‪enrichAddsSysLanguageUid()
Definition: DefaultTcaSchemaTest.php:437
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsT3verTstamp
‪enrichAddsT3verTstamp()
Definition: DefaultTcaSchemaTest.php:804
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsL10nState
‪enrichAddsL10nState()
Definition: DefaultTcaSchemaTest.php:569
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsL10nParent
‪enrichAddsL10nParent()
Definition: DefaultTcaSchemaTest.php:458
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsCruserid
‪enrichAddsCruserid()
Definition: DefaultTcaSchemaTest.php:227
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsParentKeyInCorrectOrder
‪enrichAddsParentKeyInCorrectOrder()
Definition: DefaultTcaSchemaTest.php:421
‪$GLOBALS
‪$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['adminpanel']['modules']
Definition: ext_localconf.php:5
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichDoesNotAddL10nSourceIfLanguageFieldIsNotDefined
‪enrichDoesNotAddL10nSourceIfLanguageFieldIsNotDefined()
Definition: DefaultTcaSchemaTest.php:556
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichDoesNotAddColumnIfExists
‪enrichDoesNotAddColumnIfExists()
Definition: DefaultTcaSchemaTest.php:59
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsPid
‪enrichAddsPid()
Definition: DefaultTcaSchemaTest.php:145
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsT3verOid
‪enrichAddsT3verOid()
Definition: DefaultTcaSchemaTest.php:657
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsEditlock
‪enrichAddsEditlock()
Definition: DefaultTcaSchemaTest.php:513
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsTstamp
‪enrichAddsTstamp()
Definition: DefaultTcaSchemaTest.php:185
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsT3verCount
‪enrichAddsT3verCount()
Definition: DefaultTcaSchemaTest.php:783
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsFieldToFirstTableDefinitionOfThatName
‪enrichAddsFieldToFirstTableDefinitionOfThatName()
Definition: DefaultTcaSchemaTest.php:105
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest
Definition: DefaultTcaSchemaTest.php:31
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\setUp
‪setUp()
Definition: DefaultTcaSchemaTest.php:40