Skip to content

Commit 5d0dd8c

Browse files
committed
update test
1 parent 41f86fe commit 5d0dd8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/system/HTTP/IncomingRequestTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ public function testIsSecureForwarded(): void
760760

761761
public function testUserAgent(): void
762762
{
763-
$_SERVER['HTTP_USER_AGENT'] = 'Mozilla';
763+
service('superglobals')->setServer('HTTP_USER_AGENT', 'Mozilla');
764764

765765
$config = new App();
766766
$request = $this->createRequest($config);

0 commit comments

Comments
 (0)