Create Feature Tests - Events API
Description
Write comprehensive feature tests for Events API endpoints.
Acceptance Criteria
-
test_can_list_events -
test_can_create_event -
test_can_update_event -
test_can_delete_event -
test_validation_fails_for_past_date -
test_validation_fails_for_missing_fields -
All tests passing -
Uses RefreshDatabase
Implementation Steps
php artisan make:test EventApiTest- Create factories if needed
- Write test cases
- Run:
php artisan test --filter EventApiTest
Reference
- Roadmap:
docs/roadmaps/Implementation_Roadmap_Backend.mdPhase 7, Step 14 - Standards:
backend/CLAUDE.md- Testing section
Related Issues
- Depends on: #8 (closed)