‪TYPO3CMS  10.4
DefaultTcaSchemaTest.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
20 use Doctrine\DBAL\Schema\Column;
21 use Doctrine\DBAL\Schema\Index;
22 use Doctrine\DBAL\Schema\SchemaException;
23 use Doctrine\DBAL\Schema\Table;
24 use Doctrine\DBAL\Types\Type;
26 use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
27 
31 class ‪DefaultTcaSchemaTest extends UnitTestCase
32 {
36  protected ‪$subject;
37 
41  protected ‪$defaultTable;
42 
43  public function ‪setUp(): void
44  {
45  parent::setUp();
46  $this->subject = new ‪DefaultTcaSchema();
47  $this->defaultTable = new Table('aTable');
48  }
49 
54  {
55  ‪$GLOBALS['TCA'] = [];
56  self::assertEquals([$this->defaultTable], $this->subject->enrich([$this->defaultTable]));
57  }
58 
62  public function ‪enrichDoesNotAddColumnIfExists()
63  {
64  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [];
65 
66  $table = new Table('aTable');
67  $table->addColumn('uid', 'integer');
68  $table->addColumn('pid', 'integer');
69  $input = [];
70  $input[] = $table;
71 
72  $table = new Table('aTable');
73  $table->addColumn('uid', 'integer');
74  $table->addColumn('pid', 'integer');
75  $expected = [];
76  $expected[] = $table;
77 
78  self::assertEquals($expected, $this->subject->enrich($input));
79  }
80 
85  {
86  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [];
87 
88  $table = new Table('aTable');
89  $table->addColumn('foo', 'integer');
90  $input = [];
91  $input[] = $table;
92  $table = new Table('aTable');
93  $table->addColumn('uid', 'integer');
94  $table->addColumn('pid', 'integer');
95  $input[] = $table;
96 
97  $table = new Table('aTable');
98  $table->addColumn('foo', 'integer');
99  $expected = [];
100  $expected[] = $table;
101  $table = new Table('aTable');
102  $table->addColumn('uid', 'integer');
103  $table->addColumn('pid', 'integer');
104  $expected[] = $table;
105 
106  self::assertEquals($expected, $this->subject->enrich($input));
107  }
108 
113  {
114  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [];
115 
116  $table = new Table('aTable');
117  $table->addColumn('foo', 'integer');
118  $input = [];
119  $input[] = $table;
120  $table = new Table('aTable');
121  $table->addColumn('bar', 'integer');
122  $input[] = $table;
123 
124  $result = $this->subject->enrich($input);
125 
126  self::assertInstanceOf(Column::class, $result[0]->getColumn('uid'));
127  }
128 
132  public function ‪enrichAddsUidAndPrimaryKey()
133  {
134  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [];
135  $result = $this->subject->enrich([$this->defaultTable]);
136  $expectedUidColumn = new Column(
137  '`uid`',
138  Type::getType('integer'),
139  [
140  'notnull' => true,
141  'unsigned' => true,
142  'autoincrement' => true,
143  ]
144  );
145  $expectedPrimaryKey = new Index('primary', ['uid'], true, true);
146  self::assertEquals($expectedUidColumn, $result[0]->getColumn('uid'));
147  self::assertEquals($expectedPrimaryKey, $result[0]->getPrimaryKey());
148  }
149 
153  public function ‪enrichAddsPid()
154  {
155  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [];
156  $result = $this->subject->enrich([$this->defaultTable]);
157  $expectedPidColumn = new Column(
158  '`pid`',
159  Type::getType('integer'),
160  [
161  'default' => 0,
162  'notnull' => true,
163  'unsigned' => true,
164  ]
165  );
166  self::assertEquals($expectedPidColumn, $result[0]->getColumn('pid'));
167  }
168 
173  {
174  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
175  'versioningWS' => true,
176  ];
177  $result = $this->subject->enrich([$this->defaultTable]);
178  $expectedPidColumn = new Column(
179  '`pid`',
180  Type::getType('integer'),
181  [
182  'default' => 0,
183  'notnull' => true,
184  'unsigned' => false,
185  ]
186  );
187  self::assertEquals($expectedPidColumn, $result[0]->getColumn('pid'));
188  }
189 
193  public function ‪enrichAddsTstamp()
194  {
195  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
196  'tstamp' => 'updatedon',
197  ];
198  $result = $this->subject->enrich([$this->defaultTable]);
199  $expectedColumn = new Column(
200  '`updatedon`',
201  Type::getType('integer'),
202  [
203  'default' => 0,
204  'notnull' => true,
205  'unsigned' => true,
206  ]
207  );
208  self::assertEquals($expectedColumn, $result[0]->getColumn('updatedon'));
209  }
210 
214  public function ‪enrichAddsCrdate()
215  {
216  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
217  'crdate' => 'createdon',
218  ];
219  $result = $this->subject->enrich([$this->defaultTable]);
220  $expectedColumn = new Column(
221  '`createdon`',
222  Type::getType('integer'),
223  [
224  'default' => 0,
225  'notnull' => true,
226  'unsigned' => true,
227  ]
228  );
229  self::assertEquals($expectedColumn, $result[0]->getColumn('createdon'));
230  }
231 
235  public function ‪enrichAddsCruserid()
236  {
237  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
238  'cruser_id' => 'createdby',
239  ];
240  $result = $this->subject->enrich([$this->defaultTable]);
241  $expectedColumn = new Column(
242  '`createdby`',
243  Type::getType('integer'),
244  [
245  'default' => 0,
246  'notnull' => true,
247  'unsigned' => true,
248  ]
249  );
250  self::assertEquals($expectedColumn, $result[0]->getColumn('createdby'));
251  }
252 
256  public function ‪enrichAddsDeleted()
257  {
258  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
259  'delete' => 'deleted',
260  ];
261  $result = $this->subject->enrich([$this->defaultTable]);
262  $expectedColumn = new Column(
263  '`deleted`',
264  Type::getType('smallint'),
265  [
266  'default' => 0,
267  'notnull' => true,
268  'unsigned' => true,
269  ]
270  );
271  self::assertEquals($expectedColumn, $result[0]->getColumn('deleted'));
272  }
273 
277  public function ‪enrichAddsDisabled()
278  {
279  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
280  'enablecolumns' => [
281  'disabled' => 'disabled',
282  ]
283  ];
284  $result = $this->subject->enrich([$this->defaultTable]);
285  $expectedColumn = new Column(
286  '`disabled`',
287  Type::getType('smallint'),
288  [
289  'default' => 0,
290  'notnull' => true,
291  'unsigned' => true,
292  ]
293  );
294  self::assertEquals($expectedColumn, $result[0]->getColumn('disabled'));
295  }
296 
300  public function ‪enrichAddsStarttime()
301  {
302  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
303  'enablecolumns' => [
304  'starttime' => 'starttime',
305  ]
306  ];
307  $result = $this->subject->enrich([$this->defaultTable]);
308  $expectedColumn = new Column(
309  '`starttime`',
310  Type::getType('integer'),
311  [
312  'default' => 0,
313  'notnull' => true,
314  'unsigned' => true,
315  ]
316  );
317  self::assertEquals($expectedColumn, $result[0]->getColumn('starttime'));
318  }
319 
323  public function ‪enrichAddsEndtime()
324  {
325  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
326  'enablecolumns' => [
327  'endtime' => 'endtime',
328  ]
329  ];
330  $result = $this->subject->enrich([$this->defaultTable]);
331  $expectedColumn = new Column(
332  '`endtime`',
333  Type::getType('integer'),
334  [
335  'default' => 0,
336  'notnull' => true,
337  'unsigned' => true,
338  ]
339  );
340  self::assertEquals($expectedColumn, $result[0]->getColumn('endtime'));
341  }
342 
346  public function ‪enrichAddsFegroup()
347  {
348  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
349  'enablecolumns' => [
350  'fe_group' => 'fe_group',
351  ]
352  ];
353  $result = $this->subject->enrich([$this->defaultTable]);
354  $expectedColumn = new Column(
355  '`fe_group`',
356  Type::getType('string'),
357  [
358  'default' => '0',
359  'notnull' => true,
360  'length' => 255,
361  ]
362  );
363  self::assertEquals($expectedColumn, $result[0]->getColumn('fe_group'));
364  }
365 
369  public function ‪enrichAddsSorting()
370  {
371  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
372  'sortby' => 'sorting',
373  ];
374  $result = $this->subject->enrich([$this->defaultTable]);
375  $expectedColumn = new Column(
376  '`sorting`',
377  Type::getType('integer'),
378  [
379  'default' => '0',
380  'notnull' => true,
381  'unsigned' => false,
382  ]
383  );
384  self::assertEquals($expectedColumn, $result[0]->getColumn('sorting'));
385  }
386 
390  public function ‪enrichAddsParentKey()
391  {
392  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [];
393  $result = $this->subject->enrich([$this->defaultTable]);
394  $expectedIndex = new Index('parent', ['pid']);
395  self::assertEquals($expectedIndex, $result[0]->getIndex('parent'));
396  }
397 
401  public function ‪enrichAddsParentKeyWithDelete()
402  {
403  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
404  'delete' => 'deleted',
405  ];
406  $result = $this->subject->enrich([$this->defaultTable]);
407  $expectedIndex = new Index('parent', ['pid', 'deleted']);
408  self::assertEquals($expectedIndex, $result[0]->getIndex('parent'));
409  }
410 
414  public function ‪enrichAddsParentKeyWithDisabled()
415  {
416  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
417  'enablecolumns' => [
418  'disabled' => 'disabled',
419  ],
420  ];
421  $result = $this->subject->enrich([$this->defaultTable]);
422  $expectedIndex = new Index('parent', ['pid', 'disabled']);
423  self::assertEquals($expectedIndex, $result[0]->getIndex('parent'));
424  }
425 
429  public function ‪enrichAddsParentKeyInCorrectOrder()
430  {
431  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
432  'delete' => 'deleted',
433  'enablecolumns' => [
434  'disabled' => 'disabled',
435  ],
436  ];
437  $result = $this->subject->enrich([$this->defaultTable]);
438  $expectedIndex = new Index('parent', ['pid', 'deleted', 'disabled']);
439  self::assertEquals($expectedIndex, $result[0]->getIndex('parent'));
440  }
441 
445  public function ‪enrichAddsSysLanguageUid()
446  {
447  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
448  'languageField' => 'sys_language_uid',
449  ];
450  $result = $this->subject->enrich([$this->defaultTable]);
451  $expectedColumn = new Column(
452  '`sys_language_uid`',
453  Type::getType('integer'),
454  [
455  'default' => 0,
456  'notnull' => true,
457  'unsigned' => false,
458  ]
459  );
460  self::assertEquals($expectedColumn, $result[0]->getColumn('sys_language_uid'));
461  }
462 
466  public function ‪enrichAddsL10nParent()
467  {
468  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
469  'languageField' => 'sys_language_uid',
470  'transOrigPointerField' => 'l10n_parent',
471  ];
472  $result = $this->subject->enrich([$this->defaultTable]);
473  $expectedColumn = new Column(
474  '`l10n_parent`',
475  Type::getType('integer'),
476  [
477  'default' => 0,
478  'notnull' => true,
479  'unsigned' => true,
480  ]
481  );
482  self::assertEquals($expectedColumn, $result[0]->getColumn('l10n_parent'));
483  }
484 
489  {
490  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
491  'transOrigPointerField' => 'l10n_parent',
492  ];
493  $result = $this->subject->enrich([$this->defaultTable]);
494  $this->expectException(SchemaException::class);
495  $result[0]->getColumn('l10n_parent');
496  }
497 
501  public function ‪enrichAddsDescription()
502  {
503  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
504  'descriptionColumn' => 'rowDescription',
505  ];
506  $result = $this->subject->enrich([$this->defaultTable]);
507  $expectedColumn = new Column(
508  '`rowDescription`',
509  Type::getType('text'),
510  [
511  'notnull' => false,
512  'length' => 65535,
513  ]
514  );
515  self::assertEquals($expectedColumn, $result[0]->getColumn('rowDescription'));
516  }
517 
521  public function ‪enrichAddsEditlock()
522  {
523  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
524  'editlock' => 'editlock'
525  ];
526  $result = $this->subject->enrich([$this->defaultTable]);
527  $expectedColumn = new Column(
528  '`editlock`',
529  Type::getType('smallint'),
530  [
531  'default' => 0,
532  'notnull' => true,
533  'unsigned' => true,
534  ]
535  );
536  self::assertEquals($expectedColumn, $result[0]->getColumn('editlock'));
537  }
538 
542  public function ‪enrichAddsL10nSource()
543  {
544  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
545  'languageField' => 'sys_language_uid',
546  'translationSource' => 'l10n_source',
547  ];
548  $result = $this->subject->enrich([$this->defaultTable]);
549  $expectedColumn = new Column(
550  '`l10n_source`',
551  Type::getType('integer'),
552  [
553  'default' => 0,
554  'notnull' => true,
555  'unsigned' => true,
556  ]
557  );
558  self::assertEquals($expectedColumn, $result[0]->getColumn('l10n_source'));
559  }
560 
565  {
566  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
567  'translationSource' => 'l10n_source',
568  ];
569  $result = $this->subject->enrich([$this->defaultTable]);
570  $this->expectException(SchemaException::class);
571  $result[0]->getColumn('l10n_source');
572  }
573 
577  public function ‪enrichAddsL10nState()
578  {
579  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
580  'languageField' => 'sys_language_uid',
581  'transOrigPointerField' => 'l10n_parent',
582  ];
583  $result = $this->subject->enrich([$this->defaultTable]);
584  $expectedColumn = new Column(
585  '`l10n_state`',
586  Type::getType('text'),
587  [
588  'notnull' => false,
589  'length' => 65535,
590  ]
591  );
592  self::assertEquals($expectedColumn, $result[0]->getColumn('l10n_state'));
593  }
594 
599  {
600  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
601  'transOrigPointerField' => 'l10n_parent',
602  ];
603  $result = $this->subject->enrich([$this->defaultTable]);
604  $this->expectException(SchemaException::class);
605  $result[0]->getColumn('l10n_state');
606  }
607 
612  {
613  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
614  'languageField' => 'sys_language_uid',
615  ];
616  $result = $this->subject->enrich([$this->defaultTable]);
617  $this->expectException(SchemaException::class);
618  $result[0]->getColumn('l10n_state');
619  }
620 
624  public function ‪enrichAddsT3origUid()
625  {
626  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
627  'origUid' => 't3_origuid',
628  ];
629  $result = $this->subject->enrich([$this->defaultTable]);
630  $expectedColumn = new Column(
631  '`t3_origuid`',
632  Type::getType('integer'),
633  [
634  'default' => 0,
635  'notnull' => true,
636  'unsigned' => true,
637  ]
638  );
639  self::assertEquals($expectedColumn, $result[0]->getColumn('t3_origuid'));
640  }
641 
645  public function ‪enrichAddsL10nDiffsource()
646  {
647  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
648  'transOrigDiffSourceField' => 'l18n_diffsource',
649  ];
650  $result = $this->subject->enrich([$this->defaultTable]);
651  $expectedColumn = new Column(
652  '`l18n_diffsource`',
653  Type::getType('blob'),
654  [
655  'length' => 16777215,
656  'notnull' => false,
657  ]
658  );
659  self::assertEquals($expectedColumn, $result[0]->getColumn('l18n_diffsource'));
660  }
661 
665  public function ‪enrichAddsT3verOid()
666  {
667  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
668  'versioningWS' => true,
669  ];
670  $result = $this->subject->enrich([$this->defaultTable]);
671  $expectedColumn = new Column(
672  '`t3ver_oid`',
673  Type::getType('integer'),
674  [
675  'default' => 0,
676  'notnull' => true,
677  'unsigned' => true,
678  ]
679  );
680  self::assertEquals($expectedColumn, $result[0]->getColumn('t3ver_oid'));
681  }
682 
686  public function ‪enrichAddsT3verWsid()
687  {
688  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
689  'versioningWS' => true,
690  ];
691  $result = $this->subject->enrich([$this->defaultTable]);
692  $expectedColumn = new Column(
693  '`t3ver_wsid`',
694  Type::getType('integer'),
695  [
696  'default' => 0,
697  'notnull' => true,
698  'unsigned' => true,
699  ]
700  );
701  self::assertEquals($expectedColumn, $result[0]->getColumn('t3ver_wsid'));
702  }
703 
707  public function ‪enrichAddsT3verState()
708  {
709  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
710  'versioningWS' => true,
711  ];
712  $result = $this->subject->enrich([$this->defaultTable]);
713  $expectedColumn = new Column(
714  '`t3ver_state`',
715  Type::getType('smallint'),
716  [
717  'default' => 0,
718  'notnull' => true,
719  'unsigned' => false,
720  ]
721  );
722  self::assertEquals($expectedColumn, $result[0]->getColumn('t3ver_state'));
723  }
724 
728  public function ‪enrichAddsT3verStage()
729  {
730  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
731  'versioningWS' => true,
732  ];
733  $result = $this->subject->enrich([$this->defaultTable]);
734  $expectedColumn = new Column(
735  '`t3ver_stage`',
736  Type::getType('integer'),
737  [
738  'default' => 0,
739  'notnull' => true,
740  'unsigned' => false,
741  ]
742  );
743  self::assertEquals($expectedColumn, $result[0]->getColumn('t3ver_stage'));
744  }
745 
749  public function ‪enrichAddsT3verCount()
750  {
751  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
752  'versioningWS' => true,
753  ];
754  $result = $this->subject->enrich([$this->defaultTable]);
755  $expectedColumn = new Column(
756  '`t3ver_count`',
757  Type::getType('integer'),
758  [
759  'default' => 0,
760  'notnull' => true,
761  'unsigned' => true,
762  ]
763  );
764  self::assertEquals($expectedColumn, $result[0]->getColumn('t3ver_count'));
765  }
766 
770  public function ‪enrichAddsT3verTstamp()
771  {
772  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
773  'versioningWS' => true,
774  ];
775  $result = $this->subject->enrich([$this->defaultTable]);
776  $expectedColumn = new Column(
777  '`t3ver_tstamp`',
778  Type::getType('integer'),
779  [
780  'default' => 0,
781  'notnull' => true,
782  'unsigned' => true,
783  ]
784  );
785  self::assertEquals($expectedColumn, $result[0]->getColumn('t3ver_tstamp'));
786  }
787 
791  public function ‪enrichAddsT3verMoveId()
792  {
793  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
794  'versioningWS' => true,
795  ];
796  $result = $this->subject->enrich([$this->defaultTable]);
797  $expectedColumn = new Column(
798  '`t3ver_move_id`',
799  Type::getType('integer'),
800  [
801  'default' => 0,
802  'notnull' => true,
803  'unsigned' => true,
804  ]
805  );
806  self::assertEquals($expectedColumn, $result[0]->getColumn('t3ver_move_id'));
807  }
808 
812  public function ‪enrichAddsT3verOidIndex()
813  {
814  ‪$GLOBALS['TCA']['aTable']['ctrl'] = [
815  'versioningWS' => true,
816  ];
817  $result = $this->subject->enrich([$this->defaultTable]);
818  $expectedIndex = new Index('t3ver_oid', ['t3ver_oid', 't3ver_wsid']);
819  self::assertEquals($expectedIndex, $result[0]->getIndex('t3ver_oid'));
820  }
821 }
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsL10nDiffsource
‪enrichAddsL10nDiffsource()
Definition: DefaultTcaSchemaTest.php:643
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichDoesNotAddL10nStateIfTransOrigPointerFieldIsNotDefined
‪enrichDoesNotAddL10nStateIfTransOrigPointerFieldIsNotDefined()
Definition: DefaultTcaSchemaTest.php:609
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsStarttime
‪enrichAddsStarttime()
Definition: DefaultTcaSchemaTest.php:298
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsParentKeyWithDisabled
‪enrichAddsParentKeyWithDisabled()
Definition: DefaultTcaSchemaTest.php:412
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichDoesNotAddL10nStateIfLanguageFieldIsNotDefined
‪enrichDoesNotAddL10nStateIfLanguageFieldIsNotDefined()
Definition: DefaultTcaSchemaTest.php:596
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsT3verState
‪enrichAddsT3verState()
Definition: DefaultTcaSchemaTest.php:705
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsFegroup
‪enrichAddsFegroup()
Definition: DefaultTcaSchemaTest.php:344
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichKeepsGivenTablesArrayWithEmptyTca
‪enrichKeepsGivenTablesArrayWithEmptyTca()
Definition: DefaultTcaSchemaTest.php:51
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsT3verWsid
‪enrichAddsT3verWsid()
Definition: DefaultTcaSchemaTest.php:684
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsDeleted
‪enrichAddsDeleted()
Definition: DefaultTcaSchemaTest.php:254
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsCrdate
‪enrichAddsCrdate()
Definition: DefaultTcaSchemaTest.php:212
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema
Definition: ConnectionMigratorTest.php:18
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsT3verOidIndex
‪enrichAddsT3verOidIndex()
Definition: DefaultTcaSchemaTest.php:810
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsT3origUid
‪enrichAddsT3origUid()
Definition: DefaultTcaSchemaTest.php:622
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichDoesNotAddL10nParentIfLanguageFieldIsNotDefined
‪enrichDoesNotAddL10nParentIfLanguageFieldIsNotDefined()
Definition: DefaultTcaSchemaTest.php:486
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\$subject
‪DefaultTcaSchema $subject
Definition: DefaultTcaSchemaTest.php:35
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsParentKey
‪enrichAddsParentKey()
Definition: DefaultTcaSchemaTest.php:388
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsDescription
‪enrichAddsDescription()
Definition: DefaultTcaSchemaTest.php:499
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsT3verMoveId
‪enrichAddsT3verMoveId()
Definition: DefaultTcaSchemaTest.php:789
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\$defaultTable
‪Table $defaultTable
Definition: DefaultTcaSchemaTest.php:39
‪TYPO3\CMS\Core\Database\Schema\DefaultTcaSchema
Definition: DefaultTcaSchema.php:36
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsDisabled
‪enrichAddsDisabled()
Definition: DefaultTcaSchemaTest.php:275
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsEndtime
‪enrichAddsEndtime()
Definition: DefaultTcaSchemaTest.php:321
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsSignedPidWithEnabledWorkspace
‪enrichAddsSignedPidWithEnabledWorkspace()
Definition: DefaultTcaSchemaTest.php:170
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsParentKeyWithDelete
‪enrichAddsParentKeyWithDelete()
Definition: DefaultTcaSchemaTest.php:399
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsSorting
‪enrichAddsSorting()
Definition: DefaultTcaSchemaTest.php:367
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsL10nSource
‪enrichAddsL10nSource()
Definition: DefaultTcaSchemaTest.php:540
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichDoesNotAddColumnIfTableExistsMultipleTimesAndUidExists
‪enrichDoesNotAddColumnIfTableExistsMultipleTimesAndUidExists()
Definition: DefaultTcaSchemaTest.php:82
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsT3verStage
‪enrichAddsT3verStage()
Definition: DefaultTcaSchemaTest.php:726
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsUidAndPrimaryKey
‪enrichAddsUidAndPrimaryKey()
Definition: DefaultTcaSchemaTest.php:130
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsSysLanguageUid
‪enrichAddsSysLanguageUid()
Definition: DefaultTcaSchemaTest.php:443
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsT3verTstamp
‪enrichAddsT3verTstamp()
Definition: DefaultTcaSchemaTest.php:768
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsL10nState
‪enrichAddsL10nState()
Definition: DefaultTcaSchemaTest.php:575
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsL10nParent
‪enrichAddsL10nParent()
Definition: DefaultTcaSchemaTest.php:464
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsCruserid
‪enrichAddsCruserid()
Definition: DefaultTcaSchemaTest.php:233
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsParentKeyInCorrectOrder
‪enrichAddsParentKeyInCorrectOrder()
Definition: DefaultTcaSchemaTest.php:427
‪$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:562
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichDoesNotAddColumnIfExists
‪enrichDoesNotAddColumnIfExists()
Definition: DefaultTcaSchemaTest.php:60
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsPid
‪enrichAddsPid()
Definition: DefaultTcaSchemaTest.php:151
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsT3verOid
‪enrichAddsT3verOid()
Definition: DefaultTcaSchemaTest.php:663
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsEditlock
‪enrichAddsEditlock()
Definition: DefaultTcaSchemaTest.php:519
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsTstamp
‪enrichAddsTstamp()
Definition: DefaultTcaSchemaTest.php:191
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsT3verCount
‪enrichAddsT3verCount()
Definition: DefaultTcaSchemaTest.php:747
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\enrichAddsFieldToFirstTableDefinitionOfThatName
‪enrichAddsFieldToFirstTableDefinitionOfThatName()
Definition: DefaultTcaSchemaTest.php:110
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest
Definition: DefaultTcaSchemaTest.php:32
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\DefaultTcaSchemaTest\setUp
‪setUp()
Definition: DefaultTcaSchemaTest.php:41