Skip to content

Commit

Permalink
Fix test not running when it should
Browse files Browse the repository at this point in the history
  • Loading branch information
stayallive committed Nov 14, 2023
1 parent 93000e6 commit 49a3612
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/Sentry/Features/HttpClientIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,16 +128,16 @@ public function testHttpClientSpanIsNotRecordedWhenDisabled(): void

public function testHttpClientRequestTracingHeadersAreAttached(): void
{
if (!method_exists(Http::class, 'globalRequestMiddleware')) {
$this->markTestSkipped('The `globalRequestMiddleware` functionality we rely on was introduced in Laravel 10.14');
}

$this->resetApplicationWithConfig([
'sentry.trace_propagation_targets' => ['example.com'],
]);

$client = Http::fake();

if (!method_exists($client, 'globalRequestMiddleware')) {
$this->markTestSkipped('The `globalRequestMiddleware` functionality we rely on was introduced in Laravel 10.14');
}

$client->get('https://example.com');

Http::assertSent(function (Request $request) {
Expand Down

0 comments on commit 49a3612

Please sign in to comment.