ReviewOS

also looking at this

meemalabs/laravel-media-converter

chore(deps): update dependency orchestra/testbench to v11

#75
Open renovate[bot] wants to merge renovate/orchestra-testbench-11.x into main
11 files +21 -20
8 days ago

ℹ️ Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

PackageChangeAgeConfidence
orchestra/testbench (source)^5.0|^6.0 → 11.0.0ageconfidence

Release Notes

orchestral/testbench (orchestra/testbench)

v11.0.0

Compare Source

Changes
  • Update support for Laravel Framework v13.
Removed
  • Remove deprecated Orchestra\Testbench\Foundation\Env class.
  • Remove deprecated Orchestra\Testbench\Foundation\Console\Concerns\HandleTerminatingConsole trait.
  • Remove deprecated Orchestra\Testbench\Foundation\Console\Actions\Action::pathLocation() method.
  • Remove deprecated Orchestra\Testbench\laravel_migration_path() function.
  • Remove supports for deprecated annotations:
    • @define-env
    • @environment-setup
    • @define-db
    • @define-route

v10.11.0

Compare Source

Changes
  • Update minimum support for Testbench Core v10.11.0+. (v10.10.0...v10.11.0)
  • Supports PHPUnit 13.0.
Testbench Changes
Changes
  • Supports for Laravel Framework 12.55.0.
Fixes
  • Fix --parallel compatibility with WithFixtures trait.

v10.10.0

Compare Source

Changes
  • Update minimum support for Testbench Core v10.10.0+. (v10.9.0...v10.10.0)
  • Supports PHPUnit 13.0.
Testbench Changes
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.

v10.9.0

Compare Source

Changes
Testbench Changes
Added
  • Add Orchestra\Testbench\package_version_compare() function.
  • Add Orchestra\Testbench\Concerns\WithFixtures to automatically loads fixtures file for test.
Changes
  • Supports flushing JsonResource and JsonApiResource states.
  • Supports PHPUnit 12.5.
  • Use Orchestra\Sidekick\package_path() for better root package path detection.

v10.8.0

Compare Source

Changes
  • Update minimum support for Testbench Core v10.8.0+. (v10.7.0...v10.8.0)
  • Update minimum Laravel Framework version to 12.40.0.
Testbench Changes
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

v10.7.0

Compare Source

Changes
  • Update minimum support for Testbench Core v10.7.0+. (v10.6.1...v10.7.0)
  • Update minimum Laravel Framework version to 12.28.0.

v10.6.0

Compare Source

Changes
  • Update minimum Laravel Framework version to 12.24.0.

v10.5.0

Compare Source

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

v10.4.0

Compare Source

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

v10.3.0

Compare Source

Changes
Testbench Changes
Changes
  • Requires Laravel Framework 12.8.0 and above.
  • Orchestra\Testbench\PHPUnit\TestCase now implements Orchestra\Testbench\Concerns\InteractsWithMockery.
  • Flush Illuminate\Database\Eloquent\Model::automaticallyEagerLoadRelationships() state between tests if the method exists.
Fixes
  • Fix handling deprecations logging when logger is not not available when running tests.

v10.2.2

Compare Source

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

v10.2.1

Compare Source

Changes
Testbench Changes
Changes
  • Remove symfony/polyfill-php84.

v10.2.0

Compare Source

Changes
Testbench Changes
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).

v10.1.0

Compare Source

Changes
Testbench Changes
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

v10.0.0

Compare Source

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

v9.17.0

Compare Source

Changes
Testbench Changes
Changes
  • Supports for Laravel Framework 11.50.0.
  • Supports PHPUnit 12.4 and 12.5.
  • Run seeder when testbench.yaml configured with seeders: true.
  • Use predefined $__filename to resolve original PestPHP's testCase file.
Fixes
  • Fix --parallel compatibility with WithFixtures trait.
  • Fix #[UsesVendor] attribute fails due to unbooted application, causing BindingResolutionException to be thrown.

v9.16.0

Compare Source

Changes
Testbench Changes
Added
  • Added Orchestra\Testbench\terminate() and Orchestra\Testbench\bail() function to allow using exit() on pnctl enabled tests.
  • Add Orchestra\Testbench\uses_default_skeleton() function.
  • Supports flushing Illuminate\Validator\Validator state.
  • Add Orchestra\Testbench\package_version_compare() function.
  • Add Orchestra\Testbench\Concerns\WithFixtures to automatically loads fixtures file for test.
Changes
  • Ability to merge Framework configurations when using custom skeleton.
  • Support disabling Laravel default service providers.
  • Flush Illuminate\Support\Str states via during test teardown.
  • Use Orchestra\Sidekick\package_path() for better root package path detection.

v9.15.0

Compare Source

Changes
Testbench Changes
Changes
  • Supports for Laravel Framework 11.45.2 or above (fixed integration with PHPUnit 12.3.4).
  • Supports PHPUnit 12.2 and 12.3.
  • Remove temporary SQLite database files available via journal_mode configuration.
  • Convert Collection::make() to new Collection().

v9.14.0

Compare Source

Changes
Testbench Changes
Changes
  • Orchestra\Testbench\PHPUnit\TestCase now implements Orchestra\Testbench\Concerns\InteractsWithMockery.
Fixes
  • Fix handling deprecations logging when logger is not not available when running tests.

v9.13.1

Compare Source

Changes
Testbench Changes
Changes
  • Supports for Laravel Framework 11.44.7.
  • Flush Illuminate\Database\Eloquent\Model states between tests.

v9.13.0

Compare Source

Changes
Testbench Changes
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).

v9.12.0

Compare Source

Changes
Testbench Changes
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

v9.11.0

Compare Source

Changes
Testbench Changes
Added
  • Use orchestra/sidekick.
  • Implements Illuminate\Foundation\Testing\Concerns\InteractsWithViews.
Changes
  • Supports for Laravel Framework 11.43.0.
Deprecated
  • Re-add deprecated getBasePath() method pending removal in Testbench 10.0.

v9.10.0

Compare Source

Changes
Testbench Changes
Added
  • Add Orchestra\Testbench\Concerns\CreatesApplication::resolveApplicationFacades() method.
  • Add Orchestra\Testbench\Concerns\CreatesApplication::getApplicationBasePath() method as replacement to Orchestra\Testbench\Concerns\CreatesApplication::getBasePath().
  • Add Orchestra\Testbench\Foundation\Application::deleteVendorSymlink() method.
Changes
  • Dynamically resolve workbench namespace for discover.factories.
  • Clear vendor symlink when terminating Testbench CLI.
  • Update config/database.php skeleton file.

v9.9.0

Compare Source

Changes
Testbench Changes
Added
  • Add ability to symlink directory in from skeleton to package.
Changes
  • Update skeleton to match v11.5.0.
  • Add Orchestra\Testbench\Workbench\Workbench::flushCachedClassAndNamespaces() to flush cached namespaces and classes during installation.
  • Use realpath() on vendor:publish output.

v9.8.0

Compare Source

Changes
Testbench Changes
Added
  • Added Orchestra\Testbench\transform_realpath_to_relative() function.
  • Override Laravel's vendor:publish command.
Changes
  • Add $force parameter to Orchestra\Testbench\Workbench\Workbench::detectNamespace() method.

v9.7.0

Compare Source

Changes
Testbench Changes
Added
  • Added ability to detect Workbench namespace via Orchestra\Testbench\Workbench\Workbench::detectNamespace() method.
  • Added ability to detect the default user model via Orchestra\Testbench\Workbench\Workbench::applicationUserModel() method.
  • Added support for authentication routes within Workbench by configurating workbench.auth config to true.
  • Added new package:sync-skeleton command.
Changes
  • Testbench Dusk integration improvements:
    • Refactor Orchestra\Testbench\Bootstrap\LoadConfiguration and Orchestra\Testbench\Bootstrap\LoadConfigurationWithWorkbench to allow being extended by Testbench Dusk.
    • Refactor Orchestra\Testbench\Console\Commander.
  • Add $tty parameter to Orchestra\Testbench\remote() function.
  • Refactor Orchestra\Testbench\Foundation\Bootstrap\CreateVendorSymlink class and mark it as @api.
  • Add $backupExistingFile and $resetOnTerminating parameter to following methods in Orchestra\Testbench\Foundation\Console\Concerns\CopyTestbenchFiles trait:
    • copyTestbenchConfigurationFile()
    • copyTestbenchDotEnvFile()
  • Supports laravel/serializable-closure v2.
Deprecated
  • Deprecate Orchestra\Testbench\Foundation\Console\Concerns\HandleTerminatingConsole trait, use Orchestra\Testbench\Foundation\Console\TerminatingConsole class instead.

v9.6.1

Compare Source

Changes
Testbench Changes
Fixes
  • Fixes route:cache when health: true configured using testbench.yaml.
  • Fixes compatibility with Laravel Framework v11.33.0.

v9.6.0

Compare Source

Changes
Testbench Changes
Added
  • Added Orchestra\Testbench\Foundation\Bootstrap\DeleteVendorSymlink class.
  • Added Orchestra\Testbench\Concerns\InteractsWithMockery trait.
  • Added --database option to package:create-sqlite-db command.
  • Added --database and --all options to package:drop-sqlite-db command.
  • Added Orchestra\Testbench\php_binary() function.
  • Allows laravel/serializable-closure 2.
  • Added draft support for PHP 8.4.
Changes
  • Ensure database directory exists when running package:create-sqlite-db.
  • Allow configuring PHP_CLI_SERVER_WORKERS via Composer Script.
  • Improves CTRL+C and CTRL+BREAK supports on Windows without pcntl extension.
  • Orchestra\Testbench\Foundation\Console\Actions\GeneratesFile should be able to handle $from and $to when given as false or null.
Fixed
  • Fixed #[WithMigration('queue')] should load the default migrations.

v9.5.2

Compare Source

Changes
Testbench Changes
Fixes
  • Prevent seeder from being executed when shouldSeed() exists and return false.

v9.5.1

Compare Source

Changes
Testbench Changes
Changes
  • Listen to SIGHUP, SIGUSR1, and SIGUSR2 signals via Testbench CLI.
  • Update config/concurrency.php configuration file.
Fixes
  • Fixes Testbench CLI signals via serve command to reset published .env and testbench.yaml.

v9.5.0

Compare Source

Changes
Testbench Changes
Added
  • Added Orchestra\Testbench\Attributes\RequiresDatabase attribute class.
  • Added markTestSkippedWhen() and markTestSkippedUnless() assertion helper to conditionally handle markTestSkipped().
  • Added Orchestra\Testbench\default_migration_path() helper function.
  • Added Orchestra\Testbench\laravel_vendor_exists() helper function.
  • Allows TestCase to inherit Attributes defined on parent TestCase by @​BlackLanzer in #​233.
Changes
  • Allow Testbench to delete vendor symlink directory if it was created while running tests.
Fixes
  • Fixes view.paths configuration not being updated to include workbench/resources/views due to IoC booting sequence.
Deprecated
  • Deprecated Orchestra\Testbench\laravel_migration_path(), use default_migration_path() instead.
New Contributors

v9.4.0

Compare Source

Changes
Testbench Changes
Added
  • Added artisan binary to Laravel skeleton.
  • Added Orchestra\Testbench\join_paths() function.
  • Added Orchestra\Testbench\Attributes\UsesVendor attribute class.
  • Added defineStashRoutes() method to register adhoc route for test.
Changes
  • Improvements to Orchestra\Testbench\default_skeleton_path(), Orchestra\Testbench\package_path(), and Orchestra\Testbench\workbench_path() usage based on new Orchestra\Testbench\join_paths() function.

v9.3.0

Compare Source

Changes
Testbench Changes
Changes
  • Update Orchestra\Testbench\Foundation\Console\Actions\GeneratesFile to remove .gitkeep file when directory contain one or more files.
  • Code Improvements.
Fixes
  • Fixes InteractsWithPublishedFiles should only flush published files within database/migrations directory.

v9.2.0

Compare Source

Changes
Testbench Changes
Added
  • Added new attributes:
    • Orchestra\Testbench\Attributes\ResolvesLaravel
    • Orchestra\Testbench\Attributes\UsesFrameworkConfiguration
  • Allows to discover factories using Workbench to map Workbench\App\Models to Workbench\Database\Factories classes.
  • Allows to auto discover console command classes from workbench/app/Console/Commands.
Changes
  • Bump minimum support to Laravel Framework v11.11.
  • Implements JsonSerializable to Orchestra\Testbench\Foundation\UndefinedValue.
  • Update skeleton to use workbench as default environment value.
  • Allow Orchestra\Testbench\Attributes\Define and Orchestra\Testbench\Attributes\DefineEnvironment to be used on the class level by @​danjohnson95
Fixes
  • Ensure usesTestingFeature() attribute registration is loaded before class attributes instead of method attributes.

v9.1.2

Compare Source

Changes
Testbench Changes
Fixes
  • Fixes Orchestra\Testbench\Workench\Workbench::applicationExceptionHandler() usage to detect Workbench\App\Exceptions\Handler class.
  • Fixes Orchestra\Testbench\Console\Kernel and Orchestra\Testbench\Foundation\Console\Kernel unable to discover commands.

v9.1.1

Compare Source

Changes
Testbench Changes
Changes
  • Utilise Orchestra\Testbench\package_path() function instead of TESTBENCH_WORKING_PATH constant.
  • Update configuration to match Laravel Framework v11.8.0.
Fixes
  • Fixes Orchestra\Testbench\Attributes\RequiresLaravel attribute usage.

v9.1.0

Compare Source

Changes
Testbench Changes
Changes
  • Uses TESTBENCH_WORKING_PATH from environment variable before fallback to getcwd().
  • PHPStan Improvements.
  • Add support for PHPUnit 11.1.
  • Update skeleton to match v11.0.7.
Fixes
  • Fixes routing registration using macro with Workbench.

v9.0.4

Compare Source

Changes
Testbench Changes
Changes
  • Allows Orchestra\Testbench\remote to accept $env with either array or string.
  • Includes TESTBENCH_PACKAGE_REMOTE=true when running command using Orchestra\Testbench\remote.
  • Flush Static Improvements.
  • Revert setting workbench environment variable when Testbench CLI is used outside of testing.
Fixes
  • Fixes serve command.
  • Fixes runningInUnitTests() returning true when not running tests via Testbench CLI.

v9.0.3

Compare Source

Changes
  • Update minimum support for Testbench Core v9.0.9+. (v9.0.7...v9.0.9)
  • Update minimum support for Laravel Framework 11.1.0.
Testbench Changes
Changes
  • Add support for HASH_VERIFY environment variables.
Fixes
  • Force reset RefreshDatabaseState when using LazilyRefreshDatabase with SQLite :in-memory: database connections.

v9.0.2

Compare Source

Changes
Testbench Changes
Fixes
  • Fixes RefreshDatabase to be executed on tearDown() only limited when ad-hoc migrations was added during test.

v9.0.1

Compare Source

Changes
Testbench Changes
Changes
  • Run ResetRefreshDatabaseState via tearDownTheTestEnvironmentUsingTestCase() method.
  • Check against RefreshDatabaseState::$migrated and RefreshDatabaseState::$lazilyRefreshed before loading migration paths to the instance of migrator.
  • Update skeleton to match v11.0.3.
  • Revert default skeleton database collations to utf8mb4_unicode_ci.
Fixes
  • Fixes beforeApplicationDestroyed() usage on loadLaravelMigrations() method.
  • Fixes RefreshDatabase usage does not reset the database migrations between tests.
  • Fixes class_implements() should only be executed if the Attribute class exists.
  • Testbench CLI should prioritize application kernels defined via bootstrap/app.php when configured using a custom skeleton.

v9.0.0

Compare Source

Added
  • Added support for PHPUnit 11.
Changes
  • Update support for Laravel Framework v11.
  • Increase minimum PHP version to 8.2 and above (tested with 8.2 and 8.3).
Deprecated
  • Deprecate Orchestra\Testbench\Concerns\HandlesAnnotations in line with PHPUnit removal support for meta-comment support using annotation.
Removed
  • Remove deprecated Orchestra\Testbench\Concerns\Database\HandlesConnections trait.
  • Removed deprecated create-sqlite-db and drop-sqlite-db standalone commands.

v8.37.0

Compare Source

Changes
Testbench Changes
Added
  • Add Orchestra\Testbench\package_version_compare() function.
  • Add Orchestra\Testbench\Concerns\WithFixtures to automatically loads fixtures file for test.
Changes
  • Orchestra\Foundation\Env now extends Orchestra\Sidekick\Env.
  • Support disabling Laravel default service providers.
  • Flush Illuminate\Support\Str states via during test teardown.
  • Use Orchestra\Sidekick\package_path() for better root package path detection.

v8.36.0

Compare Source

Changes
Testbench Changes
Changes
  • Orchestra\Testbench\PHPUnit\TestCase now implements Orchestra\Testbench\Concerns\InteractsWithMockery.
Fixes
  • Fix handling deprecations logging when logger is not not available when running tests.

v8.35.1

Compare Source

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

v8.35.0

Compare Source

Changes
Testbench Changes
Changes
  • 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).
  • Add support for workbench/bootstrap/providers.php.

v8.34.0

Compare Source

Changes
Testbench Changes
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.

v8.33.0

Compare Source

Changes
Testbench Changes
Added
  • Use orchestra/sidekick.
  • Implements Illuminate\Foundation\Testing\Concerns\InteractsWithViews.
Deprecated
  • Re-add deprecated getBasePath() method pending removal in Testbench 10.0.

v8.32.0

Compare Source

Changes
Testbench Changes
Added
  • Add Orchestra\Testbench\Concerns\CreatesApplication::resolveApplicationFacades() method.
  • Add Orchestra\Testbench\Concerns\CreatesApplication::getApplicationBasePath() method as replacement to Orchestra\Testbench\Concerns\CreatesApplication::getBasePath().
  • Add Orchestra\Testbench\Foundation\Application::deleteVendorSymlink() method.
Changes
  • Dynamically resolve workbench namespace for discover.factories.
  • Clear vendor symlink when terminating Testbench CLI.

v8.31.0

Compare Source

Changes
Testbench Changes
Added
  • Add ability to symlink directory in from skeleton to package.
Changes
  • Add Orchestra\Testbench\Workbench\Workbench::flushCachedClassAndNamespaces() to flush cached namespaces and classes during installation.
  • Use realpath() on vendor:publish output.

v8.30.0

Compare Source

Changes
Testbench Changes
Added
  • Added Orchestra\Testbench\transform_realpath_to_relative() function.
  • Override Laravel's vendor:publish command.
Changes
  • Add $force parameter to Orchestra\Testbench\Workbench\Workbench::detectNamespace() method.

v8.29.0

Compare Source

Changes
Testbench Changes
Added
  • Added ability to detect Workbench namespace via Orchestra\Testbench\Workbench\Workbench::detectNamespace() method.
  • Added ability to detect the default user model via Orchestra\Testbench\Workbench\Workbench::applicationUserModel() method.
  • Added support for authentication routes within Workbench by configurating workbench.auth config to true.
  • Added new package:sync-skeleton command.
Changes
  • Testbench Dusk integration improvements:
    • Refactor Orchestra\Testbench\Bootstrap\LoadConfiguration and Orchestra\Testbench\Bootstrap\LoadConfigurationWithWorkbench to allow being extended by Testbench Dusk.
    • Refactor Orchestra\Testbench\Console\Commander.
  • Add multiple environment variables to Laravel 10 skeleton's configuration files based on changes made for Laravel 11.
  • Add $tty parameter to Orchestra\Testbench\remote() function.
  • Refactor Orchestra\Testbench\Foundation\Bootstrap\CreateVendorSymlink class and mark it as @api.
  • Add $backupExistingFile and $resetOnTerminating parameter to following methods in Orchestra\Testbench\Foundation\Console\Concerns\CopyTestbenchFiles trait:
    • copyTestbenchConfigurationFile()
    • copyTestbenchDotEnvFile()
Deprecated
  • Deprecate Orchestra\Testbench\Foundation\Console\Concerns\HandleTerminatingConsole trait, use Orchestra\Testbench\Foundation\Console\TerminatingConsole class instead.

v8.28.0

Compare Source

Changes
Testbench Changes
Added
  • Added Orchestra\Testbench\Foundation\Bootstrap\DeleteVendorSymlink class.
  • Added Orchestra\Testbench\Concerns\InteractsWithMockery trait.
  • Added --database option to package:create-sqlite-db command.
  • Added --database and --all options to package:drop-sqlite-db command.
  • Added Orchestra\Testbench\php_binary() function.
  • Allows laravel/serializable-closure 2.
Changes
  • Change resolveApplicationResolvingCallback() method visibility from private to protected.
  • Ensure database directory exists when running package:create-sqlite-db.
  • Allow configuring PHP_CLI_SERVER_WORKERS via Composer Script.
  • Improves CTRL+C and CTRL+BREAK supports on Windows without pcntl extension.
  • Orchestra\Testbench\Foundation\Console\Actions\GeneratesFile should be able to handle $from and $to when given as false or null.

v8.27.2

Compare Source

Changes
Testbench Changes
Fixes
  • Prevent seeder from being executed when shouldSeed() exists and return false.

v8.27.1

Compare Source

Changes
Testbench Changes
Changes
  • Listen to SIGHUP, SIGUSR1, and SIGUSR2 signals via Testbench CLI.
Fixes
  • Fixes Testbench CLI signals via serve command to reset published .env and testbench.yaml.

v8.27.0

Compare Source

Changes
Testbench Changes
Added
  • Added markTestSkippedWhen() and markTestSkippedUnless() assertion helper to conditionally handle markTestSkipped().
  • Added Orchestra\Testbench\default_migration_path() helper function.
  • Added Orchestra\Testbench\laravel_vendor_exists() helper function.
  • Allows TestCase to inherit Attributes defined on parent TestCase by @​BlackLanzer in orchestral/testbench-core#233.
Changes
  • Allow Testbench to delete vendor symlink directory if it was created while running tests.
Fixes
  • Fixes view.paths configuration not being updated to include workbench/resources/views due to IoC booting sequence.
  • Fixes compatibility with PHPUnit 10.3.
Deprecated
  • Deprecated Orchestra\Testbench\laravel_migration_path(), use default_migration_path() instead.
New Contributors

v8.26.0

Compare Source

Changes
Testbench Changes
Added
  • Added artisan binary to Laravel skeleton.
  • Added Orchestra\Testbench\join_paths() function.
  • Added Orchestra\Testbench\Attributes\UsesVendor attribute class.
  • Added defineStashRoutes() method to register adhoc route for test.
Changes
  • Improvements to Orchestra\Testbench\default_skeleton_path(), Orchestra\Testbench\package_path(), and Orchestra\Testbench\workbench_path() usage based on new Orchestra\Testbench\join_paths() function.

v8.25.0

Compare Source

Changes
Testbench Changes
Changes
  • Update Orchestra\Testbench\Foundation\Console\Actions\GeneratesFile to remove .gitkeep file when directory contain one or more files.
  • Code Improvements.
Fixes
  • Fixes InteractsWithPublishedFiles should only flush published files within database/migrations directory.

v8.24.0

Compare Source

Changes
Testbench Changes
Added
  • Added new attributes:
    • Orchestra\Testbench\Attributes\ResolvesLaravel
    • Orchestra\Testbench\Attributes\UsesFrameworkConfiguration
  • Allows to discover factories using Workbench to map Workbench\App\Models to Workbench\Database\Factories classes.
  • Allows to auto discover console command classes from workbench/app/Console/Commands.
Changes
  • Implements JsonSerializable to Orchestra\Testbench\Foundation\UndefinedValue.
  • Update skeleton to use workbench as default environment value.
  • Allow Orchestra\Testbench\Attributes\Define and Orchestra\Testbench\Attributes\DefineEnvironment to be used on the class level by @​danjohnson95
Fixes
  • Ensure usesTestingFeature() attribute registration is loaded before class attributes instead of method attributes.

v8.23.2

Compare Source

Changes
Testbench Changes
Fixes
  • Fixes Orchestra\Testbench\Workench\Workbench::applicationExceptionHandler() usage to detect Workbench\App\Exceptions\Handler class.

v8.23.1

Compare Source

Changes
Testbench Changes
Changes
  • Utilise Orchestra\Testbench\package_path() function instead of TESTBENCH_WORKING_PATH constant.
Fixes
  • Fixes Orchestra\Testbench\Attributes\RequiresLaravel attribute usage.

v8.23.0

Compare Source

Changes
Testbench Changes
Changes
  • Uses TESTBENCH_WORKING_PATH from environment variable before fallback to getcwd().
  • PHPStan Improvements.
Fixes
  • Backport fixes to routing registration using macro with Workbench.

v8.22.3

Compare Source

Changes
Testbench Changes
Fixes
Changes
  • Allows Orchestra\Testbench\remote to accept $env with either array or string.
  • Includes TESTBENCH_PACKAGE_REMOTE=true when running command using Orchestra\Testbench\remote.
  • Flush Static Improvements.
  • Revert setting workbench environment variable when Testbench CLI is used outside of testing.
Fixes
  • Fixes serve command.
  • Fixes runningInUnitTests() returning true when not running tests via Testbench CLI.

v8.22.2

Compare Source

Changes
Testbench Changes
Fixes
  • Fixes RefreshDatabase to be executed on tearDown() only limited when ad-hoc migrations was added during test.

v8.22.1

Compare Source

Changes
Testbench Changes
Changes
  • Run ResetRefreshDatabaseState via tearDownTheTestEnvironmentUsingTestCase() method.
  • Check against RefreshDatabaseState::$migrated and RefreshDatabaseState::$lazilyRefreshed before loading migration paths to the instance of migrator.
Fixes
  • Fixes beforeApplicationDestroyed() usage on loadLaravelMigrations() method.
  • Fixes RefreshDatabase usage does not reset the database migrations between tests.
  • Fixes class_implements(): Class AllowDynamicProperties does not exist and could not be loaded error on PHP 8.1 and lower.

v8.22.0

Compare Source

Changes
Testbench Changes
Added
  • Added Orchestra\Testbench\Attributes\RequiresLaravel attribute.
  • Added Orchestra\Testbench\Foundation\Env::has() method.
  • Added Orchestra\Testbench\load_migration_paths() function.
  • Added Orchestra\Testbench\once() function.
  • Added usesRefreshDatabaseTestingConcern() helper method to Orchestra\Testbench\Concerns\InteractsWithTestCase trait.
Changes
  • Validate MYSQL_*, MSSQL_*, SQLITE_* and POSTGRES_* environment variables before trying to override the configuration values.
  • Allow passing $command to Orchestra\Testbench\remote() function using array instead of just string.
  • Allow to following functions to accept array of paths:
    • Orchestra\Testbench\default_skeleton_path()
    • Orchestra\Testbench\package_path()
    • Orchestra\Testbench\workbench_path()
Fixes
  • Fixes Orchestra\Testbench\Attributes\ResetRefreshDatabaseState attribute declaration to only Attribute::TARGET_CLASS.

v8.21.1

Compare Source

Changes
Testbench Changes
Changes
  • Support nested configuration files.
Fixes
  • Fixes issue with Livewire testing where calling $router->getRoutes()->refreshActionLookups() caused tests to fail.

v8.21.0

Compare Source

Changes
Testbench Changes
Added
  • Added Orchestra\Testbench\Attributes\WithImmutableDates attribute to force Illuminate\Support\Date to use Carbon\CarbonImmutable.
  • Added the following helper functions:
    • Orchestra\Testbench\default_skeleton_path
    • Orchestra\Testbench\refresh_router_lookups

v8.20.0

Compare Source

Changes
  • Update minimum support for Testbench Core v8.20.0+. (v8.19.0...v8.20.0)
  • Bump minimum laravel/framework to 10.40.0.
Testbench Changes
Added
  • Flush error and exception handlers between tests using Orchestra\Testbench\Bootstrap\HandleExceptions::forgetApp() for PHPUnit 10.
Changes
  • Run route:cache using Orchestra\Testbench\remote function.
  • Add following traits to setUpTheTestEnvironmentTraitToBeIgnored method:
    • Orchestra\Testbench\Concerns\InteractsWithPest
    • Orchestra\Testbench\Concerns\InteractsWithTestCase

v8.19.0

Compare Source

Changes
Testbench Changes
Added
  • Added Orchestra\Testbench\Features\TestingFeature as replacement to HandlesTestingFeature trait.
  • Added support for LOG_DEPRECATIONS_WHILE_TESTING (default to true) environment variables.
  • Add following interfaces for Attribute handling:
    • Orchestra\Testbench\Contracts\Attributes\AfterAll
    • Orchestra\Testbench\Contracts\Attributes\AfterEach
    • Orchestra\Testbench\Contracts\Attributes\BeforeAll
    • Orchestra\Testbench\Contracts\Attributes\BeforeEach
Changes
  • Bump minimum laravel/framework to 10.39.0.
  • Refactor Orchestra\Testbench\Concerns\InteractsWithPHPUnit.
  • Utilise Illuminate\Filesystem\join_paths function.
Deprecated
  • Deprecate Orchestra\Testbench\Concerns\HandlesTestingFeature trait.

v8.18.0

Compare Source

Changes

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

11 changed files on the files tab, with 0 review threads.

Sign in to comment on this pull request.