jasonmccreary/laravel-test-assertions
Adds a trait of extra PHPUnit assertions for Laravel testing. Confirm controllers/actions and named routes use specific FormRequest validation or middleware, compare validation rules (subset or exact), check rule instances, and assert view data is explicitly null.
assertInternalType() → assertType()). Audit custom test code for conflicts.assertRouteIs()). Validate in Laravel 13.x for dynamic route registration quirks.assertViewWasRenderedWith() may still clash with mocked services or service containers. Test in isolation.assertResponseStatus()).assertInternalType()).use JasonMcCreary\LaravelTestAssertions\AssertsRoutes;).assertMiddlewareApplied() may break if middleware is dynamically registered in Laravel 13.x.| Phase | Task | Dependencies |
|---|---|---|
| Pre-Integration | Audit tests for Laravel 13.x/PHPUnit 13 compatibility. | None |
| Pilot | Replace assertions in 1–2 test suites in Laravel 13.x. | PHPUnit 13, Laravel 13.x setup. |
| Core Tests | Migrate auth, API, and feature tests. | Pilot results. |
| Edge Cases | Test custom middleware, events, and database assertions in Laravel 13.x. | Laravel 13.x compatibility. |
| CI/CD | Update test pipelines to Laravel 13.x + PHPUnit 13. | Full test suite migration. |
| Documentation | Add Laravel 13.x-specific examples to team wiki. | Completed migration. |
assertRouteIs('profile.edit')).config/testing.php).assertViewWasRendered() failing due to minor template changes in Laravel 13.x).How can I help you explore Laravel packages today?