Repository navigation
Pre-release 4.2.113 → 4.2.112 — task 2.17 step 2: remove the L4.2 response assertions - #85
Merged
Merged
Conversation
agissept
force-pushed
the
pre-release/4.2.113
branch
from
September 30, 2026 10:37
99d1b74 to
ff0db95
Compare
agissept
marked this pull request as ready for review
October 1, 2026 08:41
Delete Foundation\Testing\AssertionsTrait (assertResponseOk, assertResponseStatus, assertRedirectedTo/ToRoute/ToAction, assertViewHas/HasAll/Missing, assertSessionHas/HasAll/HasErrors, assertHasOldInput). They read $this->client->getResponse() and have v13 equivalents on the TestResponse that call() returns since 4.2.112; the dicoding app no longer calls them. v13's Foundation TestCase has no such methods either, so this removes an API that the foundation flip (4.5) would otherwise have to carry. Callers now fail with a missing-method error instead of passing silently. 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.113
branch
from
October 1, 2026 08:41
ff0db95 to
5e2dd01
Compare
agissept
approved these changes
Oct 1, 2026
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 2.17, step 2 — remove the L4.2 response assertions
Stacks on #84. Deletes
Illuminate\Foundation\Testing\AssertionsTraitand its use in the fork'sTestCase. The trait held:assertResponseOk,assertResponseStatus;assertRedirectedTo,assertRedirectedToRoute,assertRedirectedToAction;assertViewHas,assertViewHasAll,assertViewMissing;assertSessionHas,assertSessionHasAll,assertSessionHasErrors;assertHasOldInput.Why now:
$this->client->getResponse(), and each has a v13 equivalent on theTestResponsethatcall()returns since 4.2.112.$this->assertX()idiom through an app-side shim inLaravelTestHelper(thin wrappers over the sameTestResponse), so the fork no longer needs to provide the trait.TestCasehas no such methods either, so the foundation flip (4.5) no longer has to carry them.A fork-side leftover caller now fails with a missing-method error instead of asserting silently — the enforcement 2.17 asks for. (App tests keep calling these names; they resolve to the app's own shim, not this trait.)
Tests
FoundationTestingResponseTestdrops its legacy-assertion case; the other 5 stay.Verification
Asia/Jakartatimezone andmax_connections).Rest of 2.17
PHPUnit 11 for the fork's suite and the app, in the next pair.
Tag
4.2.113on99d1b744is not pushed; tag pushes are refused for this session.🤖 Generated with Claude Code
https://claude.ai/code/session_0169SsatCE8LhaTsQTPiGtVo