This changelog references the relevant changes (bug and security fixes) done to orchestra/testbench
.
Released: 2025-03-06
- Update minimum support for Testbench Core v10.1.0+. (v10.0.0...v10.1.0)
- Added
resolvePhpUnitTestClassName()
andresolvePhpUnitTestMethodName()
toOrchestra\Testbench\Concerns\InteractsWithPHPUnit
trait.
- Allows
usesTestingFeature()
to register attribute directly on test method. - Improves
vendor
detection on the default skeleton. - Utilise
Orchestra\Sidekick\is_symlink()
function instead ofis_link()
to improves support on Windows. - Use
::class
instead ofget_class()
. - Delete
vendor
symlink viapackage:purge-skeleton
command.
- Fix static variable via
Orchestra\Testbench\Attributes\UsesVendor::beforeEach()
method.
- Deprecate following PHPUnit annotations:
@environment-setup
@define-env
@define-database
@define-route
Released: 2025-02-24
- Update support for Laravel Framework v12.
- Update
Orchestra\Testbench\TestCase
to useIlluminate\Foundation\Testing\Concerns\InteractsWithViews
trait.
- Remove deprecated functions:
Orchestra\Testbench\once()
Orchestra\Testbench\transform_relative_path()
- Remove deprecated methods in
Orchestra\Testbench\Concerns\CreatesApplication
trait:getBasePath()
getDefaultApplicationBootstrapFile()
- Remove deprecated methods in
Orchestra\Testbench\Concerns\InteractsWithMigrations
trait:loadMigrationsWithoutRollbackFrom()
loadLaravelMigrationsWithoutRollback()
runLaravelMigrationsWithoutRollback()