@@ -363,16 +363,6 @@ public function testTableAddForeignKey(): void
363363
364364 public function testTableDropForeignKey (): void
365365 {
366- $ tableForeign = Table::editor ()
367- ->setUnquotedName ('bar ' )
368- ->setColumns (
369- Column::editor ()
370- ->setUnquotedName ('id ' )
371- ->setTypeName (Types::INTEGER )
372- ->create (),
373- )
374- ->create ();
375-
376366 $ table1 = Table::editor ()
377367 ->setUnquotedName ('foo ' )
378368 ->setColumns (
@@ -403,7 +393,7 @@ public function testTableDropForeignKey(): void
403393
404394 $ tableDiff = $ this ->comparator ->compareTables ($ table2 , $ table1 );
405395
406- self ::assertCount (1 , $ tableDiff ->getDroppedForeignKeys ());
396+ self ::assertCount (1 , $ tableDiff ->getDroppedForeignKeyConstraintNames ());
407397 }
408398
409399 public function testTableUpdateForeignKey (): void
@@ -446,7 +436,7 @@ public function testTableUpdateForeignKey(): void
446436
447437 $ tableDiff = $ this ->comparator ->compareTables ($ table1 , $ table2 );
448438
449- self ::assertCount (1 , $ tableDiff ->getDroppedForeignKeys ());
439+ self ::assertCount (1 , $ tableDiff ->getDroppedForeignKeyConstraintNames ());
450440 self ::assertCount (1 , $ tableDiff ->getAddedForeignKeys ());
451441 }
452442
@@ -489,7 +479,7 @@ public function testMovedForeignKeyForeignTable(): void
489479
490480 $ tableDiff = $ this ->comparator ->compareTables ($ table1 , $ table2 );
491481
492- self ::assertCount (1 , $ tableDiff ->getDroppedForeignKeys ());
482+ self ::assertCount (1 , $ tableDiff ->getDroppedForeignKeyConstraintNames ());
493483 self ::assertCount (1 , $ tableDiff ->getAddedForeignKeys ());
494484 }
495485
0 commit comments