This changelog references the relevant changes (bug and security fixes) done to orchestra/testbench
.
Released: 2021-07-01
- Update minimum support for Testbench Core v6.23.0+. (v6.22.0...v6.23.0)
- Improves generating cached routes during testing.
- Allows to loads
.env
when usingOrchestra\Testbench\Foundation\Application
. - Update skeleton.
Released: 2021-05-25
- Update minimum support for Testbench Core v6.22.0+. (v6.21.3...v6.22.0)
- Added
Orchestra\Testbench\Foundation\Application
to allow creating remote application using Testbench. - Added static public method
Orchestra\Testbench\Concerns\CreatesApplication::applicationBasePath()
to replacegetBasePath()
.
- Update skeleton.
Released: 2021-05-19
- Update minimum support for Testbench Core v6.21.3+. (v6.21.0...v6.21.3)
- Update skeleton to match v8.5.18.
- Check whether skeleton
vendor
is an actual directory before trying to symlink with base directoryvendor
.
- Fixes missing
PHPUnit\Util\Test::parseTestMethodAnnotations()
on PHPUnit 10.
Released: 2021-04-06
- Update minimum support for Testbench Core v6.21.0+. (v6.20.0...v6.21.0)
- Added capability to fetch package discovery from root project.
- Added database-specific environment variables based on ChipperCI.
- Allow configuration to be loaded from
Application::basePath()
instead of hardcoded value.
Released: 2021-03-31
- Update minimum support for Testbench Core v6.20.0+. (v6.19.0...v6.20.0)
- Added ability to run multiple database by adding database specific environment variable. E.g:
MYSQL_HOST
,POSTGRES_HOST
andMSSQL_HOST
instead of justDB_HOST
.
- Use
getcwd()
instead of relative path when setting upTESTBENCH_WORKING_PATH
when executing it viabootstrap/app.php
. - Accept
APP_BASE_PATH
environment variable to configuregetBasePath()
.
Released: 2021-03-21
- Update minimum support for Testbench Core v6.19.0+. (v6.18.0...v6.19.0)
- Added
TESTBENCH_WORKING_DIRECTORY
constant.
- Remove package discovery for
Orchestra\Testbench\Foundation\TestbenchServiceProvider
, the service provider will only be registered from CLI Commander.
Released: 2021-03-16
- Update minimum support for Testbench Core v6.18.0+. (v6.16.0...v6.18.0)
- Bump
spatie/laravel-ray
to v1.17.1+.
- Added support for PHPUnit 10.
- Update Laravel skeleton.
- Add
Date
aliases. - Update
logging
configuration. - Update
validation
language file.
- Add
Released: 2021-02-21
- Update minimum support for Testbench Core v6.16.0+. (v6.15.2...v6.16.0)
- Flush
Queue::createPayloadUsing()
onOrchestra\Testbench\TestCase::tearDown()
.
Released: 2021-02-13
- Update minimum support for Testbench Core v6.15.2+. (v6.15.1...v6.15.2)
- Always attempt to delete
laravel/vendor
symlink folder.
Released: 2021-02-09
- Update minimum support for Testbench Core v6.15.1+. (v6.13.0...v6.15.1)
- Add
defineWebRoutes()
to automatically define routes underweb
middleware.
Released: 2021-01-30
- Update minimum support for Testbench Core v6.13.0+. (v6.12.0...v6.13.0)
- Added
dont-discover
configuration totestbench.yaml
.
Released: 2021-01-29
- Update minimum support for Testbench Core v6.12.0+. (v6.11.1...v6.12.0)
- Added support for Laravel 8 parallel testing:
- Added
package:test
command. - Added
Orchestra\Testbench\Foundation\TestbenchServiceProvider
class.
- Added
Released: 2021-01-18
- Update minimum support for Testbench Core v6.11.1+. (v6.10.0...v6.11.1)
- Improves support for Package Discovery support on test environment and also
testbench
command.
- Fixes tests example.
Released: 2021-01-17
- Update minimum support for Laravel Framework v8.22.1+. (v8.18.1...v8.22.1)
- Update minimum support for Testbench Core v6.10.0+. (v6.9.2...v6.10.0)
- Added
ignorePackageDiscoveriesFrom()
method toOrchestra\Testbench\Concerns\CreatesApplication
trait to allow enable package discoveries during tests. Orchestra\Testbench\Console\Commander
will automatically discover packages.
Released: 2020-12-30
- Update minimum support for Testbench Core v6.9.2+. (v6.9.1...v6.9.2)
Released: 2020-12-28
- Update minimum support for Laravel Framework v8.18.1+. (v8.0.0...v8.18.1)
Released: 2020-12-15
- Update minimum support for Testbench Core v6.9.1+. (v6.8.0...v6.9.1)
- Bump
mockery/mockery
tov1.3.2
and above. - Opt to use
method_exists()
to detect support forparseTestMethodAnnotations()
underHandlesDatabases
andHandlesRoutes
trait. - Update
Orchestra\Testbench\Bootstrap\LoadConfiguration::getConfigurationFiles()
to returnGenerator
instead of array.
Released: 2020-12-09
- Update minimum support for Testbench Core v6.8.0+. (v6.7.0...v6.8.0)
- Added following traits:
Orchestra\Testbench\Concerns\HandlesAnnotations
.Orchestra\Testbench\Concerns\HandlesDatabases
.Orchestra\Testbench\Concerns\HandlesRoutes
.
- Added
defineRoutes()
anddefineCacheRoutes()
to group dedicated tests routing.
Released: 2020-12-01
- Update minimum support for Testbench Core v6.7.0+. (v6.6.0...v6.7.0)
- Added
defineEnvironment()
anddefineDatabaseMigrations()
method toOrchestra\Testbench\TestCase
.defineEnvironment()
usage is identical togetEnvironmentSetUp()
but the original function will remain functioning for now.- Use
defineDatabaseMigrations()
to load any database migrations for the tests. This will allows Testbench to loads it early on the test cycle before to avoid it being clashing usage withDatabaseTransactions
trait.
- Add support to read environment variable from
.env
on skeleton when it's available when used withtestbench
bin command.
- Update Laravel skeleton.
- Remove
filesystems.cloud
configuration.
- Remove
Released: 2020-11-07
- Update minimum support for Testbench Core v6.6.0+. (v6.5.0...v6.6.0)
Released: 2020-10-28
- Update minimum support for Testbench Core v6.5.0+. (v6.2.0...v6.5.0)
- Added support for PHP 8.
- Replace
fzaninotto/faker
withfakerphp/faker
.
Released: 2020-09-28
- Update minimum support for Testbench Core v6.2.0+. (v6.1.0...v6.2.0)
Released: 2020-09-24
Added experimental support for running artisan commands outside of Laravel. e.g:
./vendor/bin/testbench migrate
This would allows you to setup the testing environment before running phpunit
instead of executing everything from within TestCase::setUp()
.
- Update minimum support for Testbench Core v6.1.0+. (v6.0.0...v6.1.0)
Released: 2020-09-08
- Added
Orchestra\Testbench\Factories\UserFactory
to handleIlluminate\Foundation\Auth\User
model. - Automatically autoloads
Illuminate\Database\Eloquent\LegacyFactoryServiceProvider
if the service provider exists.
- Update support for Laravel Framework v8.
- Increase minimum PHP version to 7.3 and above (tested with 7.3 and 7.4).
- Configuration changes:
- Changed
auth.providers.users.model
toIlluminate\Foundation\Auth\User
. - Changed
queue.failed.driver
todatabase-uuid
.
- Changed