Skip to content

fix: update stale route names and 404 assertions#16

Merged
HafizMMoaz merged 1 commit into
mainfrom
fix/ci-failures
Jul 22, 2026
Merged

fix: update stale route names and 404 assertions#16
HafizMMoaz merged 1 commit into
mainfrom
fix/ci-failures

Conversation

@HafizMMoaz

Copy link
Copy Markdown
Member

The test job on main was failing with 3 failures. The tests had drifted from the application.

  • boot/routes.php names the routes api.home.index and api.home.about, but the tests still expected api.index and api.about.
  • respond_not_found() returns the JSON error envelope from error_response() ("message": "Not Found" plus path and method), but the test looked for the string Route not found. Now asserts on the actual payload, including the requested path.

Verified locally: vendor/bin/phpunit is 4/4 green.

🤖 Generated with Claude Code

The `test` job on main was failing with 3 failures. The tests had drifted from the application.

- `boot/routes.php` names the routes `api.home.index` and `api.home.about`, but the tests still expected `api.index` and `api.about`.
- `respond_not_found()` returns the JSON error envelope from `error_response()` (`"message": "Not Found"` plus `path` and `method`), but the test looked for the string `Route not found`. Now asserts on the actual payload, including the requested path.

Verified locally: `vendor/bin/phpunit` is 4/4 green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@HafizMMoaz
HafizMMoaz merged commit e8ce871 into main Jul 22, 2026
1 of 2 checks passed
@HafizMMoaz
HafizMMoaz deleted the fix/ci-failures branch July 22, 2026 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant