Skip to content

Commit

Permalink
Skip test if DBAL is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean85 committed Jun 23, 2021
1 parent 6ec49dc commit 63a5f83
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/DependencyInjection/Compiler/DbalTracingPassTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@ public function processDoesNothingIfConditionsForEnablingTracingAreMissingDataPr

public function testContainerCompilationFailsIfConnectionDoesntExist(): void
{
if (!self::isDoctrineDBALInstalled()) {
$this->markTestSkipped('This test requires the "doctrine/dbal" Composer package.');
}

$container = $this->createContainerBuilder();
$container->setParameter('sentry.tracing.dbal.connections', ['missing']);

Expand Down

0 comments on commit 63a5f83

Please sign in to comment.