Skip to content

Commit 2250d71

Browse files
committed
Fix ShowTableInfoTest when migration records are numerous
1 parent 5de3a98 commit 2250d71

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 = '/\|\hid\h+\|\hversion\h+\|\hclass\h+\|\hgroup\h+\|\hnamespace\h+\|\htime\h+\|\hbatch\h\|/';
71+
$this->assertMatchesRegularExpression($expectedPattern, $result);
7672
}
7773

7874
public function testDbTableShow(): void

0 commit comments

Comments
 (0)