Skip to content

Commit de46d3e

Browse files
committed
fix: SiteURI's query is not set in FeatureTestTrait
1 parent 0674874 commit de46d3e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

system/Test/FeatureTestTrait.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,8 @@ public function call(string $method, string $path, ?array $params = null)
183183
/**
184184
* Performs a GET request.
185185
*
186+
* @param string $path URI path relative to baseURL. May include query.
187+
*
186188
* @return TestResponse
187189
*
188190
* @throws RedirectException
@@ -278,6 +280,7 @@ protected function setupRequest(string $method, ?string $path = null): IncomingR
278280
$_SERVER['QUERY_STRING'] = $query;
279281

280282
$uri->setPath($path);
283+
$uri->setQuery($query);
281284

282285
Services::injectMock('uri', $uri);
283286

0 commit comments

Comments
 (0)