Repository navigation
fix(teams): declare membershipId after the existing createMembership params - #14423
Conversation
🔵 Tier A · Mergeable after minor fixes
Moves
Fix with agent prompt### Issue 1
tests/unit/Platform/Modules/Teams/Http/Memberships/CreateTest.php:21-22
**Keep route-action checks out of unit tests**
This directly instantiates `Create` and inspects its HTTP action parameter metadata and callback signature. `AGENTS.md` says not to unit-test HTTP route actions and reserves this surface for E2E; please keep this regression check at the SDK/API contract layer instead.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.📂 Walkthrough · 2
Reviewed |
| $action = new Create(); | ||
| $params = \array_keys($action->getParams()); |
There was a problem hiding this comment.
Keep route-action checks out of unit tests
This directly instantiates Create and inspects its HTTP action parameter metadata and callback signature. AGENTS.md says not to unit-test HTTP route actions and reserves this surface for E2E; please keep this regression check at the SDK/API contract layer instead.
Prompt To Fix With AI
This is a comment left during a code review.
Path: tests/unit/Platform/Modules/Teams/Http/Memberships/CreateTest.php
Line: 21-22
Comment:
**Keep route-action checks out of unit tests**
This directly instantiates `Create` and inspects its HTTP action parameter metadata and callback signature. `AGENTS.md` says not to unit-test HTTP route actions and reserves this surface for E2E; please keep this regression check at the SDK/API contract layer instead.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.🟡 Minor · testing · Reply if this doesn't apply.
Security rulesNo new WARNING or ERROR findings from security rules. 19 existing findings tracked in
|
✨ Benchmark resultsComparing
Per-scenario breakdown & investigation detailsMetrics below reflect the current branch (after). Δ P95 compares against the base.
Top API waits (after) |

SDKs build positional arguments from the declared param order.
membershipId(added in e4d7aef, not yet in a released SDK) was declared second, so a positional call shifts:Moved the
->param()afternameand theaction()argument to match (route values are passed positionally).Closes #14425