Skip to content

Commit 8aea848

Browse files
committed
wip
1 parent af9db9a commit 8aea848

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tests/Tracing/RequestDataCollectorIntegrationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
expect($rendered)
8080
->toContain('## Request')
8181
->toContain('"method": "GET"')
82-
->toContain('/test-route/123');
82+
->toContain('test-route/123');
8383
});
8484

8585
it('captures route data for POST route that throws an exception', function () {

tests/Tracing/RequestDataCollectorTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@
2828

2929
// Assert
3030
$requestData = Context::get('request');
31-
expect($requestData)->toHaveKeys(['url', 'full_url', 'method', 'ip', 'headers', 'cookies', 'query', 'body']);
31+
expect($requestData)->toHaveKeys(['url', 'full_url', 'path', 'method', 'ip', 'ips', 'user_agent', 'headers', 'cookies', 'query', 'body', 'files', 'size']);
3232
expect($requestData['url'])->toBe('https://example.com/test');
3333
expect($requestData['full_url'])->toBe('https://example.com/test?foo=bar');
34+
expect($requestData['path'])->toBe('test');
3435
expect($requestData['method'])->toBe('POST');
3536
});
3637

0 commit comments

Comments
 (0)