Laravel test design and review. Use when selecting coverage, naming or structuring tests, choosing assertions or test data, isolating dependencies, testing HTTP or security boundaries, improving suite performance, or reviewing test value. Use framework guidance or search-docs for Pest and PHPUnit syntax.
67
84%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Low
Low-risk findings worth noting
The canonical home for this skill is testing-best-practices in yaojingang/GEOFlow
This skill provides rules for designing Laravel tests. Each rule file explains what to do and why. Use search-docs for Laravel API syntax. Fetch the PHPUnit 11.5.55 documentation at https://phpunit.de/documentation.html for PHPUnit API syntax.
This project uses PHPUnit. Follow the corresponding guidance in each rule.
Read nearby tests before you choose syntax and organization.
A pattern repeated throughout the project is a convention, and project conventions take precedence over this skill. Follow them and give new tests the same structure.
These rules govern the tests you write now. An existing test that follows a project convention is not defective merely because it conflicts with this skill. Do not delete or rewrite it. If the convention has drawbacks, explain them and let the user decide.
Read this section before you write a test.
laravel/dusk and a browser download, neither of which this project installs. Mention the package only if the user asks for a real-browser test.rules/review.md and every selected rule file. Resolve every mismatch before completion.Most changes need more than one rule file.
| Subject | Rule File |
|---|---|
| Test framework features that may already do the work | rules/finding-features.md |
| File layout, test names, and groups | rules/naming.md |
| Arrange-act-assert and choosing the correct assertion | rules/assertions.md |
| Endpoint coverage, authentication, authorization, tenant isolation, validation, and browser tests | rules/endpoint-tests.md |
| Factories, test data ownership, and repeated input values | rules/test-data.md |
| Fakes, mocks, outbound HTTP, time, randomness, and databases | rules/isolation.md |
| Escaping, injection, cross-tenant access, and privilege checks | rules/security.md |
| Environment and CI settings for a slow suite | rules/performance.md |
| Reviewing a test or suite | rules/review.md |
d7f601d
Canonical home
since Sep 17, 2026
Also appears in
since Sep 17, 2026
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.