mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
fix: SiteURI's query is not set in FeatureTestTrait
This commit is contained in:
parent
0674874352
commit
de46d3e746
@ -183,6 +183,8 @@ trait FeatureTestTrait
|
||||
/**
|
||||
* Performs a GET request.
|
||||
*
|
||||
* @param string $path URI path relative to baseURL. May include query.
|
||||
*
|
||||
* @return TestResponse
|
||||
*
|
||||
* @throws RedirectException
|
||||
@ -278,6 +280,7 @@ trait FeatureTestTrait
|
||||
$_SERVER['QUERY_STRING'] = $query;
|
||||
|
||||
$uri->setPath($path);
|
||||
$uri->setQuery($query);
|
||||
|
||||
Services::injectMock('uri', $uri);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user