Repository navigation
Pre-release 4.2.116 → 4.2.115 — task 4.5 (test harness): v13 request API in ApplicationTrait - #88
Merged
Merged
Conversation
agissept
force-pushed
the
pre-release/4.2.116
branch
from
September 30, 2026 10:37
e05af16 to
53d2a70
Compare
agissept
force-pushed
the
pre-release/4.2.116
branch
3 times, most recently
from
October 1, 2026 10:40
ab562fc to
fe3d8f3
Compare
agissept
marked this pull request as ready for review
October 2, 2026 06:48
The test request methods take the shape of v13's MakesHttpRequests, so the app's calls mean the same thing before and after its tests move onto v13's Foundation TestCase: - call($method, $uri, $parameters, $cookies, $files, $server, $content): cookies come before files, and uploaded files in the parameters move to the files, as v13 does. $changeHistory goes. - get($uri, $headers), and post/put/patch/delete($uri, $data, $headers), with headers sent as server variables. get() takes no parameters any more. - callSecure(), action() and route() go: v13 has none of them. - Client::withRequestCookies() sends cookies with the next request only, on top of the cookie jar's, which is what call()'s $cookies does in v13. Requests still go through the BrowserKit client, so the cookie jar and the last response carry over between requests as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0169SsatCE8LhaTsQTPiGtVo
agissept
force-pushed
the
pre-release/4.2.116
branch
from
October 2, 2026 06:48
fe3d8f3 to
996a469
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Task 4.5, test harness — v13 request API in
ApplicationTraitStacks on #87. The fork's test request methods take the signatures of v13's
Foundation\Testing\Concerns\MakesHttpRequests. When the app's tests later move onto v13's FoundationTestCase, every request call will then mean the same thing it means today. Only the testing layer changes; nothing an app loads at runtime does.Changes
ApplicationTrait::call($method, $uri, $parameters, $cookies, $files, $server, $content): v13's argument order. It changes in three ways:$cookiescomes before$files;UploadedFileinside$parametersmoves to the files, as in v13'scall();$changeHistorygoes.New verbs with v13's signatures:
get($uri, $headers);post,put,patchanddelete($uri, $data, $headers).Headers become server variables the way v13's
transformHeadersToServerVars()does it (HTTP_*, exceptCONTENT_TYPEandREMOTE_ADDR).get()takes no parameters.Removed:
callSecure(),action()androute(). v13 has none of them.Client::withRequestCookies(): sends cookies with the next request only, on top of the cookie jar's. That's whatcall()'s$cookiesdoes in v13.Requests still go through the BrowserKit client, so the cookie jar and the last response carry over between requests as before.
Tests:
FoundationTestingRequestsTest(5 tests) covers the argument order, the file extraction, headers onget(), data on the data verbs, and the per-request cookies;FoundationTestingResponseTest's fake client follows the newrequest()call.Verification
feature/platform/framework-4.2.116-rc1) rewrites the app's 322 affected request calls. It ran with vendor installed exactly from its lock and the local SMTP sink on127.0.0.1:1025:server:tofiles:, an upload moved fromfiles:toserver:, and acall('GET', $uri, $parameters)put back asget($uri, $parameters).Left for the flip
v13's own
call()sends the request straight to the HTTP kernel, without a BrowserKit client. The app reads the last response from the client (latestResponse()), and drives pages and forms through it (sendFormDataOnPage(),$this->client). So at the flip, the app keeps a client-basedcall()with this same signature. The verbs, the argument order and the call sites don't change again.Tag
4.2.116one05af168is not pushed; tag pushes are refused for this session.🤖 Generated with Claude Code
https://claude.ai/code/session_0169SsatCE8LhaTsQTPiGtVo