Laravel controller tests
Skill ComeOnOliver/skillshub/skills/noartem/skills/laravel-controller-tests
🧠The right skill, one API call. AI agent skills registry with token-efficient skill resolution. 5,000+ skills from 500+ top repos.
npx -y skills add ComeOnOliver/skillshub --skill laravel-controller-testsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
0.4 KB, 88 tokens by cl100k_base, as published. Nobody here has run it
Controller Tests
Feature tests for endpoints
it('rejects empty email', function () {
$this->post('/register', ['email' => ''])->assertSessionHasErrors('email');
});
Better tests
- Move validation to Form Requests; assert errors from the request class
- Extract business logic into Actions; unit test them directly
- Use factories for realistic data; avoid heavy mocking
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.