Skip to content

Commit

Permalink
getModifiedColumns() is deprecated - use getChangedColumns() instead
Browse files Browse the repository at this point in the history
  • Loading branch information
fisharebest committed Aug 14, 2024
1 parent 6a48c66 commit 7effa44
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions tests/Platforms/MySQL/ComparatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ public function testUtf8AndUtf8mb3Mismatches(bool $useUtf8mb3, string $defaultCh
]),
]);

self::assertEmpty($utf8Comparator->compareTables($table1, $table2)->getModifiedColumns());
self::assertEmpty($utf8Comparator->compareTables($table2, $table1)->getModifiedColumns());
self::assertNotEmpty($utf8Comparator->compareTables($table1, $table3)->getModifiedColumns());
self::assertNotEmpty($utf8Comparator->compareTables($table3, $table1)->getModifiedColumns());
self::assertNotEmpty($utf8Comparator->compareTables($table2, $table3)->getModifiedColumns());
self::assertNotEmpty($utf8Comparator->compareTables($table3, $table2)->getModifiedColumns());
self::assertEmpty($utf8Comparator->compareTables($table1, $table2)->getChangedColumns());
self::assertEmpty($utf8Comparator->compareTables($table2, $table1)->getChangedColumns());
self::assertNotEmpty($utf8Comparator->compareTables($table1, $table3)->getChangedColumns());
self::assertNotEmpty($utf8Comparator->compareTables($table3, $table1)->getChangedColumns());
self::assertNotEmpty($utf8Comparator->compareTables($table2, $table3)->getChangedColumns());
self::assertNotEmpty($utf8Comparator->compareTables($table3, $table2)->getChangedColumns());

$table4 = new Table('t4', [
new Column('c', new StringType(), [
Expand All @@ -88,12 +88,12 @@ public function testUtf8AndUtf8mb3Mismatches(bool $useUtf8mb3, string $defaultCh
]),
]);

self::assertEmpty($utf8Comparator->compareTables($table4, $table5)->getModifiedColumns());
self::assertEmpty($utf8Comparator->compareTables($table5, $table4)->getModifiedColumns());
self::assertNotEmpty($utf8Comparator->compareTables($table4, $table6)->getModifiedColumns());
self::assertNotEmpty($utf8Comparator->compareTables($table6, $table4)->getModifiedColumns());
self::assertNotEmpty($utf8Comparator->compareTables($table5, $table6)->getModifiedColumns());
self::assertNotEmpty($utf8Comparator->compareTables($table6, $table5)->getModifiedColumns());
self::assertEmpty($utf8Comparator->compareTables($table4, $table5)->getChangedColumns());
self::assertEmpty($utf8Comparator->compareTables($table5, $table4)->getChangedColumns());
self::assertNotEmpty($utf8Comparator->compareTables($table4, $table6)->getChangedColumns());
self::assertNotEmpty($utf8Comparator->compareTables($table6, $table4)->getChangedColumns());
self::assertNotEmpty($utf8Comparator->compareTables($table5, $table6)->getChangedColumns());
self::assertNotEmpty($utf8Comparator->compareTables($table6, $table5)->getChangedColumns());
}

/** @return iterable<array{bool,string}> */
Expand Down

0 comments on commit 7effa44

Please sign in to comment.