Update dependency orchestra/testbench to v9 - autoclosed #46
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^8.5->^9.0Release Notes
orchestral/testbench (orchestra/testbench)
v9.5.2Compare Source
Changes
Testbench Changes
Fixes
shouldSeed()exists and returnfalse.v9.5.1Compare Source
Changes
Testbench Changes
Changes
SIGHUP,SIGUSR1, andSIGUSR2signals via Testbench CLI.config/concurrency.phpconfiguration file.Fixes
servecommand to reset published.envandtestbench.yaml.v9.5.0Compare Source
Changes
Testbench Changes
Added
Orchestra\Testbench\Attributes\RequiresDatabaseattribute class.markTestSkippedWhen()andmarkTestSkippedUnless()assertion helper to conditionally handlemarkTestSkipped().Orchestra\Testbench\default_migration_path()helper function.Orchestra\Testbench\laravel_vendor_exists()helper function.Changes
vendorsymlink directory if it was created while running tests.Fixes
view.pathsconfiguration not being updated to includeworkbench/resources/viewsdue to IoC booting sequence.Deprecated
Orchestra\Testbench\laravel_migration_path(), usedefault_migration_path()instead.New Contributors
v9.4.0Compare Source
Changes
Testbench Changes
Added
artisanbinary to Laravel skeleton.Orchestra\Testbench\join_paths()function.Orchestra\Testbench\Attributes\UsesVendorattribute class.defineStashRoutes()method to register adhoc route for test.Changes
Orchestra\Testbench\default_skeleton_path(),Orchestra\Testbench\package_path(), andOrchestra\Testbench\workbench_path()usage based on newOrchestra\Testbench\join_paths()function.v9.3.0Compare Source
Changes
Testbench Changes
Changes
Orchestra\Testbench\Foundation\Console\Actions\GeneratesFileto remove.gitkeepfile when directory contain one or more files.Fixes
InteractsWithPublishedFilesshould only flush published files withindatabase/migrationsdirectory.v9.2.0Compare Source
Changes
Testbench Changes
Added
Orchestra\Testbench\Attributes\ResolvesLaravelOrchestra\Testbench\Attributes\UsesFrameworkConfigurationfactoriesusing Workbench to mapWorkbench\App\ModelstoWorkbench\Database\Factoriesclasses.workbench/app/Console/Commands.Changes
JsonSerializabletoOrchestra\Testbench\Foundation\UndefinedValue.workbenchas default environment value.Orchestra\Testbench\Attributes\DefineandOrchestra\Testbench\Attributes\DefineEnvironmentto be used on the class level by @danjohnson95Fixes
usesTestingFeature()attribute registration is loaded before class attributes instead of method attributes.v9.1.2Compare Source
Changes
Testbench Changes
Fixes
Orchestra\Testbench\Workench\Workbench::applicationExceptionHandler()usage to detectWorkbench\App\Exceptions\Handlerclass.Orchestra\Testbench\Console\KernelandOrchestra\Testbench\Foundation\Console\Kernelunable to discover commands.v9.1.1Compare Source
Changes
Testbench Changes
Changes
Orchestra\Testbench\package_path()function instead ofTESTBENCH_WORKING_PATHconstant.Fixes
Orchestra\Testbench\Attributes\RequiresLaravelattribute usage.v9.1.0Compare Source
Changes
Testbench Changes
Changes
TESTBENCH_WORKING_PATHfrom environment variable before fallback togetcwd().Fixes
v9.0.4Compare Source
Changes
Testbench Changes
Changes
Orchestra\Testbench\remoteto accept$envwith eitherarrayorstring.TESTBENCH_PACKAGE_REMOTE=truewhen running command usingOrchestra\Testbench\remote.workbenchenvironment variable when Testbench CLI is used outside of testing.Fixes
servecommand.runningInUnitTests()returningtruewhen not running tests via Testbench CLI.v9.0.3Compare Source
Changes
11.1.0.Testbench Changes
Changes
HASH_VERIFYenvironment variables.Fixes
RefreshDatabaseStatewhen usingLazilyRefreshDatabasewith SQLite:in-memory:database connections.v9.0.2Compare Source
Changes
Testbench Changes
Fixes
RefreshDatabaseto be executed ontearDown()only limited when ad-hoc migrations was added during test.v9.0.1Compare Source
Changes
Testbench Changes
Changes
ResetRefreshDatabaseStateviatearDownTheTestEnvironmentUsingTestCase()method.RefreshDatabaseState::$migratedandRefreshDatabaseState::$lazilyRefreshedbefore loading migration paths to the instance ofmigrator.utf8mb4_unicode_ci.Fixes
beforeApplicationDestroyed()usage onloadLaravelMigrations()method.RefreshDatabaseusage does not reset the database migrations between tests.class_implements()should only be executed if the Attribute class exists.bootstrap/app.phpwhen configured using a custom skeleton.v9.0.0Compare Source
Added
Changes
Deprecated
Orchestra\Testbench\Concerns\HandlesAnnotationsin line with PHPUnit removal support for meta-comment support using annotation.Removed
Orchestra\Testbench\Concerns\Database\HandlesConnectionstrait.create-sqlite-dbanddrop-sqlite-dbstandalone commands.v8.27.2Compare Source
Changes
Testbench Changes
Fixes
shouldSeed()exists and returnfalse.v8.27.1Compare Source
Changes
Testbench Changes
Changes
SIGHUP,SIGUSR1, andSIGUSR2signals via Testbench CLI.Fixes
servecommand to reset published.envandtestbench.yaml.v8.27.0Compare Source
Changes
Testbench Changes
Added
markTestSkippedWhen()andmarkTestSkippedUnless()assertion helper to conditionally handlemarkTestSkipped().Orchestra\Testbench\default_migration_path()helper function.Orchestra\Testbench\laravel_vendor_exists()helper function.Changes
vendorsymlink directory if it was created while running tests.Fixes
view.pathsconfiguration not being updated to includeworkbench/resources/viewsdue to IoC booting sequence.Deprecated
Orchestra\Testbench\laravel_migration_path(), usedefault_migration_path()instead.New Contributors
v8.26.0Compare Source
Changes
Testbench Changes
Added
artisanbinary to Laravel skeleton.Orchestra\Testbench\join_paths()function.Orchestra\Testbench\Attributes\UsesVendorattribute class.defineStashRoutes()method to register adhoc route for test.Changes
Orchestra\Testbench\default_skeleton_path(),Orchestra\Testbench\package_path(), andOrchestra\Testbench\workbench_path()usage based on newOrchestra\Testbench\join_paths()function.v8.25.0Compare Source
Changes
Testbench Changes
Changes
Orchestra\Testbench\Foundation\Console\Actions\GeneratesFileto remove.gitkeepfile when directory contain one or more files.Fixes
InteractsWithPublishedFilesshould only flush published files withindatabase/migrationsdirectory.v8.24.0Compare Source
Changes
Testbench Changes
Added
Orchestra\Testbench\Attributes\ResolvesLaravelOrchestra\Testbench\Attributes\UsesFrameworkConfigurationfactoriesusing Workbench to mapWorkbench\App\ModelstoWorkbench\Database\Factoriesclasses.workbench/app/Console/Commands.Changes
JsonSerializabletoOrchestra\Testbench\Foundation\UndefinedValue.workbenchas default environment value.Orchestra\Testbench\Attributes\DefineandOrchestra\Testbench\Attributes\DefineEnvironmentto be used on the class level by @danjohnson95Fixes
usesTestingFeature()attribute registration is loaded before class attributes instead of method attributes.v8.23.2Compare Source
Changes
Testbench Changes
Fixes
Orchestra\Testbench\Workench\Workbench::applicationExceptionHandler()usage to detectWorkbench\App\Exceptions\Handlerclass.v8.23.1Compare Source
Changes
Testbench Changes
Changes
Orchestra\Testbench\package_path()function instead ofTESTBENCH_WORKING_PATHconstant.Fixes
Orchestra\Testbench\Attributes\RequiresLaravelattribute usage.v8.23.0Compare Source
Changes
Testbench Changes
Changes
TESTBENCH_WORKING_PATHfrom environment variable before fallback togetcwd().Fixes
v8.22.3Compare Source
Changes
Testbench Changes
Fixes
Changes
Orchestra\Testbench\remoteto accept$envwith eitherarrayorstring.TESTBENCH_PACKAGE_REMOTE=truewhen running command usingOrchestra\Testbench\remote.workbenchenvironment variable when Testbench CLI is used outside of testing.Fixes
servecommand.runningInUnitTests()returningtruewhen not running tests via Testbench CLI.v8.22.2Compare Source
Changes
Testbench Changes
Fixes
RefreshDatabaseto be executed ontearDown()only limited when ad-hoc migrations was added during test.v8.22.1Compare Source
Changes
Testbench Changes
Changes
ResetRefreshDatabaseStateviatearDownTheTestEnvironmentUsingTestCase()method.RefreshDatabaseState::$migratedandRefreshDatabaseState::$lazilyRefreshedbefore loading migration paths to the instance ofmigrator.Fixes
beforeApplicationDestroyed()usage onloadLaravelMigrations()method.RefreshDatabaseusage does not reset the database migrations between tests.class_implements(): Class AllowDynamicProperties does not exist and could not be loadederror on PHP 8.1 and lower.v8.22.0Compare Source
Changes
Testbench Changes
Added
Orchestra\Testbench\Attributes\RequiresLaravelattribute.Orchestra\Testbench\Foundation\Env::has()method.Orchestra\Testbench\load_migration_paths()function.Orchestra\Testbench\once()function.usesRefreshDatabaseTestingConcern()helper method toOrchestra\Testbench\Concerns\InteractsWithTestCasetrait.Changes
MYSQL_*,MSSQL_*,SQLITE_*andPOSTGRES_*environment variables before trying to override the configuration values.$commandtoOrchestra\Testbench\remote()function usingarrayinstead of juststring.Orchestra\Testbench\default_skeleton_path()Orchestra\Testbench\package_path()Orchestra\Testbench\workbench_path()Fixes
Orchestra\Testbench\Attributes\ResetRefreshDatabaseStateattribute declaration to onlyAttribute::TARGET_CLASS.v8.21.1Compare Source
Changes
Testbench Changes
Changes
Fixes
$router->getRoutes()->refreshActionLookups()caused tests to fail.v8.21.0Compare Source
Changes
Testbench Changes
Added
Orchestra\Testbench\Attributes\WithImmutableDatesattribute to forceIlluminate\Support\Dateto useCarbon\CarbonImmutable.Orchestra\Testbench\default_skeleton_pathOrchestra\Testbench\refresh_router_lookupsv8.20.0Compare Source
Changes
laravel/frameworkto10.40.0.Testbench Changes
Added
Orchestra\Testbench\Bootstrap\HandleExceptions::forgetApp()for PHPUnit 10.Changes
route:cacheusingOrchestra\Testbench\remotefunction.setUpTheTestEnvironmentTraitToBeIgnoredmethod:Orchestra\Testbench\Concerns\InteractsWithPestOrchestra\Testbench\Concerns\InteractsWithTestCasev8.19.0Compare Source
Changes
Testbench Changes
Added
Orchestra\Testbench\Features\TestingFeatureas replacement toHandlesTestingFeaturetrait.LOG_DEPRECATIONS_WHILE_TESTING(default totrue) environment variables.Orchestra\Testbench\Contracts\Attributes\AfterAllOrchestra\Testbench\Contracts\Attributes\AfterEachOrchestra\Testbench\Contracts\Attributes\BeforeAllOrchestra\Testbench\Contracts\Attributes\BeforeEachChanges
laravel/frameworkto10.39.0.Orchestra\Testbench\Concerns\InteractsWithPHPUnit.Illuminate\Filesystem\join_pathsfunction.Deprecated
Orchestra\Testbench\Concerns\HandlesTestingFeaturetrait.v8.18.0Compare Source
Changes
Testbench Changes
Added
Orchestra\Testbench\Attributes\RequiresEnvattribute to force an environment variables to be required for the test.Orchestra\Testbench\Attributes\WithConfigattribute add a configuration value for the test.Orchestra\Testbench\Attributes\WithEnvattribute add an environment variable value for the test.set()andforget()methods toOrchestra\Testbench\Foundation\Env.orchestra/pest-plugin-testbench.v8.17.0Compare Source
Changes
Testbench Changes
Added
discovers.componentsconfiguration.Changes
view.pathsconfiguration when Workbench discover views.v8.16.0Compare Source
Changes
Added
Orchestra\Testbench\Attributes\ResetRefreshDatabaseStateattribute to force refreshing database before executing the test.Orchestra\Testbench\Foundation\Bootstrap\SyncDatabaseEnvironmentVariablesbootstrap class and allow database collation to be configurable via environment variables usingMYSQL_COLLATION,POSTGRES_COLLATIONandMSSQL_COLLATION.encode()method toOrchestra\Testbench\Foundation\Envclass.Changes
deferwhen usingOrchestra\Testbench\Attributes\DefineDatabase.#[Override]attribute to relevant methods, this requiresymfony/polyfill-php83as backward compatibility for PHP 8.1 and 8.2.$setupHasRunproperty toOrchestra\Testbench\Concerns\ApplicationTestingHooks.Fixes
Deprecated
Orchestra\Testbench\Concerns\Database\HandlesConnectionstrait.v8.15.0Compare Source
Changes
Testbench Changes
Added
laravel,cache,notifications,queueandsessiondatabase migrations usingOrchestra\Testbench\Attributes\WithMigration.Orchestra\Testbench\defined_environment_variables()function.Orchestra\Testbench\laravel_migration_path()function.Orchestra\Testbench\remote()function.Changes
@api:Orchestra\Testbench\Foundation\ApplicationOrchestra\Testbench\Foundation\ConfigOrchestra\Testbench\Foundation\EnvOrchestra\Testbench\PHPUnit\AttributeParser.v8.14.1Compare Source
Changes
v8.14.0Compare Source
Changes
Testbench Changes
Added
Orchestra\Testbench\Workbench\Workbenchto handle integrations with Workbench.Orchestra\Testbench\Foundation\Config::getWorkbenchDiscoversAttributes()method.Orchestra\Testbench\Concerns\Database\InteractsWithSqliteDatabaseFiletrait.Orchestra\Testbench\Foundation\Application:make()makeFromConfig()createFromConfig()@define-envand@environment-setupwill be replaced withOrchestra\Testbench\Attributes\DefineEnvironment.@define-dbwill be replaced withOrchestra\Testbench\Attributes\DefineDatabase.@define-routewill be replaced withOrchestra\Testbench\Attributes\DefineRoute.Fixes
Orchestra\Testbench\package_path()andOrchestra\Testbench\workbench_path().Deprecated
Orchestra\Testbench\Concerns\WithFactories.Removed
Orchestra\Testbench\Foundation\Bootstrap\StartWorkbench, useOrchestra\Testbench\Workbench\Workbench::start()orOrchestra\Testbench\Workbench\Workbench::startWithProviders()instead.v8.13.0Compare Source
Changes
Testbench Changes
Changes
Orchestra\Testbench\Bootstrap\LoadEnvironmentVariablesclass as@internal.v8.12.3Compare Source
Changes
v8.12.2Compare Source
Changes
10.26.v8.12.1Compare Source
Changes
10.25.v8.12.0Compare Source
Changes
Testbench Changes
Added Added
cachedConfigurationForWorkbench()toOrchestra\Testbench\Concern\InteractsWithWorkbenchtrait.TESTBENCH_WORKING_PATHfrom environment variables for Testbench Dusk usage.discoversconfiguration.usesSqliteInMemoryDatabaseConnectiontoOrchestra\Testbench\Concerns\HandlesDatabasestrait.v8.11.1Compare Source
Changes
10.24.v8.11.0Compare Source
Changes
10.23.1.Testbench Changes
Added
Orchestra\Testbench\Concerns\InteractsWithPublishedFilestrait:assertMigrationFileExists.assertMigrationFileNotExists.Changes
Orchestra\Testbench\Concerns\InteractsWithPublishedFilestrait:cleanUpFilestocleanUpPublishedFiles.cleanUpMigrationFilestocleanUpPublishedMigrationFiles.getMigrationFiletofindFirstPublishedMigrationFile.v8.10.2Compare Source
Changes
10.23.v8.10.1Compare Source
Changes
10.22.v8.10.0Compare Source
Changes
10.21.Testbench Changes
Added
Orchestra\Testbench\Concerns\WithLaravelMigrations.Orchestra\Testbench\Foundation\Console\Actions\DeleteFilesOrchestra\Testbench\Foundation\Console\Actions\DeleteDirectoriesOrchestra\Testbench\Foundation\Console\Actions\EnsureDirectoryExistsOrchestra\Testbench\Foundation\Console\Actions\GeneratesFilev8.9.1Compare Source
Changes
10.20.Testbench Changes
Changes
$modelproperty override when extendingOrchestra\Testbench\Factories\UserFactory.v8.9.0Compare Source
Changes
Testbench Changes
Added
workbench.welcomeconfiguration option.Changes
testbench.yamlconfiguration fallback similar to.env.Illuminate\Support\LazyCollection.Orchestra\Workbench\WorkbenchServiceProviderwhen applyingOrchestra\Testbench\Concerns\WithWorkbench.v8.8.3Compare Source
Changes
Testbench Changes
Fixes
Orchestra\Testbench\Concerns\WithWorkbench.v8.8.2Compare Source
Changes
Testbench Changes
Added
Orchestra\Testbench\Foundation\Console\DevToolCommandfor integration compatibility.Changes
servecommand under Composer's script.Removed
Orchestra\Testbench\Workbenchclasses and functionality is now provided fromorchestra/workbench.v8.8.1Compare Source
Changes
10.19.v8.8.0Compare Source
Changes
Testbench Changes
Added
package:purge-skeletoncommand.Orchestra\Testbench\Concerns\Database\InteractsWithSqliteDatabaseFiletrait.Orchestra\Testbench\package_path()function.orchestra/workbench.Changes
Orchestra\Testbench\Workbench\Bootstrap\StartWorkbenchtoOrchestra\Testbench\Foundation\Bootstrap\StartWorkbench.Fixes
servecommand usage.v8.7.0Compare Source
Changes
Testbench Changes
Added
Orchestra\Testbench\Foundation\Events\ServeCommandStartedOrchestra\Testbench\Foundation\Events\ServeCommandEndedOrchestra\Testbench\Workbench\Events\WorkbenchInstallStartedOrchestra\Testbench\Workbench\Events\WorkbenchInstallEndedChanges
HandlesRoutesloading sequence to match common Laravel bootstrap steps.HandlesAnnotationsandInteractsWithPHPUnittraits.workbenchconfiguration schema.Fixes
Illuminate\Foundation\Application::runningUnitTests()detection.v8.6.3Compare Source
Changes
Testbench Changes
Fixes
app()->environment()detection when creating applicationOrchestra\Testbench\Concerns\CreatesApplicationoutside ofPHPUnit.Undefined array key "autoload-dev"when executingworkbench:installcommand.v8.6.2Compare Source
Changes
Testbench Changes
Added
Orchestra\Testbench\Concerns\InteractsWithPHPUnitto handleCreatesApplicationwithin PHPUnit.Fixes
workbench.startpath when accessing the/route return 404.TESTBENCH_APP_BASE_PATHenvironment variable only when running under tests.v8.6.1Compare Source
Changes
10.18.v8.6.0Compare Source
Changes
Testbench Changes
Added
/_workbenchprefix.migrate:freshandmigrate:refreshOrchestra\Testbench\Contracts\Configto IoC Container and introduce the newOrchestra\Testbench\workbenchandOrchestra\Testbench\workbench_pathhelper function.workbench:install,workbench:create-sqlite-dbandworkbench:drop-sqlite-dbcommands.Orchestra\Testbench\Concerns\WithWorkbenchto automatically loads configuration fromtestbench.yamlwhen running tests.Changes
laravel/frameworkto10.17.0.Deprecated
package:devtool,package:create-sqlite-dbandpackage:drop-sqlite-dbcommands.v8.5.12Compare Source
Changes
10.17.v8.5.11Compare Source
Changes
10.16.v8.5.10Compare Source
Changes
10.15.v8.5.9Compare Source
Changes
laravel/frameworkto10.14.0.v8.5.8Compare Source
Changes
10.14.v8.5.7Compare Source
Changes
laravel/frameworkto10.13.5.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.