Controller tests

From jpcaparas/superpowers-laravel · View interactive version

Controller tests is an AI agent skill from the GitHub repository jpcaparas/superpowers-laravel. Write focused controller tests using HTTP assertions; keep heavy logic in Actions/Services and unit test them

How to use this skill

Skill file

Controller Tests

Feature tests for endpoints

it('rejects empty email', function () {
  $this->post('/register', ['email' => ''])->assertSessionHasErrors('email');
});

Better tests

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.