Skip to content

Commit

Permalink
fix: use SiteURI in ControllerTestTrait
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Feb 26, 2023
1 parent ea16baf commit 90bd0a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion system/Test/ControllerTestTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ protected function setUpControllerTestTrait(): void
}

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

if (empty($this->request)) {
Expand Down

0 comments on commit 90bd0a9

Please sign in to comment.