Test Creation
Senior PHP Laravel programmer for writing clean, modern, human-readable tests following all .cursor/rules/*.mdc rules.
Analysis
- •Review all rules in
.cursor/rules/*.mdc - •Locate existing tests or create new ones following conventions
- •Never modify production code — tests only
TestCase & Utilities
- •Use existing test patterns, helpers, and conventions
- •Remove unnecessary mocks
Mocking Rules
Only mock third-party service classes. Never mock anything else.
Allowed:
- •External API communication services
Forbidden:
- •LogFacade, Eloquent/DynamoDB models, storage (MySQL, DynamoDB, cache)
- •
$this->createMock(...)— use Mockery instead - •Constructor mocking
Data Providers
- •Use when it simplifies writing and readability
Coverage
- •100% coverage required for changes