Laravel Controller Tests
This skill generates Laravel controller test cases quickly, ensuring robust code and preventing regressions during development.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add noartem-laravel-controller-tests npx -- -y @trustedskills/noartem-laravel-controller-tests
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"noartem-laravel-controller-tests": {
"command": "npx",
"args": [
"-y",
"@trustedskills/noartem-laravel-controller-tests"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill allows AI agents to generate tests for Laravel controllers. It automates the process of creating test files and assertions, ensuring that controller logic functions as expected. This helps developers maintain code quality and prevent regressions during development.
When to use it
- Automated Testing: Generate a basic set of tests when starting a new Laravel project or feature.
- Regression Prevention: Quickly create tests after making changes to existing controllers, ensuring no functionality is broken.
- Code Quality Assurance: Integrate into CI/CD pipelines to automatically test controller logic as part of the build process.
- Learning and Examples: Use it to learn best practices for testing Laravel controllers by examining generated test files.
Key capabilities
- Generates tests for Laravel controllers.
- Creates assertion-based tests.
- Automates test file creation.
Example prompts
- "Generate a test suite for the
UserControllercontroller." - "Create a basic test file for the
ProductController@indexmethod." - “Write a test to verify that the
AdminController@editmethod returns a 403 response when unauthorized.”
Tips & gotchas
- Requires a working Laravel development environment.
- The generated tests are a starting point and may need customization based on specific application logic.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.