Skip to content

Commit

Permalink
test: update FormHelperTest
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Feb 23, 2023
1 parent 9bc288e commit 9c7cc3c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/system/Helpers/FormHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace CodeIgniter\Helpers;

use CodeIgniter\HTTP\URI;
use CodeIgniter\HTTP\SiteURI;
use CodeIgniter\Test\CIUnitTestCase;
use Config\App;
use Config\Filters;
Expand All @@ -35,12 +35,12 @@ protected function setUp(): void

private function setRequest(): void
{
$uri = new URI('http://example.com/');
Services::injectMock('uri', $uri);

$config = new App();
$config->indexPage = 'index.php';

$uri = new SiteURI($config);
Services::injectMock('uri', $uri);

$request = Services::request($config);
Services::injectMock('request', $request);
}
Expand Down

0 comments on commit 9c7cc3c

Please sign in to comment.