orchestra/testbench
Orchestra Testbench is the de facto helper for testing Laravel packages. It boots a lightweight Laravel app for PHPUnit/Pest, so you can run integration and feature tests against your package with minimal setup and fast feedback.
--parallel compatibility with WithFixtures trait.testbench.yaml configured with seeders: true.$__filename to resolve original PestPHP's testCase file.--parallel compatibility with WithFixtures trait.#[UsesVendor] attribute fails due to unbooted application, causing BindingResolutionException to be thrown.Orchestra\Testbench\Foundation\Env class.Orchestra\Testbench\Foundation\Console\Concerns\HandleTerminatingConsole trait.Orchestra\Testbench\Foundation\Console\Actions\Action::pathLocation() method.Orchestra\Testbench\laravel_migration_path() function.[@define-env](https://github.com/define-env)[@environment-setup](https://github.com/environment-setup)[@define-db](https://github.com/define-db)[@define-route](https://github.com/define-route)testbench.yaml configured with seeders: true.$__filename to resolve original PestPHP's testCase file.#[UsesVendor] attribute fails due to unbooted application, causing BindingResolutionException to be thrown.Orchestra\Testbench\package_version_compare() function.Orchestra\Testbench\Concerns\WithFixtures to automatically loads fixtures file for test.JsonResource and JsonApiResource states.Orchestra\Sidekick\package_path() for better root package path detection.Orchestra\Testbench\terminate() and Orchestra\Testbench\bail() function to allow using exit() on pnctl enabled tests.Orchestra\Testbench\uses_default_skeleton() function.Illuminate\Validator\Validator state.Orchestra\Testbench\package_version_compare() function.Orchestra\Testbench\Concerns\WithFixtures to automatically loads fixtures file for test.Illuminate\Support\Str states via during test teardown.Orchestra\Sidekick\package_path() for better root package path detection.Orchestra\Testbench\package_version_compare() function.Orchestra\Testbench\Concerns\WithFixtures to automatically loads fixtures file for test.Orchestra\Foundation\Env now extends Orchestra\Sidekick\Env.Illuminate\Support\Str states via during test teardown.Orchestra\Sidekick\package_path() for better root package path detection.Orchestra\Testbench\package_version_compare() function.Orchestra\Testbench\Concerns\WithFixtures to automatically loads fixtures file for test.Orchestra\Foundation\Env now extends Orchestra\Sidekick\Env.Illuminate\Support\Str states via during test teardown.Orchestra\Sidekick\package_path() for better root package path detection.12.40.0.Orchestra\Testbench\Workbench\Actions\AddAssetSymlinkFoldersOrchestra\Testbench\Workbench\Actions\RemoveAssetSymlinkFolders12.28.0.12.24.0.journal_mode configuration.Collection::make() to new Collection().Orchestra\Foundation\Env now extends Orchestra\Sidekick\Env.Orchestra\Testbench\PHPUnit\TestCase now implements Orchestra\Testbench\Concerns\InteractsWithMockery.Illuminate\Database\Eloquent\Model::automaticallyEagerLoadRelationships() state between tests if the method exists.Orchestra\Testbench\PHPUnit\TestCase now implements Orchestra\Testbench\Concerns\InteractsWithMockery.Orchestra\Testbench\PHPUnit\TestCase now implements Orchestra\Testbench\Concerns\InteractsWithMockery.Orchestra\Testbench\PHPUnit\TestCase now implements Orchestra\Testbench\Concerns\InteractsWithMockery.Illuminate\Database\Eloquent\Model states between tests.Illuminate\Database\Eloquent\Model states between tests.Illuminate\Database\Eloquent\Model states between tests.symfony/polyfill-php84.Closure to Orchestra\Testbench\remote() function.Orchestra\Testbench\remote() function to use Orchestra\Testbench\Foundation\Process\RemoteCommand.TESTBENCH_ENVIRONMENT_FILE_USING to TESTBENCH_ENVIRONMENT_FILE_USING (internal environment variable).Closure to Orchestra\Testbench\remote() function.Orchestra\Testbench\remote() function to use Orchestra\Testbench\Foundation\Process\RemoteCommand.TESTBENCH_ENVIRONMENT_FILE_USING to TESTBENCH_ENVIRONMENT_FILE_USING (internal environment variable).Orchestra\Testbench\remote() function to use Orchestra\Testbench\Foundation\Process\RemoteCommand.TESTBENCH_ENVIRONMENT_FILE_USING to TESTBENCH_ENVIRONMENT_FILE_USING (internal environment variable).workbench/bootstrap/providers.php.Orchestra\Testbench\remote() function to use Orchestra\Testbench\Foundation\Process\RemoteCommand.TESTBENCH_ENVIRONMENT_FILE_USING to TESTBENCH_ENVIRONMENT_FILE_USING (internal environment variable).workbench/bootstrap/providers.php.resolvePhpUnitTestClassName() and resolvePhpUnitTestMethodName() to Orchestra\Testbench\Concerns\InteractsWithPHPUnit trait.usesTestingFeature() to register attribute directly on test method.vendor detection on the default skeleton.Orchestra\Sidekick\is_symlink() function instead of is_link() to improves support on Windows.::class instead of get_class().vendor symlink via package:purge-skeleton command.Orchestra\Testbench\Attributes\UsesVendor::beforeEach() method.[@environment-setup](https://github.com/environment-setup)[@define-env](https://github.com/define-env)[@define-database](https://github.com/define-database)[@define-route](https://github.com/define-route)resolvePhpUnitTestClassName() and resolvePhpUnitTestMethodName() to Orchestra\Testbench\Concerns\InteractsWithPHPUnit trait.usesTestingFeature() to register attribute directly on test method.vendor detection on the default skeleton.Orchestra\Sidekick\is_symlink() function instead of is_link() to improves support on Windows.::class instead of get_class().vendor symlink via package:purge-skeleton command.Orchestra\Testbench\Attributes\UsesVendor::beforeEach() method.[@environment-setup](https://github.com/environment-setup)[@define-env](https://github.com/define-env)[@define-database](https://github.com/define-database)[@define-route](https://github.com/define-route)resolvePhpUnitTestClassName() and resolvePhpUnitTestMethodName() to Orchestra\Testbench\Concerns\InteractsWithPHPUnit trait.usesTestingFeature() to register attribute directly on test method.vendor detection on the default skeleton.Orchestra\Sidekick\is_symlink() function instead of is_link() to improves support on Windows.::class instead of get_class().vendor symlink via package:purge-skeleton command.Orchestra\Testbench\Attributes\UsesVendor::beforeEach() method.resolvePhpUnitTestClassName() and resolvePhpUnitTestMethodName() to Orchestra\Testbench\Concerns\InteractsWithPHPUnit trait.usesTestingFeature() to register attribute directly on test method.vendor detection on the default skeleton.Orchestra\Sidekick\is_symlink() function instead of is_link() to improves support on Windows.::class instead of get_class().vendor symlink via package:purge-skeleton command.Orchestra\Testbench\Attributes\UsesVendor::beforeEach() method.Orchestra\Testbench\TestCase to use Illuminate\Foundation\Testing\Concerns\InteractsWithViews trait.Orchestra\Testbench\once()Orchestra\Testbench\transform_relative_path()Orchestra\Testbench\Concerns\CreatesApplication trait:
getBasePath()getDefaultApplicationBootstrapFile()Orchestra\Testbench\Concerns\InteractsWithMigrations trait:
loadMigrationsWithoutRollbackFrom()loadLaravelMigrationsWithoutRollback()runLaravelMigrationsWithoutRollback()orchestra/sidekick.Illuminate\Foundation\Testing\Concerns\InteractsWithViews.getBasePath() method pending removal in Testbench 10.0.orchestra/sidekick.Illuminate\Foundation\Testing\Concerns\InteractsWithViews.getBasePath() method pending removal in Testbench 10.0.orchestra/sidekick.Illuminate\Foundation\Testing\Concerns\InteractsWithViews.getBasePath() method pending removal in Testbench 10.0.How can I help you explore Laravel packages today?