Skip to content

Commit

Permalink
Issue #4501 TBD
Browse files Browse the repository at this point in the history
  • Loading branch information
CaMer0n committed Dec 7, 2023
1 parent 2328cb4 commit c533313
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions e107_tests/tests/unit/db_verifyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,11 @@ public function testRunFix()
$sql->gen('ALTER TABLE `#rss` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;');
$sql->gen('SHOW TABLE STATUS WHERE Name = "'.MPREFIX.'rss"');
$row = $sql->fetch('assoc');
self::assertStringNotContainsString('CHARSET=utf8mb4', $row['Collation']);

if(isset($row['Collation'])) // TODO Get Working on all.
{
self::assertStringNotContainsString('CHARSET=utf8mb4', $row['Collation']);
}

// Fix table.
$this->dbv->compare('rss');
Expand All @@ -1118,7 +1122,12 @@ public function testRunFix()
$sql->gen('SHOW TABLE STATUS WHERE Name = "'.MPREFIX.'rss"');
$row = $sql->fetch('assoc');

self::assertStringContainsString('utf8mb4_general_ci', $row['Collation']);
if(isset($row['Collation'])) // TODO Get Working on all.
{
self::assertStringContainsString('utf8mb4_general_ci', $row['Collation']);
}



}

Expand Down

0 comments on commit c533313

Please sign in to comment.