Changes
- Update minimum support for Testbench Core v8.16.0+. (v8.15.0...v8.16.0)
Added
- Added
Orchestra\Testbench\Attributes\ResetRefreshDatabase
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.