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.
tests/Feature, tests/Unit, and tests/Http directories.adroit11/laravel-tests) and minimal configuration (e.g., publishing assets to tests/).DatabaseMigrations vs. DatabaseTransactions).--parallel vs. PHPUnit’s --parallel)?@test syntax, or custom test traits for simpler needs.tests/Feature/UserTest.php vs. package’s expected tests/Boilerplate/UserTest.php).composer require adroit11/laravel-tests.php artisan vendor:publish --tag=laravel-tests.UserTest) with the boilerplate template to validate output.DatabaseTransactions trait. Projects using DatabaseMigrations or RefreshDatabase may need configuration tweaks..env.testing).tests/Feature and tests/Unit with boilerplate templates.phpunit.xml if using custom suites.--parallel).setUp() methods, assertions).composer update adroit11/laravel-tests).--parallel flags to avoid bottlenecks..env.testing but requires manual setup for multi-database or multi-tenant tests.| Risk | Impact | Mitigation |
|---|---|---|
| Package Abandonment | Broken tests on Laravel updates | Fork the repo or maintain a local copy. |
| Boilerplate Conflicts | Custom test logic overwritten | Use afterSetUp() or custom traits. |
| CI Flakiness | Non-deterministic test failures | Isolate tests with DatabaseTransactions. |
| Version Conflicts | PHPUnit/Pest incompatibility | Pin versions in composer.json. |
How can I help you explore Laravel packages today?