Skip to content

Commit 5a5a1be

Browse files
committed
test: remove $request->uri
1 parent 85df3ce commit 5a5a1be

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/system/Helpers/URLHelper/SiteUrlTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,10 +279,11 @@ public function testBaseURLService()
279279
$_SERVER['HTTP_HOST'] = 'example.com';
280280
$_SERVER['REQUEST_URI'] = '/ci/v4/x/y';
281281

282+
$uri = new URI('http://example.com/ci/v4/x/y');
283+
Services::injectMock('uri', $uri);
284+
282285
$this->config->baseURL = 'http://example.com/ci/v4/';
283286
$request = Services::request($this->config);
284-
$request->uri = new URI('http://example.com/ci/v4/x/y');
285-
286287
Services::injectMock('request', $request);
287288

288289
$this->assertSame('http://example.com/ci/v4/index.php/controller/method', site_url('controller/method', null, $this->config));

0 commit comments

Comments
 (0)