Skip to content

Commit 715bd00

Browse files
committed
test: update out-of-dated parameters
1 parent 7017919 commit 715bd00

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

tests/system/Helpers/URLHelper/MiscUrlTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
use CodeIgniter\HTTP\SiteURIFactory;
1818
use CodeIgniter\HTTP\UserAgent;
1919
use CodeIgniter\Router\Exceptions\RouterException;
20+
use CodeIgniter\Superglobals;
2021
use CodeIgniter\Test\CIUnitTestCase;
2122
use Config\App;
2223
use InvalidArgumentException;
@@ -69,7 +70,7 @@ public function testPreviousURLUsesSessionFirst(): void
6970

7071
private function createRequest(string $uri): void
7172
{
72-
$factory = new SiteURIFactory($_SERVER, $this->config);
73+
$factory = new SiteURIFactory($this->config, new Superglobals());
7374

7475
$uri = $factory->createFromString($uri);
7576

tests/system/Helpers/URLHelper/SiteUrlTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
use CodeIgniter\HTTP\SiteURIFactory;
1818
use CodeIgniter\HTTP\URI;
1919
use CodeIgniter\HTTP\UserAgent;
20+
use CodeIgniter\Superglobals;
2021
use CodeIgniter\Test\CIUnitTestCase;
2122
use Config\App;
2223

@@ -55,7 +56,7 @@ private function createRequest(?App $config = null, $body = null, ?string $path
5556
{
5657
$config ??= new App();
5758

58-
$factory = new SiteURIFactory($_SERVER, $config);
59+
$factory = new SiteURIFactory($config, new Superglobals());
5960
$uri = $factory->createFromGlobals();
6061

6162
if ($path !== null) {

0 commit comments

Comments
 (0)