Skip to main content
Back to registry

laravel-testing

leeovery/claude-laravel

Testing patterns with Pest: Arrange-Act-Assert, proper mocking, null drivers, declarative factories.

Installs145
Install command
npx skills add https://github.com/leeovery/claude-laravel --skill laravel-testing
About this skill
Testing patterns with Pest: Arrange-Act-Assert, proper mocking, null drivers, declarative factories. Related guides: Testing should be: Every test should follow the Arrange-Act-Assert pattern: Set up all the data and dependencies needed using factories : Perform the single operation you're testing: Verify the outcomes of your action: Actions are the heart of your domain logic and should be thoroughly tested in isolation. Critical pattern: Always resolve actions from the container using resolve() so dependencies are recursively resolved. Use swap() to replace dependencies with mocked versions. Why this pattern: Critical principle: Only mock code that you control. Never mock external services directly. Use withArgs() with a closure to verify the exact instances and values being passed: If you find yourself needing to mock an external service, create an abstraction : See Services for complete implementation examples. The null driver pattern provides deterministic, fast tests without external dependencies: Benefits of null drivers: Extend the null driver for specific test scenarios: Factories create realistic, randomized test data that makes tests more robust.

Source description provided by the upstream skill listing. Community reviews and install context appear in the sections below.

Community Reviews

Latest reviews

Sign in to review

No community reviews yet. Be the first to review.

Browse this skill in context
FAQ
What does laravel-testing do?

Testing patterns with Pest: Arrange-Act-Assert, proper mocking, null drivers, declarative factories.

Is laravel-testing good?

laravel-testing does not have approved reviews yet, so SkillJury cannot publish a community verdict.

What agent does laravel-testing work with?

laravel-testing currently lists compatibility with codex, gemini-cli, opencode, cursor, kimi-cli, github-copilot, claude-code.

What are alternatives to laravel-testing?

Skills in the same category include telegram-bot-builder, flutter-app-size, sharp-edges, iterative-retrieval.

How do I install laravel-testing?

npx skills add https://github.com/leeovery/claude-laravel --skill laravel-testing

Related skills

Alternatives in Software Engineering