Skip to content

Commit

Permalink
Merge branch '8.x' into 9.x
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed Aug 9, 2023
2 parents d21650b + 00d196d commit 7fe26b1
Show file tree
Hide file tree
Showing 7 changed files with 149 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
php:
- 8.2
phpunit:
- "~10.3.0"
- "~10.2.0"
- "~10.1.0"
dependencies:
Expand Down
42 changes: 42 additions & 0 deletions CHANGELOG-7.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,48 @@

This changelog references the relevant changes (bug and security fixes) done to `orchestra/testbench`.

## 7.26.1

Released: 2023-08-09

### Changes

* Update minimum support for Testbench Core v7.26.1+. ([v7.26.0...v7.26.1](https://github.com/orchestral/testbench-core/compare/v7.26.0...v7.26.1))

#### Testbench Changes

##### Added

* Add new `Orchestra\Testbench\Concerns\InteractsWithPHPUnit` to handle `CreatesApplication` within PHPUnit.

##### Fixes

* Fixes `workbench.start` path when accessing the `/` route return 404.
* Only Configure `TESTBENCH_APP_BASE_PATH` environment variable only when running under tests.

## 7.26.0

Released: 2023-08-08

### Changes

* Update minimum support for Testbench Core v7.26.0+. ([v7.25.0...v7.26.0](https://github.com/orchestral/testbench-core/compare/v7.25.0...v7.26.0))

#### Testbench Changes

##### Added

* Added new Workbench support (experimental feature).
- Register routes under `/_workbench` prefix.
- Automatically run configured seeds when executing `migrate:fresh` and `migrate:refresh`
- Bind `Orchestra\Testbench\Contracts\Config` to IoC Container and introduce the new `Orchestra\Testbench\workbench` and `Orchestra\Testbench\workbench_path` helper function.
- Add `workbench:install`, `workbench:create-sqlite-db` and `workbench:drop-sqlite-db` commands.
* Add new `Orchestra\Testbench\Concerns\WithWorkbench` to automatically loads configuration from `testbench.yaml` when running tests.

##### Deprecated

* Deprecated `package:devtool`, `package:create-sqlite-db` and `package:drop-sqlite-db` commands.

## 7.25.0

Released: 2023-06-13
Expand Down
94 changes: 94 additions & 0 deletions CHANGELOG-8.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,100 @@

This changelog references the relevant changes (bug and security fixes) done to `orchestra/testbench`.

## 8.6.2

Released: 2023-08-09

### Changes

* Update minimum support for Testbench Core v8.6.1+. ([v8.6.0...v8.6.1](https://github.com/orchestral/testbench-core/compare/v8.6.0...v8.6.1))

#### Testbench Changes

##### Added

* Add new `Orchestra\Testbench\Concerns\InteractsWithPHPUnit` to handle `CreatesApplication` within PHPUnit.

##### Fixes

* Fixes `workbench.start` path when accessing the `/` route return 404.
* Only Configure `TESTBENCH_APP_BASE_PATH` environment variable only when running under tests.

## 8.6.1

Released: 2023-08-08

### Changes

* Support Laravel Framework `10.18`.

## 8.6.0

Released: 2023-08-08

### Changes

* Update minimum support for Testbench Core v8.6.0+. ([v8.5.7...v8.6.0](https://github.com/orchestral/testbench-core/compare/v8.5.7...v8.6.0))

#### Testbench Changes

##### Added

* Added new Workbench support (experimental feature).
- Register routes under `/_workbench` prefix.
- Automatically run configured seeds when executing `migrate:fresh` and `migrate:refresh`
- Bind `Orchestra\Testbench\Contracts\Config` to IoC Container and introduce the new `Orchestra\Testbench\workbench` and `Orchestra\Testbench\workbench_path` helper function.
- Add `workbench:install`, `workbench:create-sqlite-db` and `workbench:drop-sqlite-db` commands.
* Add new `Orchestra\Testbench\Concerns\WithWorkbench` to automatically loads configuration from `testbench.yaml` when running tests.

##### Changes

* Bump minimum `laravel/framework` to `10.17.0`.

##### Deprecated

* Deprecated `package:devtool`, `package:create-sqlite-db` and `package:drop-sqlite-db` commands.

## 8.5.12

Released: 2023-08-01

### Changes

* Support Laravel Framework `10.17`.

## 8.5.11

Released: 2023-07-25

### Changes

* Support Laravel Framework `10.16`.

## 8.5.10

Released: 2023-07-11

### Changes

* Support Laravel Framework `10.15`.

## 8.5.9

Released: 2023-06-27

### Changes

* Bump minimum `laravel/framework` to `10.14.0`.

## 8.5.8

Released: 2023-06-14

### Changes

* Suspense support for Laravel Framework `10.14`.

## 8.5.7

Released: 2023-06-13
Expand Down
6 changes: 4 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
],
"autoload-dev": {
"psr-4": {
"Orchestra\\Testbench\\Tests\\": "core/tests/"
"Orchestra\\Testbench\\Tests\\": "core/tests/",
"Workbench\\App\\": "core/workbench/app/",
"Workbench\\Database\\": "core/workbench/database/"
}
},
"require": {
Expand All @@ -23,7 +25,7 @@
"laravel/framework": "11.x-dev",
"mockery/mockery": "^1.5.1",
"orchestra/testbench-core": "9.x-dev",
"phpunit/phpunit": ">=10.1.0 <10.3.0",
"phpunit/phpunit": ">=10.1.0 <10.4.0",
"symfony/process": "^6.2",
"symfony/yaml": "^6.2",
"vlucas/phpdotenv": "^5.4.1"
Expand Down
2 changes: 1 addition & 1 deletion core
Submodule core updated 83 files
+0 −1 .coveralls.yml
+1 −5 .gitattributes
+16 −0 .github/workflows/strict-tests.yaml
+20 −0 .github/workflows/tests.yaml
+30 −0 CHANGELOG-7.x.md
+46 −0 CHANGELOG-8.x.md
+17 −4 composer.json
+1 −0 laravel/.env.example
+9 −0 laravel/bootstrap/app.php
+1 −0 phpunit.xml
+3 −10 src/Bootstrap/HandleExceptions.php
+7 −10 src/Concerns/CreatesApplication.php
+58 −0 src/Concerns/InteractsWithPHPUnit.php
+121 −0 src/Concerns/InteractsWithWorkbench.php
+9 −4 src/Concerns/Testing.php
+5 −5 src/Concerns/WithLaravelMigrations.php
+3 −3 src/Concerns/WithLoadMigrationsFrom.php
+32 −0 src/Concerns/WithWorkbench.php
+13 −13 src/Console/Commander.php
+30 −0 src/Contracts/Config.php
+4 −19 src/Database/MigrateProcessor.php
+1 −1 src/Exceptions/ApplicationNotAvailableException.php
+1 −1 src/Exceptions/DeprecatedException.php
+11 −9 src/Factories/UserFactory.php
+7 −3 src/Foundation/Application.php
+3 −10 src/Foundation/Bootstrap/CreateVendorSymlink.php
+3 −10 src/Foundation/Bootstrap/LoadEnvironmentVariablesFromArray.php
+58 −14 src/Foundation/Bootstrap/LoadMigrationsFromArray.php
+57 −9 src/Foundation/Config.php
+4 −0 src/Foundation/Console/Concerns/CopyTestbenchFiles.php
+12 −24 src/Foundation/Console/CreateSqliteDbCommand.php
+9 −96 src/Foundation/Console/DevToolCommand.php
+12 −23 src/Foundation/Console/DropSqliteDbCommand.php
+19 −1 src/Foundation/Console/ServeCommand.php
+5 −0 src/Foundation/Console/TestFallbackCommand.php
+1 −1 src/Foundation/PackageManifest.php
+1 −0 src/Http/Kernel.php
+18 −4 src/TestCase.php
+42 −0 src/Workbench/Bootstrap/StartWorkbench.php
+26 −0 src/Workbench/Composer.php
+2 −2 src/Workbench/Console/Concerns/InteractsWithIO.php
+57 −0 src/Workbench/Console/CreateSqliteDbCommand.php
+56 −0 src/Workbench/Console/DropSqliteDbCommand.php
+222 −0 src/Workbench/Console/InstallCommand.php
+0 −0 src/Workbench/Console/stubs/.gitkeep
+0 −0 src/Workbench/Console/stubs/database.sqlite.example
+2 −0 src/Workbench/Console/stubs/testbench.yaml
+101 −0 src/Workbench/Http/Controllers/WorkbenchController.php
+36 −0 src/Workbench/Http/Middleware/CatchDefaultRoute.php
+60 −0 src/Workbench/WorkbenchServiceProvider.php
+35 −4 src/helpers.php
+1 −0 testbench
+1 −1 testbench.yaml
+4 −2 tests/CommanderTest.php
+6 −15 tests/Databases/MigrateDatabaseTest.php
+4 −14 tests/Databases/MigrateDatabaseWithoutMockedConsoleTest.php
+5 −5 tests/Databases/MigrateWithLaravelTest.php
+2 −2 tests/Databases/MigrateWithRealpathAndLaravelTest.php
+2 −2 tests/Databases/MigrateWithRealpathTest.php
+3 −15 tests/Databases/RefreshDatabaseTest.php
+12 −1 tests/DontDiscoverPackagesTest.php
+2 −0 tests/Fixtures/Providers/ChildServiceProvider.php
+3 −1 tests/Fixtures/Providers/CustomConfigServiceProvider.php
+2 −0 tests/Fixtures/Providers/DeferredChildServiceProvider.php
+0 −11 tests/Fixtures/Providers/ServiceProvider.php
+25 −0 tests/Foundation/Bootstrap/LoadMigrationsFromArrayTest.php
+40 −6 tests/Foundation/ConfigTest.php
+2 −43 tests/Foundation/Console/CreateSqliteDbCommandTest.php
+2 −43 tests/Foundation/Console/DropSqliteDbCommandTest.php
+4 −0 tests/Foundation/stubs/testbench.yaml
+35 −1 tests/HelpersTest.php
+27 −0 tests/WithWorkbenchTest.php
+60 −0 tests/Workbench/Console/CreateSqliteDbCommandTest.php
+60 −0 tests/Workbench/Console/DropSqliteDbCommandTest.php
+199 −0 tests/Workbench/Http/Controllers/WorkbenchControllerTest.php
+103 −0 tests/Workbench/Http/Middleware/CatchDefaultRouteTest.php
+3 −0 workbench/.gitignore
+0 −0 workbench/app/.gitkeep
+13 −0 workbench/app/Providers/TestbenchServiceProvider.php
+0 −0 workbench/database/factories/.gitkeep
+0 −0 workbench/database/migrations/.gitkeep
+1 −1 workbench/database/migrations/2013_07_26_182750_create_testbench_users_table.php
+0 −0 workbench/database/seeders/.gitkeep
2 changes: 2 additions & 0 deletions sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ git submodule init
git submodule foreach git reset --hard HEAD
git submodule foreach git checkout $BRANCH
git submodule foreach git pull

cp -rf core/testbench.yaml ./
5 changes: 5 additions & 0 deletions testbench.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
providers:
- Workbench\App\Providers\TestbenchServiceProvider

env:
APP_NAME: "Testbench"

0 comments on commit 7fe26b1

Please sign in to comment.