Skip to content

Commit 99b02dd

Browse files
authored
Merge pull request #6868 from paulbalandan/fix-showtableinfotest-on-migrations
Fix ShowTableInfoTest when migration records are numerous
2 parents 9d4feec + 518888b commit 99b02dd

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

‎tests/system/Commands/Database/ShowTableInfoTest.php‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,8 @@ public function testDbTable(): void
6767
$expected = 'Data of Table "db_migrations":';
6868
$this->assertStringContainsString($expected, $result);
6969

70-
$expected = <<<'EOL'
71-
+----+----------------+--------------------+-------+---------------+------------+-------+
72-
| id | version | class | group | namespace | time | batch |
73-
+----+----------------+--------------------+-------+---------------+------------+-------+
74-
EOL;
75-
$this->assertStringContainsString($expected, $result);
70+
$expectedPattern = '/\| id[[:blank:]]+\| version[[:blank:]]+\| class[[:blank:]]+\| group[[:blank:]]+\| namespace[[:blank:]]+\| time[[:blank:]]+\| batch \|/';
71+
$this->assertMatchesRegularExpression($expectedPattern, $result);
7672
}
7773

7874
public function testDbTableShow(): void

0 commit comments

Comments
 (0)