Releases: orchestral/testbench
Releases Β· orchestral/testbench
v6.43.2
Changes
- Update minimum support for Testbench Core v6.49.5+. (v6.49.4...v6.49.5)
Testbench Changes
Fixes
- Fixes
RefreshDatabase
to be executed ontearDown()
only limited when ad-hoc migrations was added during test.
v9.0.1
Changes
- Update minimum support for Testbench Core v9.0.6+. (v9.0.1...v9.0.6)
Testbench Changes
Changes
- Run
ResetRefreshDatabaseState
viatearDownTheTestEnvironmentUsingTestCase()
method. - Check against
RefreshDatabaseState::$migrated
andRefreshDatabaseState::$lazilyRefreshed
before loading migration paths to the instance ofmigrator
. - Update skeleton to match v11.0.3.
- Revert default skeleton database collations to
utf8mb4_unicode_ci
.
Fixes
- Fixes
beforeApplicationDestroyed()
usage onloadLaravelMigrations()
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.
v8.22.1
Changes
- Update minimum support for Testbench Core v8.23.4+. (v8.23.0...v8.23.4)
Testbench Changes
Changes
- Run
ResetRefreshDatabaseState
viatearDownTheTestEnvironmentUsingTestCase()
method. - Check against
RefreshDatabaseState::$migrated
andRefreshDatabaseState::$lazilyRefreshed
before loading migration paths to the instance ofmigrator
.
Fixes
- Fixes
beforeApplicationDestroyed()
usage onloadLaravelMigrations()
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.
v7.41.1
Changes
- Update minimum support for Testbench Core v7.42.4+. (v7.42.0...v7.42.4)
Testbench Changes
Changes
- Run
ResetRefreshDatabaseState
viatearDownTheTestEnvironmentUsingTestCase()
method. - Check against
RefreshDatabaseState::$migrated
andRefreshDatabaseState::$lazilyRefreshed
before loading migration paths to the instance ofmigrator
.
Fixes
- Fixes
beforeApplicationDestroyed()
usage onloadLaravelMigrations()
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.
v6.43.1
Changes
- Update minimum support for Testbench Core v6.49.4+. (v6.49.0...v6.49.4)
Testbench Changes
Fixes
- Fixes
beforeApplicationDestroyed()
usage onloadLaravelMigrations()
method. - Fixes
RefreshDatabase
usage does not reset the database migrations between tests. - Check against
RefreshDatabaseState::$migrated
before loading migration paths to the instance ofmigrator
. - Fixes
class_implements(): Class AllowDynamicProperties does not exist and could not be loaded
error on PHP 8.1 and lower.
v9.0.0
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
anddrop-sqlite-db
standalone commands.
v8.22.0
Changes
- Update minimum support for Testbench Core v8.23.0+. (v8.21.1...v8.23.0)
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 toOrchestra\Testbench\Concerns\InteractsWithTestCase
trait.
Changes
- Validate
MYSQL_*
,MSSQL_*
,SQLITE_*
andPOSTGRES_*
environment variables before trying to override the configuration values. - Allow passing
$command
toOrchestra\Testbench\remote()
function usingarray
instead of juststring
. - 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 onlyAttribute::TARGET_CLASS
.
v7.41.0
Changes
- Update minimum support for Testbench Core v7.42.0+. (v7.40.1...v7.42.0)
Testbench Changes
Added
- Added
Orchestra\Testbench\Attributes\RequiresLaravel
attribute. - Added
Orchestra\Testbench\Foundation\Env::has()
method. - Added
Orchestra\Testbench\once()
function. - Added
Orchestra\Testbench\load_migration_paths()
function. - Added
usesRefreshDatabaseTestingConcern()
helper method toOrchestra\Testbench\Concerns\InteractsWithTestCase
trait.
Changes
- Validate
MYSQL_*
,MSSQL_*
,SQLITE_*
andPOSTGRES_*
environment variables before trying to override the configuration values. - Allow passing
$command
toOrchestra\Testbench\remote()
function usingarray
instead of juststring
.
Fixes
- Fixes
Orchestra\Testbench\Attributes\ResetRefreshDatabaseState
attribute declaration to onlyAttribute::TARGET_CLASS
.
v6.43.0
Changes
- Update minimum support for Testbench Core v6.49.0+. (v6.47.1...v6.49.0)
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\laravel_version_compare()
function. - Added
Orchestra\Testbench\phpunit_version_compare()
function. - Added
Orchestra\Testbench\once()
function.
Changes
- Validate
MYSQL_*
,MSSQL_*
,SQLITE_*
andPOSTGRES_*
environment variables before trying to override the configuration values.
v8.21.1
Changes
- Update minimum support for Testbench Core v8.21.1+. (v8.21.0...v8.21.1)
Testbench Changes
Changes
- Support nested configuration files.
Fixes
- Fixes issue with Livewire testing where calling
$router->getRoutes()->refreshActionLookups()
caused tests to fail.