Skip to content

Latest commit

 

History

History
333 lines (186 loc) · 6.95 KB

File metadata and controls

333 lines (186 loc) · 6.95 KB

Changes for 10.x

This changelog references the relevant changes (bug and security fixes) done to orchestra/testbench-core.

10.14.1

Released: 2026-04-24

Fixes

  • Fix Orchestra\Testbench\Attributes\WithConfig shouldn't defer setting up framework configuration.

10.14.0

Released: 2026-04-23

Changes

  • Loads Orchestra\Testbench\Attributes\WithConfig after application has been booted to allow merging configuration via Service Provider by default. Use defer: false parameter to disable this.

Fixes

  • Fix missing --without-cache option when using package:test command with nunomaduro/collision version 8.9.4+.

10.13.0

Released: 2026-04-07

Changes

  • Supports PHPUnit 13.1.
  • Removed no longer relevants method_exists() and class_exists() usage.

10.12.1

Released: 2026-03-31

Changes

  • Overrides ServeCommand::trap() method to use TerminatingConsole.

10.12.0

Released: 2026-03-24

Changes

  • Add TESTBENCH_USER_MODEL environment variable when running serve command.
  • Utilise Orchestra\Testbench\Foundation\Console\TerminatingConsole when running serve.

10.11.0

Released: 2026-03-18

Changes

  • Supports for Laravel Framework 12.55.0.

Fixes

  • Fix --parallel compatibility with WithFixtures trait.

10.10.0

Released: 2026-03-16

Changes

  • Run seeder when testbench.yaml configured with seeders: true.
  • Use predefined $__filename to resolve original PestPHP's testCase file.
  • Update skeleton.

Fixes

  • Fix #[UsesVendor] attribute fails due to unbooted application, causing BindingResolutionException to be thrown.

10.9.0

Released: 2026-01-12

Added

  • Add Orchestra\Testbench\package_version_compare() function.
  • Add Orchestra\Testbench\Concerns\WithFixtures to automatically loads fixtures file for test.

Changes

  • Use Orchestra\Sidekick\package_path() for better root package path detection.

10.8.2

Released: 2025-12-26

Changes

  • Supports flushing JsonResource and JsonApiResource states.

10.8.1

Released: 2025-12-08

Changes

  • Supports PHPUnit 12.5.

10.8.0

Released: 2025-11-24

Changes

  • PHP 8.5 Compatibility.
  • Supports for Laravel Framework 12.40.0 or above.
  • Fix symlink removal on Windows environment in the following classes:
    • Orchestra\Testbench\Workbench\Actions\AddAssetSymlinkFolders
    • Orchestra\Testbench\Workbench\Actions\RemoveAssetSymlinkFolders

10.7.0

Released: 2025-10-14

Changes

  • Supports for Laravel Framework 12.28.0 or above.
  • Supports PHPUnit 12.4.
  • Support disabling Laravel default service providers.
  • Flush Illuminate\Support\Str states via during test teardown.

10.6.5

Released: 2025-09-03

Added

  • Add Orchestra\Testbench\uses_default_skeleton() function.
  • Supports flushing Illuminate\Validator\Validator state.

Fixes

  • fix loading framework configuration for laravel/framework repository.

10.6.4

Released: 2025-09-03

Added

  • Added Orchestra\Testbench\bail() function to allow using exit() on pnctl enabled tests.

Changes

  • Ability to merge Framework configurations when using custom skeleton.

10.6.3

Released: 2025-08-28

Added

  • Added Orchestra\Testbench\terminate() function to allow using exit() on pnctl enabled tests.

10.6.2

Released: 2025-08-27

Changes

  • Update skeleton's configuration.

Fixes

  • Fix Orchestra\Testbench\remote() with serializable closure usage.

10.6.1

Released: 2025-08-20

Changes

  • Revert minimum supported Laravel Framework version to 12.8.0 and above.

10.6.0

Released: 2025-08-12

Changes

  • Supports for Laravel Framework 12.23.2 or above (fixed integration with PHPUnit 12.3.4).

10.5.0

Released: 2025-08-07

Changes

  • Supports PHPUnit 12.3.
  • Remove temporary SQLite database files available via journal_mode configuration.
  • Convert Collection::make() to new Collection().

10.4.0

Released: 2025-06-08

Changes

  • Supports PHPUnit 12.2.
  • Orchestra\Foundation\Env now extends Orchestra\Sidekick\Env.
  • Update skeleton's configuration.

10.3.0

Released: 2025-05-12

Changes

  • Requires Laravel Framework 12.8.0 and above.
  • Orchestra\Testbench\PHPUnit\TestCase now implements Orchestra\Testbench\Concerns\InteractsWithMockery.

Fixes

  • Fix handling deprecations logging when logger is not not available when running tests.

10.2.3

Released: 2025-05-07

Changes

  • Flush Illuminate\Database\Eloquent\Model::automaticallyEagerLoadRelationships() state between tests if the method exists.

10.2.2

Released: 2025-04-27

Changes

  • Flush Illuminate\Database\Eloquent\Model states between tests.

10.2.1

Released: 2025-04-13

Changes

  • Remove symfony/polyfill-php84.

10.2.0

Released: 2025-04-06

Added

  • Add ability to pass Closure to Orchestra\Testbench\remote() function.

Changes

  • Add support for PHPUnit 12.1.
  • Refactor Orchestra\Testbench\remote() function to use Orchestra\Testbench\Foundation\Process\RemoteCommand.
  • Rename TESTBENCH_ENVIRONMENT_FILE_USING to TESTBENCH_ENVIRONMENT_FILE_USING (internal environment variable).

10.1.0

Released: 2025-03-06

Added

  • Added resolvePhpUnitTestClassName() and resolvePhpUnitTestMethodName() to Orchestra\Testbench\Concerns\InteractsWithPHPUnit trait.

Changes

  • Allows usesTestingFeature() to register attribute directly on test method.
  • Improves vendor detection on the default skeleton.
  • Utilise Orchestra\Sidekick\is_symlink() function instead of is_link() to improves support on Windows.
  • Use ::class instead of get_class().
  • Delete vendor symlink via package:purge-skeleton command.

Fixes

  • Fix static variable via Orchestra\Testbench\Attributes\UsesVendor::beforeEach() method.

Deprecate

  • Deprecate following PHPUnit annotations:
    • @environment-setup
    • @define-env
    • @define-database
    • @define-route

10.0.3

Released: 2025-03-03

Fixes

  • Fix Orchestra\Testbench\Attributes\UsesVendor causes IoC Container to be out of sync.

10.0.2

Released: 2025-02-25

Changes

  • Revert filesystems.disks.local.serve default configuration value to true.

10.0.1

Released: 2025-02-24

Changes

  • Set filesystems.disks.local.serve default configuration value to false.

10.0.0

Released: 2025-02-24

Changes

  • Update support for Laravel Framework v12.
  • Update Orchestra\Testbench\TestCase to use Illuminate\Foundation\Testing\Concerns\InteractsWithViews trait.

Removed

  • 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()