Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Tests Laravel Package

adroit11/laravel-tests

Reusable Laravel testing package with publishable test stubs, custom assertions, and helper utilities. Drop into Laravel 10/11 (PHP 8.1+) and run with PHPUnit or Pest to speed up common feature and integration testing setups.

View on GitHub
Deep Wiki
Context7

Laravel Tests Package

A reusable testing package for Laravel applications, designed to streamline test setup and provide custom assertions and helpers for common testing scenarios.


Features

  • Reusable Test Files: Pre-built tests for common Laravel features.
  • Custom Helpers: Utility functions to simplify test assertions.
  • Easy Integration: Seamlessly integrates with Laravel’s testing suite (PHPUnit or Pest).
  • Publishable Assets: Quickly add tests to your project with a single command.

Requirements

  • PHP: 8.1 or higher
  • Laravel: 10.x or 11.x
  • Composer: Required for installation
  • Testing Framework: Works with PHPUnit (default) or Pest (optional)

Installation

Follow these steps to add the package to your Laravel project:

  1. Install via Composer:
    composer require adroit11/laravel-tests
    
    

This pulls the package from Packagist (assuming you’ll submit it there) into your project.

  1. Publish the Test Filesr:
    php artisan vendor:publish --tag=tests
    
    

This copies the test files to your tests/Feature/ directory.

  1. Run the testr:
    php artisan test
    
    

License

MIT License

Copyright (c) 2025 Ogundiji Bolade Adio

Permission is hereby granted, free of charge, to any person obtaining a copy of the adroit11/laravel-tests package and its associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE, INCLUDING ITS INTEGRATION INTO LARAVEL APPLICATIONS FOR TESTING PURPOSES.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
daikazu/eloquent-salesforce-objects
unseen-codes/chat
romalytar/yammi-jobs-monitoring-laravel
kisame76/filament-db-table-state
nqxcode/laravel-lucene-search
dpfx/laravel-livewire-wizards
workos/workos-php-laravel
sofa/laravel-global-scope
nawasara/auth-primitives
adhocrat-io/arkhe-main
make-dev/orca-harpoon
itsemon245/lamet
baks-dev/dashboard
amoifr/pickle-panther-bundle
make-dev/orca
dmstr/symfony-system-resources-bundle
dmstr/symfony-job-queue-bundle
dmstr/openapi-json-schema-bundle
dmstr/keycloak-security-bundle
dmstr/doctrine-audit-log-bundle