28
28
use TYPO3 \CMS \Core \Database \Connection ;
29
29
use TYPO3 \CMS \Core \Database \Platform \PlatformInformation ;
30
30
use TYPO3 \CMS \Core \Database \Schema \ConnectionMigrator ;
31
- use TYPO3 \CMS \Core \Utility \GeneralUtility ;
32
31
use TYPO3 \TestingFramework \Core \Unit \UnitTestCase ;
33
32
34
33
/**
@@ -73,7 +72,7 @@ protected function setUp(): void
73
72
*/
74
73
public function tableNamesStickToTheMaximumCharactersWhenPrefixedForRemoval (): void
75
74
{
76
- $ originalSchemaDiff = GeneralUtility:: makeInstance ( SchemaDiff::class, null , null , [$ this ->getTable ()]);
75
+ $ originalSchemaDiff = new SchemaDiff ([], [] , [$ this ->getTable ()]);
77
76
$ renamedSchemaDiff = $ this ->subject ->_call ('migrateUnprefixedRemovedTablesToRenames ' , $ originalSchemaDiff );
78
77
79
78
self ::assertStringStartsWith ('zzz_deleted_ ' , $ renamedSchemaDiff ->changedTables [0 ]->newName );
@@ -89,9 +88,8 @@ public function tableNamesStickToTheMaximumCharactersWhenPrefixedForRemoval(): v
89
88
public function columnNamesStickToTheMaximumCharactersWhenPrefixedForRemoval (): void
90
89
{
91
90
$ table = $ this ->getTable ();
92
- $ tableDiff = new TableDiff ($ table ->getName ());
93
- $ originalSchemaDiff = new SchemaDiff (null , [$ tableDiff ]);
94
- $ originalSchemaDiff ->changedTables [0 ]->removedColumns [] = $ this ->getColumn ();
91
+ $ tableDiff = new TableDiff ($ table ->getName (), [], [], [$ this ->getColumn ()]);
92
+ $ originalSchemaDiff = new SchemaDiff ([], [$ tableDiff ]);
95
93
$ renamedSchemaDiff = $ this ->subject ->_call ('migrateUnprefixedRemovedFieldsToRenames ' , $ originalSchemaDiff );
96
94
97
95
self ::assertStringStartsWith (
0 commit comments