Skip to content

Commit 49a3612

Browse files
committed
Fix test not running when it should
1 parent 93000e6 commit 49a3612

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/Sentry/Features/HttpClientIntegrationTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,16 +128,16 @@ public function testHttpClientSpanIsNotRecordedWhenDisabled(): void
128128

129129
public function testHttpClientRequestTracingHeadersAreAttached(): void
130130
{
131-
if (!method_exists(Http::class, 'globalRequestMiddleware')) {
132-
$this->markTestSkipped('The `globalRequestMiddleware` functionality we rely on was introduced in Laravel 10.14');
133-
}
134-
135131
$this->resetApplicationWithConfig([
136132
'sentry.trace_propagation_targets' => ['example.com'],
137133
]);
138134

139135
$client = Http::fake();
140136

137+
if (!method_exists($client, 'globalRequestMiddleware')) {
138+
$this->markTestSkipped('The `globalRequestMiddleware` functionality we rely on was introduced in Laravel 10.14');
139+
}
140+
141141
$client->get('https://example.com');
142142

143143
Http::assertSent(function (Request $request) {

0 commit comments

Comments
 (0)