Skip to content

Commit

Permalink
test(integration): improve failed test message
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
  • Loading branch information
blizzz committed Apr 19, 2024
1 parent 8bd944f commit f4745f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/integration/features/bootstrap/FeatureContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,8 @@ public function userTables(string $user, TableNode $body = null): void {
$titles[] = $d['title'];
}
foreach ($body->getRows()[0] as $tableTitle) {
Assert::assertTrue(in_array($tableTitle, $titles, true));
$message = sprintf('%s not in the list %s', $tableTitle, implode(', ', $titles));
Assert::assertTrue(in_array($tableTitle, $titles, true), $message);
}
}

Expand Down

0 comments on commit f4745f0

Please sign in to comment.