Releases: orchestral/testbench
Releases · orchestral/testbench
v8.16.0
Changes
- Update minimum support for Testbench Core v8.16.0+. (v8.15.0...v8.16.0)
Added
- Added
Orchestra\Testbench\Attributes\ResetRefreshDatabaseState
attribute to force refreshing database before executing the test. - Added
Orchestra\Testbench\Foundation\Bootstrap\SyncDatabaseEnvironmentVariables
bootstrap class and allow database collation to be configurable via environment variables usingMYSQL_COLLATION
,POSTGRES_COLLATION
andMSSQL_COLLATION
. - Added
encode()
method toOrchestra\Testbench\Foundation\Env
class.
Changes
- Refactor handling attributes:
- Add ability to handle actions directly from the attribute.
- Add ability to set
defer
when usingOrchestra\Testbench\Attributes\DefineDatabase
.
- Add
#[Override]
attribute to relevant methods, this requiresymfony/polyfill-php83
as backward compatibility for PHP 8.1 and 8.2. - Move
$setupHasRun
property toOrchestra\Testbench\Concerns\ApplicationTestingHooks
.
Fixes
- Fixes registering discovery paths when the path doesn't exist.
Deprecated
- Deprecate
Orchestra\Testbench\Concerns\Database\HandlesConnections
trait.
v7.36.0
Changes
- Update minimum support for Testbench Core v7.36.0+. (v7.35.0...v7.36.0)
Testbench Changes
Added
- Added
Orchestra\Testbench\Attributes\ResetRefreshDatabaseState
attribute to force refreshing database before executing the test. - Added
Orchestra\Testbench\Foundation\Bootstrap\SyncDatabaseEnvironmentVariables
bootstrap class and allow database collation to be configurable via environment variables usingMYSQL_COLLATION
,POSTGRES_COLLATION
andMSSQL_COLLATION
.
Changes
- Refactor handling attributes:
- Add ability to handle actions directly from the attribute.
- Add ability to set
defer
when usingOrchestra\Testbench\Attributes\DefineDatabase
.
Deprecated
- Deprecate
Orchestra\Testbench\Concerns\Database\HandlesConnections
trait.
v6.39.0
Changes
- Update minimum support for Testbench Core v6.43.0+. (v6.42.0...v6.43.0)
Testbench Changes
Added
- Added
Orchestra\Testbench\Attributes\ResetRefreshDatabaseState
attribute to force refreshing database before executing the test. - Added
Orchestra\Testbench\Foundation\Bootstrap\SyncDatabaseEnvironmentVariables
bootstrap class and allow database collation to be configurable via environment variables usingMYSQL_COLLATION
,POSTGRES_COLLATION
andMSSQL_COLLATION
.
Changes
- Refactor handling attributes:
- Add ability to handle actions directly from the attribute.
- Add ability to set
defer
when usingOrchestra\Testbench\Attributes\DefineDatabase
.
Deprecated
- Deprecate
Orchestra\Testbench\Concerns\Database\HandlesConnections
trait.
v8.15.0
Changes
- Update minimum support for Testbench Core v8.15.0+. (v8.14.4...v8.15.0)
Testbench Changes
Added
- Added new PHPUnit Attribute to run the default
laravel
,cache
,notifications
,queue
andsession
database migrations usingOrchestra\Testbench\Attributes\WithMigration
. - Added
Orchestra\Testbench\defined_environment_variables()
function. - Added
Orchestra\Testbench\laravel_migration_path()
function. - Added
Orchestra\Testbench\remote()
function.
Changes
- Mark the following classes as
@api
:Orchestra\Testbench\Foundation\Application
Orchestra\Testbench\Foundation\Config
Orchestra\Testbench\Foundation\Env
- Cache results from
Orchestra\Testbench\PHPUnit\AttributeParser
.
v7.35.0
Changes
- Update minimum support for Testbench Core v7.35.0+. (v7.34.0...v7.35.0)
Testbench Changes
Added
- Added new PHPUnit Attribute to run the default
laravel
,cache
,notifications
,queue
andsession
database migrations usingOrchestra\Testbench\Attributes\WithMigration
. - Added
Orchestra\Testbench\defined_environment_variables()
function. - Added
Orchestra\Testbench\laravel_migration_path()
function. - Added
Orchestra\Testbench\remote()
function.
Changes
- Mark the following classes as
@api
:Orchestra\Testbench\Foundation\Application
Orchestra\Testbench\Foundation\Config
Orchestra\Testbench\Foundation\Env
- Cache results from
Orchestra\Testbench\PHPUnit\AttributeParser
.
v6.38.0
Changes
- Update minimum support for Testbench Core v6.42.0+. (v6.41.0...v6.42.0)
Testbench Changes
Added
- Added new PHPUnit Attribute to run the default
laravel
,cache
,notifications
,queue
andsession
database migrations usingOrchestra\Testbench\Attributes\WithMigration
. - Added
Orchestra\Testbench\Bootstrap\ConfigureRay
class. - Added
Orchestra\Testbench\defined_environment_variables()
function. - Added
Orchestra\Testbench\laravel_migration_path()
function. - Added
Orchestra\Testbench\remote()
function.
Changes
- Mark the following classes as
@api
:Orchestra\Testbench\Foundation\Application
Orchestra\Testbench\Foundation\Config
Orchestra\Testbench\Foundation\Env
- Cache results from
Orchestra\Testbench\PHPUnit\AttributeParser
.
v8.14.1
Changes
- Update minimum support for Testbench Core v8.14.4+. (v8.14.0...v8.14.4)
- Add support for Workbench 8.0+.
v7.34.1
v8.14.0
Changes
- Update minimum support for Testbench Core v8.14.0+. (v8.13.0...v8.14.0)
- Add support for Workbench 1.0+.
Testbench Changes
Added
- Added
Orchestra\Testbench\Workbench\Workbench
to handle integrations with Workbench. - Added
Orchestra\Testbench\Foundation\Config::getWorkbenchDiscoversAttributes()
method. - Added
Orchestra\Testbench\Concerns\Database\InteractsWithSqliteDatabaseFile
trait. - Added following methods to
Orchestra\Testbench\Foundation\Application
:make()
makeFromConfig()
createFromConfig()
- Added support for PHPUnit Attribute as replacements to Annotations:
@define-env
and@environment-setup
will be replaced withOrchestra\Testbench\Attributes\DefineEnvironment
.@define-db
will be replaced withOrchestra\Testbench\Attributes\DefineDatabase
.@define-route
will be replaced withOrchestra\Testbench\Attributes\DefineRoute
.
Fixes
- Fixes generating path using
Orchestra\Testbench\package_path()
andOrchestra\Testbench\workbench_path()
.
Deprecated
- Deprecate
Orchestra\Testbench\Concerns\WithFactories
.
Removed
- Remove
Orchestra\Testbench\Foundation\Bootstrap\StartWorkbench
, useOrchestra\Testbench\Workbench\Workbench::start()
orOrchestra\Testbench\Workbench\Workbench::startWithProviders()
instead.
v7.34.0
Changes
- Update minimum support for Testbench Core v7.34.0+. (v7.33.0...v7.34.0)
- Add support for Workbench 1.0+.
Testbench Changes
Added
- Added
Orchestra\Testbench\Workbench\Workbench
to handle integrations with Workbench. - Added
Orchestra\Testbench\Foundation\Config::getWorkbenchDiscoversAttributes()
method. - Added
Orchestra\Testbench\Concerns\Database\InteractsWithSqliteDatabaseFile
trait. - Added following methods to
Orchestra\Testbench\Foundation\Application
:make()
makeFromConfig()
createFromConfig()
- Added support for PHPUnit Attribute as replacements to Annotations:
@define-env
and@environment-setup
will be replaced withOrchestra\Testbench\Attributes\DefineEnvironment
.@define-db
will be replaced withOrchestra\Testbench\Attributes\DefineDatabase
.@define-route
will be replaced withOrchestra\Testbench\Attributes\DefineRoute
.
Fixes
- Fixes generating path using
Orchestra\Testbench\package_path()
andOrchestra\Testbench\workbench_path()
.
Deprecated
- Deprecate
Orchestra\Testbench\Concerns\WithFactories
.
Removed
- Remove
Orchestra\Testbench\Foundation\Bootstrap\StartWorkbench
, useOrchestra\Testbench\Workbench\Workbench::start()
orOrchestra\Testbench\Workbench\Workbench::startWithProviders()
instead.