@@ -345,7 +345,7 @@ public function testCompareColumnCompareCaseInsensitive(): void
345
345
self ::assertTrue ($ tableDiff ->isEmpty ());
346
346
}
347
347
348
- public function testDetectIndexNameChange (): void
348
+ public function testCompareIndexBasedOnPropertiesNotName (): void
349
349
{
350
350
$ tableA = new Table ('foo ' );
351
351
$ tableA ->addColumn ('id ' , Types::INTEGER );
@@ -363,7 +363,7 @@ public function testDetectIndexNameChange(): void
363
363
);
364
364
}
365
365
366
- public function testDetectForeignKeyNameChange (): void
366
+ public function testCompareForeignKeyBasedOnPropertiesNotName (): void
367
367
{
368
368
$ tableA = new Table ('foo ' );
369
369
$ tableA ->addColumn ('id ' , Types::INTEGER );
@@ -374,11 +374,7 @@ public function testDetectForeignKeyNameChange(): void
374
374
$ tableB ->addForeignKeyConstraint ('bar ' , ['id ' ], ['id ' ], [], 'bar_constraint ' );
375
375
376
376
self ::assertEquals (
377
- new TableDiff ($ tableA , [], [], [], [], [], [], [], [], [
378
- new ForeignKeyConstraint (['id ' ], 'bar ' , ['id ' ], 'bar_constraint ' ),
379
- ], [], [
380
- new ForeignKeyConstraint (['id ' ], 'bar ' , ['id ' ], 'foo_constraint ' ),
381
- ]),
377
+ new TableDiff ($ tableA , [], [], [], [], [], [], [], [], [], [], []),
382
378
$ this ->comparator ->compareTables ($ tableA , $ tableB ),
383
379
);
384
380
}
0 commit comments