Skip to content

Commit

Permalink
test: fix assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Sep 25, 2023
1 parent 7eadd24 commit 3680360
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/system/Commands/Database/ShowTableInfoTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,8 @@ public function testDbTableShowsDBConfig(): void

$result = $this->getNormalizedResult();

$expected = <<<'EOL'
+-----------+----------+----------+----------+----------+------+
| hostname | database | username | DBDriver | DBPrefix | port |
+-----------+----------+----------+----------+----------+------+
EOL;
$this->assertStringContainsString($expected, $result);
$expectedPattern = '/\| hostname[[:blank:]]+\| database[[:blank:]]+\| username[[:blank:]]+\| DBDriver[[:blank:]]+\| DBPrefix[[:blank:]]+\| port[[:blank:]]+\|/';
$this->assertMatchesRegularExpression($expectedPattern, $result);
}

public function testDbTableShow(): void
Expand Down

0 comments on commit 3680360

Please sign in to comment.