packagist orchestra/testbench v8.16.0

latest releases: 9.x-dev, dev-php84, v9.5.2...
11 months ago

Changes

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 using MYSQL_COLLATION, POSTGRES_COLLATION and MSSQL_COLLATION.
  • Added encode() method to Orchestra\Testbench\Foundation\Env class.
Changes
  • Refactor handling attributes:
    • Add ability to handle actions directly from the attribute.
    • Add ability to set defer when using Orchestra\Testbench\Attributes\DefineDatabase.
  • Add #[Override] attribute to relevant methods, this require symfony/polyfill-php83 as backward compatibility for PHP 8.1 and 8.2.
  • Move $setupHasRun property to Orchestra\Testbench\Concerns\ApplicationTestingHooks.
Fixes
  • Fixes registering discovery paths when the path doesn't exist.
Deprecated
  • Deprecate Orchestra\Testbench\Concerns\Database\HandlesConnections trait.

Don't miss a new testbench release

NewReleases is sending notifications on new releases.