fix: SiteURI's query is not set in FeatureTestTrait

This commit is contained in:
kenjis 2023-02-26 16:47:55 +09:00
parent 0674874352
commit de46d3e746
No known key found for this signature in database
GPG Key ID: BD254878922AF198

View File

@ -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);