From superpowers-laravel
Writes focused Laravel controller tests using HTTP assertions; promotes extracting logic to Actions/Services for unit tests and Form Requests for validation.
How this skill is triggered — by the user, by Claude, or both
Slash command
/superpowers-laravel:controller-testsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
```php
it('rejects empty email', function () {
$this->post('/register', ['email' => ''])->assertSessionHasErrors('email');
});
npx claudepluginhub jpcaparas/superpowers-laravel --plugin superpowers-laravelProvides Laravel testing strategies using PHPUnit, Pest, model factories, HTTP tests, Sanctum authentication, and mocking for TDD workflows.
Write tests with Pest 3/PHPUnit, feature tests, unit tests, mocking, fakes, and factories. Use when testing controllers, services, models, or implementing TDD.
Guides Test-Driven Development for Laravel apps using Pest PHP: write failing tests first for features, bug fixes, controllers, models, APIs, then minimal code to pass and refactor.