Skip to content

Commit 5d686e0

Browse files
committed
fix: use SiteURI in ControllerTestTrait
1 parent 89ed7f8 commit 5d686e0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

system/Test/ControllerTestTrait.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ protected function setUpControllerTestTrait(): void
100100
}
101101

102102
if (! $this->uri instanceof URI) {
103-
$this->uri = Services::uri($this->appConfig->baseURL ?? 'http://example.com/', false);
103+
$factory = Services::siteurifactory($_SERVER, $this->appConfig, false);
104+
$this->uri = $factory->createFromGlobals();
104105
}
105106

106107
if (empty($this->request)) {

0 commit comments

Comments
 (0)