Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Aug 8, 2023
2 parents a71469c + 63489c7 commit 04fe21f
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 2 deletions.
23 changes: 23 additions & 0 deletions CHANGELOG-7.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,29 @@

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

## 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` 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
4 changes: 3 additions & 1 deletion 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 Down
2 changes: 1 addition & 1 deletion core
Submodule core updated 68 files
+0 −1 .coveralls.yml
+1 −5 .gitattributes
+2 −1 .github/workflows/strict-tests.yaml
+3 −2 .github/workflows/tests.yaml
+16 −0 CHANGELOG-7.x.md
+16 −0 CHANGELOG-8.x.md
+17 −5 composer.json
+2 −1 laravel/bootstrap/app.php
+1 −0 phpunit.xml
+6 −8 src/Concerns/CreatesApplication.php
+102 −0 src/Concerns/InteractsWithWorkbench.php
+5 −0 src/Concerns/Testing.php
+32 −0 src/Concerns/WithWorkbench.php
+6 −2 src/Console/Commander.php
+30 −0 src/Contracts/Config.php
+0 −27 src/Foundation/Application.php
+60 −4 src/Foundation/Bootstrap/LoadMigrationsFromArray.php
+48 −3 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
+7 −1 src/Foundation/Console/TestFallbackCommand.php
+0 −29 src/Foundation/TestbenchServiceProvider.php
+26 −0 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
+33 −17 src/Workbench/Http/Controllers/WorkbenchController.php
+27 −0 src/Workbench/Http/Middleware/CatchDefaultRoute.php
+60 −0 src/Workbench/WorkbenchServiceProvider.php
+14 −0 src/helpers.php
+1 −1 testbench.yaml
+4 −1 tests/CommanderTest.php
+6 −15 tests/Databases/MigrateDatabaseTest.php
+4 −14 tests/Databases/MigrateDatabaseWithoutMockedConsoleTest.php
+4 −4 tests/Databases/MigrateWithLaravelTest.php
+2 −2 tests/Databases/MigrateWithRealpathAndLaravelTest.php
+1 −1 tests/Databases/MigrateWithRealpathTest.php
+3 −15 tests/Databases/RefreshDatabaseTest.php
+2 −0 tests/Fixtures/Providers/ChildServiceProvider.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
+0 −98 tests/Foundation/Http/Controllers/UserControllerTest.php
+4 −0 tests/Foundation/stubs/testbench.yaml
+35 −1 tests/HelpersTest.php
+26 −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 04fe21f

Please sign in to comment.