This changelog references the relevant changes (bug and security fixes) done to orchestra/testbench-core
.
Released: 2024-12-24
- Add ability to symlink directory in from skeleton to package.
- Use
realpath()
onvendor:publish
output.
Released: 2024-12-19
- Add
Orchestra\Testbench\Workbench\Workbench::flushCachedClassAndNamespaces()
to flush cached namespaces and classes during installation.
Released: 2024-12-18
- Update skeleton to match v11.5.0.
Released: 2024-12-15
- Added
Orchestra\Testbench\transform_realpath_to_relative()
function. - Override Laravel's
vendor:publish
command.
- Add
$force
parameter toOrchestra\Testbench\Workbench\Workbench::detectNamespace()
method.
Released: 2024-12-14
- Fixes database seeding using
Orchestra\Testbench\Concerns\WithWorkbench
andIlluminate\Foundation\Testing\RefreshDatabase
.
Released: 2024-12-06
- Fixes
Orchestra\Testbench\phpunit_version_compare()
function on PHPUnit (dev).
Released: 2024-12-05
- Add support for PHPUnit 11.5.
- Fixes
usesSqliteInMemoryDatabaseConnection()
to be able to handled named in-memory SQLite connections.
Released: 2024-12-01
- Added ability to detect Workbench namespace via
Orchestra\Testbench\Workbench\Workbench::detectNamespace()
method. - Added ability to detect the default user model via
Orchestra\Testbench\Workbench\Workbench::applicationUserModel()
method. - Added support for authentication routes within Workbench by configurating
workbench.auth
config totrue
. - Added new
package:sync-skeleton
command.
- Testbench Dusk integration improvements:
- Refactor
Orchestra\Testbench\Bootstrap\LoadConfiguration
andOrchestra\Testbench\Bootstrap\LoadConfigurationWithWorkbench
to allow being extended by Testbench Dusk. - Refactor
Orchestra\Testbench\Console\Commander
.
- Refactor
- Add
$tty
parameter toOrchestra\Testbench\remote()
function. - Refactor
Orchestra\Testbench\Foundation\Bootstrap\CreateVendorSymlink
class and mark it as@api
. - Add
$backupExistingFile
and$resetOnTerminating
parameter to following methods inOrchestra\Testbench\Foundation\Console\Concerns\CopyTestbenchFiles
trait:copyTestbenchConfigurationFile()
copyTestbenchDotEnvFile()
- Supports
laravel/serializable-closure
v2.
- Deprecate
Orchestra\Testbench\Foundation\Console\Concerns\HandleTerminatingConsole
trait, useOrchestra\Testbench\Foundation\Console\TerminatingConsole
class instead.
Released: 2024-12-06
- Fixes
Orchestra\Testbench\phpunit_version_compare()
function on PHPUnit (dev).
Released: 2024-12-05
- Add support for PHPUnit 11.5.
- Fixes
usesSqliteInMemoryDatabaseConnection()
to be able to handled named in-memory SQLite connections.
Released: 2024-11-21
- Fixes
route:cache
whenhealth: true
configured usingtestbench.yaml
.
Released: 2024-11-20
- Fixes compatibility with Laravel Framework v11.33.0.
Released: 2024-11-18
- Added
Orchestra\Testbench\Foundation\Bootstrap\DeleteVendorSymlink
class. - Added
Orchestra\Testbench\Concerns\InteractsWithMockery
trait. - Added
--database
option topackage:create-sqlite-db
command. - Added
--database
and--all
options topackage:drop-sqlite-db
command. - Added
Orchestra\Testbench\php_binary()
function. - Allows
laravel/serializable-closure
2. - Added draft support for PHP 8.4.
Released: 2024-10-31
- Fixed
#[WithMigration('queue')]
should load the default migrations.
Released: 2024-10-25
- Ensure database directory exists when running
package:create-sqlite-db
. - Allow configuring
PHP_CLI_SERVER_WORKERS
via Composer Script.
Released: 2024-10-24
- Improves
CTRL+C
andCTRL+BREAK
supports on Windows withoutpcntl
extension. Orchestra\Testbench\Foundation\Console\Actions\GeneratesFile
should be able to handle$from
and$to
when given asfalse
ornull
.
Released: 2024-10-06
- Prevent seeder from being executed when
shouldSeed()
exists and returnfalse
.
Released: 2024-10-05
- Listen to
SIGHUP
,SIGUSR1
, andSIGUSR2
signals via Testbench CLI.
- Fixes Testbench CLI signals via
serve
command to reset published.env
andtestbench.yaml
.
Released: 2025-09-25
- Update
config/concurrency.php
configuration file.
Released: 2024-09-23
- Added
Orchestra\Testbench\Attributes\RequiresDatabase
attribute class. - Added
markTestSkippedWhen()
andmarkTestSkippedUnless()
assertion helper to conditionally handlemarkTestSkipped()
. - Added
Orchestra\Testbench\default_migration_path()
helper function. - Added
Orchestra\Testbench\laravel_vendor_exists()
helper function. - Allows TestCase to inherit Attributes defined on parent TestCase by @BlackLanzer in #233.
- Allow Testbench to delete
vendor
symlink directory if it was created while running tests.
- Fixes
view.paths
configuration not being updated to includeworkbench/resources/views
due to IoC booting sequence.
- Deprecated
Orchestra\Testbench\laravel_migration_path()
, usedefault_migration_path()
instead.
Released: 2024-09-12
- Add
concurrency.php
configuration based on Laravel Framework 11.23.
Released: 2024-08-26
- Added
artisan
binary to Laravel skeleton. - Added
Orchestra\Testbench\join_paths()
function. - Added
Orchestra\Testbench\Attributes\UsesVendor
attribute class. - Added
defineStashRoutes()
method to register adhoc route for test.
- Improvements to
Orchestra\Testbench\default_skeleton_path()
,Orchestra\Testbench\package_path()
, andOrchestra\Testbench\workbench_path()
usage based on newOrchestra\Testbench\join_paths()
function.
Released: 2024-08-14
- Update
Orchestra\Testbench\Foundation\Console\Actions\GeneratesFile
to remove.gitkeep
file when directory contain one or more files. - Code Improvements.
Released: 2024-06-28
- Add support for PHPUnit 11.3 by @kayw-geek in #220.
Released: 2024-07-19
- Fixes
InteractsWithPublishedFiles
should only flush published files withindatabase/migrations
directory.
Released: 2024-07-13
- Change
resolveApplicationResolvingCallback()
method visibility fromprivate
toprotected
.
Released: 2024-07-13
- Added new attributes:
Orchestra\Testbench\Attributes\ResolvesLaravel
Orchestra\Testbench\Attributes\UsesFrameworkConfiguration
- Allows to discover
factories
using Workbench to mapWorkbench\App\Models
toWorkbench\Database\Factories
classes. - Allows to auto discover console command classes from
workbench/app/Console/Commands
.
- Bump minimum support to Laravel Framework v11.11.
- Implements
JsonSerializable
toOrchestra\Testbench\Foundation\UndefinedValue
. - Update skeleton to use
workbench
as default environment value. - Allow
Orchestra\Testbench\Attributes\Define
andOrchestra\Testbench\Attributes\DefineEnvironment
to be used on the class level by @danjohnson95
- Ensure
usesTestingFeature()
attribute registration is loaded before class attributes instead of method attributes.
Released: 2024-07-10
- Update skeleton to match v11.1.3.
- Includes
server.php
improvements from Laravel Framework 11.14.
Released: 2024-06-28
- Add support for PHPUnit 11.2.
Released: 2024-06-26
- Fixes
overrideApplicationAliases()
andoverrideApplicationProviders()
unable to override packages aliases or providers.
Released: 2024-06-10
- Defer setting default Rate Limiter until
cache.store
is resolved.
Released: 2024-06-10
- Fallback
app.providers
usingIlluminate\Support\DefaultProviders
when the configuration returnnull
.
Released: 2024-06-06
- Allow
$latestResponse
static property to be optional.
Released: 2024-06-04
- Fixes
Orchestra\Testbench\Workench\Workbench::applicationExceptionHandler()
usage to detectWorkbench\App\Exceptions\Handler
class. - Fixes
Orchestra\Testbench\Console\Kernel
andOrchestra\Testbench\Foundation\Console\Kernel
unable to discover commands.
Released: 2024-06-01
- Fixes
Orchestra\Testbench\Attributes\RequiresLaravel
attribute usage.
Released: 2024-05-23
- Utilise
Orchestra\Testbench\package_path()
function instead ofTESTBENCH_WORKING_PATH
constant. - Update configuration to match Laravel Framework v11.8.0.
Released: 2024-05-21
- Uses
TESTBENCH_WORKING_PATH
from environment variable before fallback togetcwd()
. - PHPStan Improvements.
Released: 2024-05-09
- Update skeleton to match v11.0.7.
Released: 2024-04-24
- Add support for PHPUnit 11.1.
Released: 2024-04-21
- Fixes routing registration using macro with Workbench.
Released: 2024-04-16
- Fixes
serve
command.
Released: 2024-04-13
- Allows
Orchestra\Testbench\remote
to accept$env
with eitherarray
orstring
. - Includes
TESTBENCH_PACKAGE_REMOTE=true
when running command usingOrchestra\Testbench\remote
.
- Fixes
runningInUnitTests()
returningtrue
when not running tests via Testbench CLI.
Released: 2024-04-08
- Flush Static Improvements.
- Revert setting
workbench
environment variable when Testbench CLI is used outside of testing.
Released: 2024-04-05
- Fixes
runningInUnitTests()
returningtrue
when not running tests via Testbench CLI.
Released: 2024-03-27
- Force reset
RefreshDatabaseState
when usingLazilyRefreshDatabase
with SQLite:in-memory:
database connections.
Released: 2024-03-26
- Add support for
HASH_VERIFY
environment variables.
Released: 2024-03-25
- Fixes
RefreshDatabase
to be executed ontearDown()
only limited when ad-hoc migrations was added during test.
Released: 2024-03-19
- Run
ResetRefreshDatabaseState
viatearDownTheTestEnvironmentUsingTestCase()
method.
- Fixes
beforeApplicationDestroyed()
usage onloadLaravelMigrations()
method.
Released: 2024-03-19
- Fixes
RefreshDatabase
usage does not reset the database migrations between tests.
Released: 2024-03-18
- Check against
RefreshDatabaseState::$migrated
andRefreshDatabaseState::$lazilyRefreshed
before loading migration paths to the instance ofmigrator
. - Update skeleton to match v11.0.3.
- Fixes
class_implements()
should only be executed if the Attribute class exists.
Released: 2024-03-14
- Revert default skeleton database collations to
utf8mb4_unicode_ci
.
Released: 2024-03-14
- Testbench CLI should prioritize application kernels defined via
bootstrap/app.php
when configured using a custom skeleton.
Released: 2024-03-13
- Added
usesRefreshDatabaseTestingConcern()
helper method toOrchestra\Testbench\Concerns\InteractsWithTestCase
trait.
- Bump minimum
laravel/framework
to11.0.3
.
Released: 2024-03-12
- Added support for PHPUnit 11.
- Added new
Orchestra\Testbench\Concerns\WithLaravelBootstrapFile
trait. - Added
Orchestra\Testbench\Attributes\RequiresLaravel
attribute. - Added
Orchestra\Testbench\load_migration_paths()
function.
- Update support for Laravel Framework v11.
- Increase minimum PHP version to 8.2 and above (tested with 8.2 and 8.3).
- Validate
MYSQL_*
,MSSQL_*
,SQLITE_*
andPOSTGRES_*
environment variables before trying to override the configuration values.
- Deprecate
Orchestra\Testbench\Concerns\HandlesAnnotations
in line with PHPUnit removal support for meta-comment support using annotation.
- Remove deprecated
Orchestra\Testbench\Concerns\Database\HandlesConnections
trait. - Removed deprecated
create-sqlite-db
anddrop-sqlite-db
standalone commands.