From d81effd19aa97170b151da6f35cf9c485e2c31b7 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Fri, 1 Sep 2023 16:33:05 +0800 Subject: [PATCH 01/34] wip --- .github/workflows/tests.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 5a2ec58..80cc87d 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -18,6 +18,7 @@ jobs: php: - 8.1 - 8.2 + - 8.3 phpunit: - "~10.3.0" - "~10.2.0" From b2106faa84ac0c813d02c7bc647b730b1ae22003 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Tue, 5 Sep 2023 15:14:57 +0800 Subject: [PATCH 02/34] wip Signed-off-by: Mior Muhammad Zaki --- core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core b/core index df26b86..3f9dcd0 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit df26b86117831f6b167b00c1d797d2914e99a1f1 +Subproject commit 3f9dcd0a1f42b0aadbaf2910e50bde47173ddc96 From f8b262e935db08e08fca9a3db0371b79d9d3b987 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Tue, 5 Sep 2023 15:15:48 +0800 Subject: [PATCH 03/34] wip Signed-off-by: Mior Muhammad Zaki --- core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core b/core index 3f9dcd0..5693ade 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit 3f9dcd0a1f42b0aadbaf2910e50bde47173ddc96 +Subproject commit 5693ade935266529b5f6a0b0e9392d999793219e From 2c31bbc270e16b27a76b2dc8e1901aafbcd9eb0b Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Tue, 5 Sep 2023 21:23:56 +0800 Subject: [PATCH 04/34] wip --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 699c454..f8af35a 100644 --- a/composer.json +++ b/composer.json @@ -22,10 +22,10 @@ "php": "^8.1", "composer-runtime-api": "^2.2", "fakerphp/faker": "^1.21", - "laravel/framework": ">=10.17.0 <10.22.0", + "laravel/framework": ">=10.17.0 <10.23.0", "mockery/mockery": "^1.5.1", "orchestra/testbench-core": ">=8.10.0 <8.11.0", - "orchestra/workbench": "^0.2.4", + "orchestra/workbench": "^0.2.6", "phpunit/phpunit": "^9.6 || ^10.1", "spatie/laravel-ray": "^1.32.4", "symfony/process": "^6.2", From 7ef690296263a2e7787bcfe36e95e67ae337806f Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Tue, 5 Sep 2023 21:27:03 +0800 Subject: [PATCH 05/34] wip --- CHANGELOG-8.x.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CHANGELOG-8.x.md b/CHANGELOG-8.x.md index 1d5d9df..72bfc50 100644 --- a/CHANGELOG-8.x.md +++ b/CHANGELOG-8.x.md @@ -2,6 +2,14 @@ This changelog references the relevant changes (bug and security fixes) done to `orchestra/testbench`. +## 8.10.1 + +Released: 2023-09-05 + +### Changes + +* Support Laravel Framework `10.22`. + ## 8.10.0 Released: 2023-08-29 From 55dd97d7a8f7154c5660e71b9222e28485917719 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Tue, 12 Sep 2023 23:19:41 +0800 Subject: [PATCH 06/34] Prepare 8.10.2 release Signed-off-by: Mior Muhammad Zaki --- CHANGELOG-8.x.md | 8 ++++++++ composer.json | 2 +- core | 2 +- testbench.yaml | 3 +++ 4 files changed, 13 insertions(+), 2 deletions(-) diff --git a/CHANGELOG-8.x.md b/CHANGELOG-8.x.md index 72bfc50..79ce556 100644 --- a/CHANGELOG-8.x.md +++ b/CHANGELOG-8.x.md @@ -2,6 +2,14 @@ This changelog references the relevant changes (bug and security fixes) done to `orchestra/testbench`. +## 8.10.2 + +Released: 2023-09-12 + +### Changes + +* Support Laravel Framework `10.23`. + ## 8.10.1 Released: 2023-09-05 diff --git a/composer.json b/composer.json index f8af35a..5c74b6a 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,7 @@ "php": "^8.1", "composer-runtime-api": "^2.2", "fakerphp/faker": "^1.21", - "laravel/framework": ">=10.17.0 <10.23.0", + "laravel/framework": ">=10.17.0 <10.24.0", "mockery/mockery": "^1.5.1", "orchestra/testbench-core": ">=8.10.0 <8.11.0", "orchestra/workbench": "^0.2.6", diff --git a/core b/core index 5693ade..e8f1a4d 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit 5693ade935266529b5f6a0b0e9392d999793219e +Subproject commit e8f1a4d3121887e9f5c5607f117701ea7dfa066a diff --git a/testbench.yaml b/testbench.yaml index 8931a5b..3fa5613 100644 --- a/testbench.yaml +++ b/testbench.yaml @@ -4,5 +4,8 @@ providers: env: APP_NAME: "Testbench" +migrations: + - workbench/database/migrations + purge: directories: public/vendor/* From 8e1dc22d2f3faf0cbf23552cc2a3590abed50b84 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Tue, 19 Sep 2023 09:08:41 +0800 Subject: [PATCH 07/34] wip --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 5c74b6a..1990616 100644 --- a/composer.json +++ b/composer.json @@ -25,7 +25,7 @@ "laravel/framework": ">=10.17.0 <10.24.0", "mockery/mockery": "^1.5.1", "orchestra/testbench-core": ">=8.10.0 <8.11.0", - "orchestra/workbench": "^0.2.6", + "orchestra/workbench": "^0.2.6 || ^0.3.0", "phpunit/phpunit": "^9.6 || ^10.1", "spatie/laravel-ray": "^1.32.4", "symfony/process": "^6.2", From 64fa763a7e1a5ab151bfefa46adcdf950e7b99b1 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Tue, 19 Sep 2023 13:38:25 +0800 Subject: [PATCH 08/34] wip Signed-off-by: Mior Muhammad Zaki --- .gitattributes | 1 + composer.json | 4 +- core | 2 +- testbench.yaml | 3 ++ ...26_182750_create_testbench_users_table.php | 42 +++++++++++++++++++ 5 files changed, 49 insertions(+), 3 deletions(-) create mode 100644 workbench/database/migrations/2013_07_26_182750_create_testbench_users_table.php diff --git a/.gitattributes b/.gitattributes index b40b251..a064899 100644 --- a/.gitattributes +++ b/.gitattributes @@ -10,6 +10,7 @@ /.travis.yml export-ignore /phpunit.xml export-ignore /sync.sh export-ignore +/testbench.yaml export-ignore /CHANGELOG-*.md export-ignore /CODE_OF_CONDUCT.md export-ignore /CONTRIBUTING.md export-ignore diff --git a/composer.json b/composer.json index 0c3d41d..fd9877d 100644 --- a/composer.json +++ b/composer.json @@ -23,8 +23,8 @@ "fakerphp/faker": "^1.21", "laravel/framework": "^9.52.15", "mockery/mockery": "^1.5.1", - "orchestra/testbench-core": "^7.30", - "orchestra/workbench": "^0.2.4", + "orchestra/testbench-core": "^7.31", + "orchestra/workbench": "^0.2.6 || ^0.3.0", "phpunit/phpunit": "^9.5.10", "spatie/laravel-ray": "^1.32.4", "symfony/process": "^6.0.9", diff --git a/core b/core index 7efc828..8ff76ec 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit 7efc82868714a391cdf05d53f079a2769c62782b +Subproject commit 8ff76ec836dacb3a0eb7442e63d594ff107745d3 diff --git a/testbench.yaml b/testbench.yaml index 8931a5b..3fa5613 100644 --- a/testbench.yaml +++ b/testbench.yaml @@ -4,5 +4,8 @@ providers: env: APP_NAME: "Testbench" +migrations: + - workbench/database/migrations + purge: directories: public/vendor/* diff --git a/workbench/database/migrations/2013_07_26_182750_create_testbench_users_table.php b/workbench/database/migrations/2013_07_26_182750_create_testbench_users_table.php new file mode 100644 index 0000000..e516f40 --- /dev/null +++ b/workbench/database/migrations/2013_07_26_182750_create_testbench_users_table.php @@ -0,0 +1,42 @@ +increments('id'); + $table->string('email'); + $table->string('password'); + + $table->timestamps(); + }); + + $now = Carbon::now(); + + DB::table('testbench_users')->insert([ + 'email' => 'crynobone@gmail.com', + 'password' => Hash::make('123'), + 'created_at' => $now, + 'updated_at' => $now, + ]); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('testbench_users'); + } +}; From 6c11b549e46b2f08bba1b87f69c97207ffbf96d1 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Tue, 19 Sep 2023 13:39:59 +0800 Subject: [PATCH 09/34] wip Signed-off-by: Mior Muhammad Zaki --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index fd9877d..c7bc99c 100644 --- a/composer.json +++ b/composer.json @@ -24,7 +24,7 @@ "laravel/framework": "^9.52.15", "mockery/mockery": "^1.5.1", "orchestra/testbench-core": "^7.31", - "orchestra/workbench": "^0.2.6 || ^0.3.0", + "orchestra/workbench": "^0.3.0", "phpunit/phpunit": "^9.5.10", "spatie/laravel-ray": "^1.32.4", "symfony/process": "^6.0.9", From d14028a1756d3a22a6997cae93f317981657105e Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Tue, 19 Sep 2023 13:41:41 +0800 Subject: [PATCH 10/34] Prepare 7.31.0 release Signed-off-by: Mior Muhammad Zaki --- CHANGELOG-7.x.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/CHANGELOG-7.x.md b/CHANGELOG-7.x.md index 7cb8564..a1afad4 100644 --- a/CHANGELOG-7.x.md +++ b/CHANGELOG-7.x.md @@ -2,6 +2,32 @@ This changelog references the relevant changes (bug and security fixes) done to `orchestra/testbench`. +## 7.31.0 + +Released: 2023-09-19 + +### Changes + +* Update minimum support for Testbench Core v7.31.0+. ([v7.30.0...v7.31.0](https://github.com/orchestral/testbench-core/compare/v7.30.0...v7.31.0)) +* Update minimum support for Workbench 0.3.0+. + +#### Testbench Changes + +##### Added + +* Added methods to `Orchestra\Testbench\Concerns\InteractsWithPublishedFiles` trait: + - `assertMigrationFileExists`. + - `assertMigrationFileNotExists`. + +##### Changes + +* Allow passing wildcard filenames to `Orchestra\Testbench\Concerns\InteractsWithPublishedFiles::$files` property. +* Allow using custom directory on `assertMigrationFileContains` and `assertMigrationFileNotContains` from `Orchestra\Testbench\Concerns\InteractsWithPublishedFiles` trait. +* Rename methods in `Orchestra\Testbench\Concerns\InteractsWithPublishedFiles` trait: + - `cleanUpFiles` to `cleanUpPublishedFiles`. + - `cleanUpMigrationFiles` to `cleanUpPublishedMigrationFiles`. + - `getMigrationFile` to `findFirstPublishedMigrationFile`. + ## 7.30.0 Released: 2023-08-29 From f59dc5a40db35566b74b50fab136508992847be5 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Tue, 19 Sep 2023 13:48:23 +0800 Subject: [PATCH 11/34] wip Signed-off-by: Mior Muhammad Zaki --- core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core b/core index e8f1a4d..8e7651f 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit e8f1a4d3121887e9f5c5607f117701ea7dfa066a +Subproject commit 8e7651fc3cfb19897ace06e9f9db4193f17f723c From b48283a664264d2ac56eb26f2468752b0f4646df Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Tue, 19 Sep 2023 13:50:40 +0800 Subject: [PATCH 12/34] wip Signed-off-by: Mior Muhammad Zaki --- CHANGELOG-8.x.md | 20 ++++++++++++++++++++ composer.json | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/CHANGELOG-8.x.md b/CHANGELOG-8.x.md index 79ce556..702d3ec 100644 --- a/CHANGELOG-8.x.md +++ b/CHANGELOG-8.x.md @@ -2,6 +2,26 @@ This changelog references the relevant changes (bug and security fixes) done to `orchestra/testbench`. +## 8.11.0 + +Released: 2023-09-19 + +### Changes + +* Update minimum support for Laravel Framework `10.23.1`. +* Update minimum support for Testbench Core v8.11.0+. ([v8.10.0...v8.11.0](https://github.com/orchestral/testbench-core/compare/v8.10.0...v8.11.0)) + +#### Testbench Changes + +##### Added + +* Add ability to automatically run default Laravel migrations using `Orchestra\Testbench\Concerns\WithLaravelMigrations`. +* Add Console Actions classes: + - `Orchestra\Testbench\Foundation\Console\Actions\DeleteFiles` + - `Orchestra\Testbench\Foundation\Console\Actions\DeleteDirectories` + - `Orchestra\Testbench\Foundation\Console\Actions\EnsureDirectoryExists` + - `Orchestra\Testbench\Foundation\Console\Actions\GeneratesFile` + ## 8.10.2 Released: 2023-09-12 diff --git a/composer.json b/composer.json index 1990616..3072e77 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,7 @@ "php": "^8.1", "composer-runtime-api": "^2.2", "fakerphp/faker": "^1.21", - "laravel/framework": ">=10.17.0 <10.24.0", + "laravel/framework": ">=10.23.1 <10.24.0", "mockery/mockery": "^1.5.1", "orchestra/testbench-core": ">=8.10.0 <8.11.0", "orchestra/workbench": "^0.2.6 || ^0.3.0", From f5df2e80d3b9b7e685c71e9849f4423778372bb8 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Tue, 19 Sep 2023 20:45:59 +0800 Subject: [PATCH 13/34] wip --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 01a2135..ea0f5f0 100644 --- a/composer.json +++ b/composer.json @@ -22,9 +22,9 @@ "php": "^8.1", "composer-runtime-api": "^2.2", "fakerphp/faker": "^1.21", - "laravel/framework": ">=10.23.1 <10.24.0", + "laravel/framework": ">=10.23.1 <10.25.0", "mockery/mockery": "^1.5.1", - "orchestra/testbench-core": ">=8.11.0 <8.12.0", + "orchestra/testbench-core": ">=8.11.1 <8.12.0", "orchestra/workbench": "^0.3.0", "phpunit/phpunit": "^9.6 || ^10.1", "spatie/laravel-ray": "^1.32.4", From 9ae0506585b2b28d43027501c6931d7fa2565bda Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Wed, 20 Sep 2023 06:00:00 +0800 Subject: [PATCH 14/34] Prepare 8.11.1 release --- CHANGELOG-8.x.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CHANGELOG-8.x.md b/CHANGELOG-8.x.md index bcfd4c3..26154f0 100644 --- a/CHANGELOG-8.x.md +++ b/CHANGELOG-8.x.md @@ -2,6 +2,15 @@ This changelog references the relevant changes (bug and security fixes) done to `orchestra/testbench`. +## 8.11.1 + +Released: 2023-09-20 + +### Changes + +* Support Laravel Framework `10.24`. +* Update minimum support for Testbench Core v8.11.1+. ([v8.11.0...v8.11.1](https://github.com/orchestral/testbench-core/compare/v8.11.0...v8.11.1)) + ## 8.11.0 Released: 2023-09-19 From 3de0c9169af8fb07baa10eabd18845927a7cd453 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Wed, 20 Sep 2023 12:02:22 +0800 Subject: [PATCH 15/34] wip Signed-off-by: Mior Muhammad Zaki --- bin/sync | 31 +++++++++++++++++++++++++++++++ core | 2 +- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100755 bin/sync diff --git a/bin/sync b/bin/sync new file mode 100755 index 0000000..1a381f3 --- /dev/null +++ b/bin/sync @@ -0,0 +1,31 @@ +#!/usr/bin/env php +>>> Checkout branch {$BRANCH}"; + +Illuminate\Support\Collection::make([ + "git checkout $BRANCH", + "git submodule init", + "git submodule foreach git reset --hard HEAD", + "git submodule foreach git checkout $BRANCH", + "git submodule foreach git pull", +])->each(function ($command) use ($workingPath) { + Symfony\Component\Process\Process::fromShellCommandline($command, $workingPath)->mustRun(); +}); + +$files->copy("{$workingPath}/core/testbench.yaml", "{$workingPath}/testbench.yaml"); + + Illuminate\Support\Collection::make([ + ...$files->glob("{$workingPath}/core/workbench") + ])->flatten() + ->filter(fn ($file) => is_file($file)) + ->each(function ($file) use ($files, $workingPath) { + $files->copy($file, "{$workingPath}/workbench".Illuminate\Support\Str::after($file, "{$workingPath}/core/workbench")); + }); diff --git a/core b/core index 8ff76ec..e20aa24 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit 8ff76ec836dacb3a0eb7442e63d594ff107745d3 +Subproject commit e20aa24d3b6ca26afb49ad3e579618293c43068c From 4cac43a87c5b13af2ca1298cdb3125caf5807095 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Wed, 20 Sep 2023 12:02:32 +0800 Subject: [PATCH 16/34] wip Signed-off-by: Mior Muhammad Zaki --- bin/sync | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/bin/sync b/bin/sync index 1a381f3..4c07f26 100755 --- a/bin/sync +++ b/bin/sync @@ -22,10 +22,10 @@ Illuminate\Support\Collection::make([ $files->copy("{$workingPath}/core/testbench.yaml", "{$workingPath}/testbench.yaml"); - Illuminate\Support\Collection::make([ - ...$files->glob("{$workingPath}/core/workbench") - ])->flatten() - ->filter(fn ($file) => is_file($file)) - ->each(function ($file) use ($files, $workingPath) { - $files->copy($file, "{$workingPath}/workbench".Illuminate\Support\Str::after($file, "{$workingPath}/core/workbench")); - }); +Illuminate\Support\Collection::make([ + ...$files->glob("{$workingPath}/core/workbench") +])->flatten() +->filter(fn ($file) => is_file($file)) +->each(function ($file) use ($files, $workingPath) { + $files->copy($file, "{$workingPath}/workbench".Illuminate\Support\Str::after($file, "{$workingPath}/core/workbench")); +}); From c6a8db6bc7337bf4dff4b1aaaf86f1c88e43217e Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Wed, 20 Sep 2023 12:03:51 +0800 Subject: [PATCH 17/34] wip Signed-off-by: Mior Muhammad Zaki --- bin/sync | 31 +++++++++++++++++++++++++++++++ core | 2 +- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100755 bin/sync diff --git a/bin/sync b/bin/sync new file mode 100755 index 0000000..f105cbd --- /dev/null +++ b/bin/sync @@ -0,0 +1,31 @@ +#!/usr/bin/env php +>>> Checkout branch {$BRANCH}"; + +Illuminate\Support\Collection::make([ + "git checkout $BRANCH", + "git submodule init", + "git submodule foreach git reset --hard HEAD", + "git submodule foreach git checkout $BRANCH", + "git submodule foreach git pull", +])->each(function ($command) use ($workingPath) { + Symfony\Component\Process\Process::fromShellCommandline($command, $workingPath)->mustRun(); +}); + +$files->copy("{$workingPath}/core/testbench.yaml", "{$workingPath}/testbench.yaml"); + +Illuminate\Support\Collection::make([ + ...$files->glob("{$workingPath}/core/workbench") +])->flatten() +->filter(fn ($file) => is_file($file)) +->each(function ($file) use ($files, $workingPath) { + $files->copy($file, "{$workingPath}/workbench".Illuminate\Support\Str::after($file, "{$workingPath}/core/workbench")); +}); diff --git a/core b/core index 8e7651f..dab86f4 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit 8e7651fc3cfb19897ace06e9f9db4193f17f723c +Subproject commit dab86f4a5a6beba26920c7076d669d73f878e89a From 27d38e2e8f2ed5e8a9cf8bb66ff5e85c2e418a5a Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Wed, 20 Sep 2023 12:04:18 +0800 Subject: [PATCH 18/34] wip Signed-off-by: Mior Muhammad Zaki --- .gitattributes | 3 ++- core | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitattributes b/.gitattributes index a064899..ed4c37b 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2,6 +2,8 @@ *.sh linguist-language=PHP # Ignore following folder/file. +/bin export-ignore +/workbench export-ignore /.github export-ignore /.coveralls.yml export-ignore /.gitattributes export-ignore @@ -9,7 +11,6 @@ /.gitmodules export-ignore /.travis.yml export-ignore /phpunit.xml export-ignore -/sync.sh export-ignore /testbench.yaml export-ignore /CHANGELOG-*.md export-ignore /CODE_OF_CONDUCT.md export-ignore diff --git a/core b/core index e20aa24..dab86f4 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit e20aa24d3b6ca26afb49ad3e579618293c43068c +Subproject commit dab86f4a5a6beba26920c7076d669d73f878e89a From 008bfd742049b3053328daf0a951029e2aae7508 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Wed, 20 Sep 2023 12:04:30 +0800 Subject: [PATCH 19/34] wip Signed-off-by: Mior Muhammad Zaki --- sync.sh | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100755 sync.sh diff --git a/sync.sh b/sync.sh deleted file mode 100755 index 9394e3d..0000000 --- a/sync.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash - -BRANCH='7.x' - -echo ">>>> Checkout branch $BRANCH" -git checkout $BRANCH -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 ./ From bf8e7f7416e04e84a3f5f048400eb8445cfd66f6 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Wed, 20 Sep 2023 19:12:15 +0800 Subject: [PATCH 20/34] wip --- CHANGELOG-8.x.md | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/CHANGELOG-8.x.md b/CHANGELOG-8.x.md index 26154f0..024df80 100644 --- a/CHANGELOG-8.x.md +++ b/CHANGELOG-8.x.md @@ -25,12 +25,16 @@ Released: 2023-09-19 ##### Added -* Add ability to automatically run default Laravel migrations using `Orchestra\Testbench\Concerns\WithLaravelMigrations`. -* Add Console Actions classes: - - `Orchestra\Testbench\Foundation\Console\Actions\DeleteFiles` - - `Orchestra\Testbench\Foundation\Console\Actions\DeleteDirectories` - - `Orchestra\Testbench\Foundation\Console\Actions\EnsureDirectoryExists` - - `Orchestra\Testbench\Foundation\Console\Actions\GeneratesFile` +* Added methods to `Orchestra\Testbench\Concerns\InteractsWithPublishedFiles` trait: + - `assertMigrationFileExists`. + - `assertMigrationFileNotExists`. + +##### Changes + +* Rename methods in `Orchestra\Testbench\Concerns\InteractsWithPublishedFiles` trait: + - `cleanUpFiles` to `cleanUpPublishedFiles`. + - `cleanUpMigrationFiles` to `cleanUpPublishedMigrationFiles`. + - `getMigrationFile` to `findFirstPublishedMigrationFile`. ## 8.10.2 From 3f8ebd85d0b94796f51fe9c1cfca4e1fc67c0e32 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Thu, 21 Sep 2023 06:35:48 +0800 Subject: [PATCH 21/34] wip Signed-off-by: Mior Muhammad Zaki --- core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core b/core index dab86f4..8108f16 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit dab86f4a5a6beba26920c7076d669d73f878e89a +Subproject commit 8108f1676f003059605aa8d823afb23a6f4f1c7a From 33fdcc8ad5db77cca04f691f69bd15eb9cc0a6bd Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Thu, 21 Sep 2023 06:35:48 +0800 Subject: [PATCH 22/34] wip Signed-off-by: Mior Muhammad Zaki --- core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core b/core index dab86f4..8108f16 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit dab86f4a5a6beba26920c7076d669d73f878e89a +Subproject commit 8108f1676f003059605aa8d823afb23a6f4f1c7a From 8f9876ca1d5e6fc261ece67b27528fe8696c39b9 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Thu, 21 Sep 2023 06:37:07 +0800 Subject: [PATCH 23/34] wip Signed-off-by: Mior Muhammad Zaki --- bin/sync | 4 ++-- core | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/sync b/bin/sync index 4c07f26..bf48ae3 100755 --- a/bin/sync +++ b/bin/sync @@ -2,7 +2,7 @@ >>> Checkout branch {$BRANCH}"; Illuminate\Support\Collection::make([ - "git checkout $BRANCH", + "git checkout develop", "git submodule init", "git submodule foreach git reset --hard HEAD", "git submodule foreach git checkout $BRANCH", diff --git a/core b/core index 8108f16..5fb054f 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit 8108f1676f003059605aa8d823afb23a6f4f1c7a +Subproject commit 5fb054fc7705ab40b2d2f856a55057aec4abe0b2 From 2e2198fd72a7213433bcc9cce201d6de1293467b Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Fri, 22 Sep 2023 11:37:47 +0800 Subject: [PATCH 24/34] wip Signed-off-by: Mior Muhammad Zaki --- bin/sync | 23 +++++++++++++++++++++++ core | 2 +- sync.sh | 12 ------------ 3 files changed, 24 insertions(+), 13 deletions(-) create mode 100755 bin/sync delete mode 100755 sync.sh diff --git a/bin/sync b/bin/sync new file mode 100755 index 0000000..14c82a7 --- /dev/null +++ b/bin/sync @@ -0,0 +1,23 @@ +#!/usr/bin/env php +>>> Checkout branch {$BRANCH}"; + +Illuminate\Support\Collection::make([ + "git checkout $BRANCH", + "git submodule init", + "git submodule foreach git reset --hard HEAD", + "git submodule foreach git checkout $BRANCH", + "git submodule foreach git pull", +])->each(function ($command) use ($workingPath) { + Symfony\Component\Process\Process::fromShellCommandline($command, $workingPath)->mustRun(); +}); + +$files->copy("{$workingPath}/core/testbench.yaml", "{$workingPath}/testbench.yaml"); diff --git a/core b/core index 8117d59..11b98b3 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit 8117d59e0c425437a60c6777d55cac8fcd4ca12e +Subproject commit 11b98b3d56fb2bf382b8684741c72caa6e619c8f diff --git a/sync.sh b/sync.sh deleted file mode 100755 index acfd511..0000000 --- a/sync.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash - -BRANCH='6.x' - -echo ">>>> Checkout branch $BRANCH" -git checkout $BRANCH -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 ./ From 8484c6a0fd64c77ab550a6ccd725703b3ee5bd0c Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Fri, 22 Sep 2023 11:38:49 +0800 Subject: [PATCH 25/34] wip Signed-off-by: Mior Muhammad Zaki --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index d4f2f66..f9ed49e 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,7 @@ "php": "^7.3 || ^8.0", "laravel/framework": "^8.83.27", "mockery/mockery": "^1.4.4", - "orchestra/testbench-core": "^6.38", + "orchestra/testbench-core": "^6.39", "phpunit/phpunit": "^8.5.21 || ^9.5.10", "spatie/laravel-ray": "^1.29.7" }, From 463d3b460817037e5daa118ef0b478756ee8f77c Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Mon, 25 Sep 2023 16:54:12 +0800 Subject: [PATCH 26/34] wip Signed-off-by: Mior Muhammad Zaki --- composer.json | 2 +- core | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index ea0f5f0..83db6e4 100644 --- a/composer.json +++ b/composer.json @@ -24,7 +24,7 @@ "fakerphp/faker": "^1.21", "laravel/framework": ">=10.23.1 <10.25.0", "mockery/mockery": "^1.5.1", - "orchestra/testbench-core": ">=8.11.1 <8.12.0", + "orchestra/testbench-core": "8.x-dev", "orchestra/workbench": "^0.3.0", "phpunit/phpunit": "^9.6 || ^10.1", "spatie/laravel-ray": "^1.32.4", diff --git a/core b/core index 5fb054f..7dd1dbc 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit 5fb054fc7705ab40b2d2f856a55057aec4abe0b2 +Subproject commit 7dd1dbce6125ffceffebe25b034d3a18a9d2ed94 From 72f55680701908d42452047073fb90e37f1b766f Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Mon, 25 Sep 2023 17:25:54 +0800 Subject: [PATCH 27/34] wip Signed-off-by: Mior Muhammad Zaki --- composer.json | 2 +- core | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index c7bc99c..40da290 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ "fakerphp/faker": "^1.21", "laravel/framework": "^9.52.15", "mockery/mockery": "^1.5.1", - "orchestra/testbench-core": "^7.31", + "orchestra/testbench-core": "^7.32", "orchestra/workbench": "^0.3.0", "phpunit/phpunit": "^9.5.10", "spatie/laravel-ray": "^1.32.4", diff --git a/core b/core index 8108f16..40f6395 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit 8108f1676f003059605aa8d823afb23a6f4f1c7a +Subproject commit 40f6395f48adc0967991d44e8b969fb80fa4874b From 424cae44cb91dc1c04af889743121853d2096326 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Mon, 25 Sep 2023 17:42:18 +0800 Subject: [PATCH 28/34] wip Signed-off-by: Mior Muhammad Zaki --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 40da290..298dca6 100644 --- a/composer.json +++ b/composer.json @@ -24,7 +24,7 @@ "laravel/framework": "^9.52.15", "mockery/mockery": "^1.5.1", "orchestra/testbench-core": "^7.32", - "orchestra/workbench": "^0.3.0", + "orchestra/workbench": "^0.4.0", "phpunit/phpunit": "^9.5.10", "spatie/laravel-ray": "^1.32.4", "symfony/process": "^6.0.9", From a22644ae2a9dfadb6bbdd22a1496023104805e88 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Mon, 25 Sep 2023 17:44:45 +0800 Subject: [PATCH 29/34] wip Signed-off-by: Mior Muhammad Zaki --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 83db6e4..c482320 100644 --- a/composer.json +++ b/composer.json @@ -25,7 +25,7 @@ "laravel/framework": ">=10.23.1 <10.25.0", "mockery/mockery": "^1.5.1", "orchestra/testbench-core": "8.x-dev", - "orchestra/workbench": "^0.3.0", + "orchestra/workbench": "^0.4.0", "phpunit/phpunit": "^9.6 || ^10.1", "spatie/laravel-ray": "^1.32.4", "symfony/process": "^6.2", From d9a85209c66cecbebe822377201a6cc43cdc600d Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Mon, 25 Sep 2023 21:52:01 +0800 Subject: [PATCH 30/34] wip Signed-off-by: Mior Muhammad Zaki --- core | 2 +- testbench.yaml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/core b/core index 11b98b3..7ec6fc2 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit 11b98b3d56fb2bf382b8684741c72caa6e619c8f +Subproject commit 7ec6fc2a7f52d2ea4c6476fc4ab818da46c6efe8 diff --git a/testbench.yaml b/testbench.yaml index 789de15..9782177 100644 --- a/testbench.yaml +++ b/testbench.yaml @@ -3,3 +3,6 @@ providers: env: APP_NAME: "Testbench" + +migrations: + - workbench/database/migrations From b23cb93ec1e7a98fa330f6c1ae5643064d3c1d0d Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Mon, 25 Sep 2023 21:53:51 +0800 Subject: [PATCH 31/34] Prepare 6.35.0 release Signed-off-by: Mior Muhammad Zaki --- CHANGELOG-6.x.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/CHANGELOG-6.x.md b/CHANGELOG-6.x.md index 9d63ad1..be524d3 100644 --- a/CHANGELOG-6.x.md +++ b/CHANGELOG-6.x.md @@ -2,6 +2,24 @@ This changelog references the relevant changes (bug and security fixes) done to `orchestra/testbench`. +## 6.35.0 + +Released: 2023-09-25 + +### Changes + +* Update minimum support for Testbench Core v6.39.0+. ([v6.38.0...v6.39.0](https://github.com/orchestral/testbench-core/compare/v6.38.0...v6.39.0)) + +#### Testbench Changes + +##### Added + +* Added `cachedConfigurationForWorkbench()` to `Orchestra\Testbench\Concern\InteractsWithWorkbench` trait. +* Add the ability to read `TESTBENCH_WORKING_PATH` from environment variables for Testbench Dusk usage. +* Supports Workbench `discovers` configuration. +* Add the ability to properly forward Environment Variables. +* Add `usesSqliteInMemoryDatabaseConnection` to `Orchestra\Testbench\Concerns\HandlesDatabases` trait. + ## 6.34.0 Released: 2023-08-29 From 160965cc3823952ec91e7a096e07ee9b8ccab432 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Mon, 25 Sep 2023 22:00:07 +0800 Subject: [PATCH 32/34] Prepare 7.32.0 release Signed-off-by: Mior Muhammad Zaki --- CHANGELOG-6.x.md | 18 ++++++++++++++++++ CHANGELOG-7.x.md | 19 +++++++++++++++++++ core | 2 +- 3 files changed, 38 insertions(+), 1 deletion(-) diff --git a/CHANGELOG-6.x.md b/CHANGELOG-6.x.md index 9d63ad1..be524d3 100644 --- a/CHANGELOG-6.x.md +++ b/CHANGELOG-6.x.md @@ -2,6 +2,24 @@ This changelog references the relevant changes (bug and security fixes) done to `orchestra/testbench`. +## 6.35.0 + +Released: 2023-09-25 + +### Changes + +* Update minimum support for Testbench Core v6.39.0+. ([v6.38.0...v6.39.0](https://github.com/orchestral/testbench-core/compare/v6.38.0...v6.39.0)) + +#### Testbench Changes + +##### Added + +* Added `cachedConfigurationForWorkbench()` to `Orchestra\Testbench\Concern\InteractsWithWorkbench` trait. +* Add the ability to read `TESTBENCH_WORKING_PATH` from environment variables for Testbench Dusk usage. +* Supports Workbench `discovers` configuration. +* Add the ability to properly forward Environment Variables. +* Add `usesSqliteInMemoryDatabaseConnection` to `Orchestra\Testbench\Concerns\HandlesDatabases` trait. + ## 6.34.0 Released: 2023-08-29 diff --git a/CHANGELOG-7.x.md b/CHANGELOG-7.x.md index a1afad4..37cf7d3 100644 --- a/CHANGELOG-7.x.md +++ b/CHANGELOG-7.x.md @@ -2,6 +2,25 @@ This changelog references the relevant changes (bug and security fixes) done to `orchestra/testbench`. +## 7.32.0 + +Released: 2023-09-25 + +### Changes + +* Update minimum support for Testbench Core v7.32.0+. ([v7.31.0...v7.32.0](https://github.com/orchestral/testbench-core/compare/v7.31.0...v7.32.0)) +* Update minimum support for Workbench 0.4.0+. + +#### Testbench Changes + +##### Added Added + +* Added `cachedConfigurationForWorkbench()` to `Orchestra\Testbench\Concern\InteractsWithWorkbench` trait. +* Add the ability to read `TESTBENCH_WORKING_PATH` from environment variables for Testbench Dusk usage. +* Supports Workbench `discovers` configuration. +* Add the ability to properly forward Environment Variables. +* Add `usesSqliteInMemoryDatabaseConnection` to `Orchestra\Testbench\Concerns\HandlesDatabases` trait. + ## 7.31.0 Released: 2023-09-19 diff --git a/core b/core index 40f6395..ba9a01a 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit 40f6395f48adc0967991d44e8b969fb80fa4874b +Subproject commit ba9a01a94b44e07cceb082e434ef70ebd278021d From 35a0687d17947d1f5da2e498fc01625ff10627b4 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Mon, 25 Sep 2023 22:04:50 +0800 Subject: [PATCH 33/34] Prepare 8.12.0 release Signed-off-by: Mior Muhammad Zaki --- CHANGELOG-8.x.md | 19 +++++++++++++++++++ composer.json | 2 +- core | 2 +- 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/CHANGELOG-8.x.md b/CHANGELOG-8.x.md index 024df80..6273ad5 100644 --- a/CHANGELOG-8.x.md +++ b/CHANGELOG-8.x.md @@ -2,6 +2,25 @@ This changelog references the relevant changes (bug and security fixes) done to `orchestra/testbench`. +## 8.12.0 + +Released: 2023-09-25 + +### Changes + +* Update minimum support for Testbench Core v8.12.0+. ([v8.11.1...v8.12.0](https://github.com/orchestral/testbench-core/compare/v8.11.1...v8.12.0)) +* Update minimum support for Workbench 0.4.0+. + +#### Testbench Changes + +##### Added Added + +* Added `cachedConfigurationForWorkbench()` to `Orchestra\Testbench\Concern\InteractsWithWorkbench` trait. +* Add the ability to read `TESTBENCH_WORKING_PATH` from environment variables for Testbench Dusk usage. +* Supports Workbench `discovers` configuration. +* Add the ability to properly forward Environment Variables. +* Add `usesSqliteInMemoryDatabaseConnection` to `Orchestra\Testbench\Concerns\HandlesDatabases` trait. + ## 8.11.1 Released: 2023-09-20 diff --git a/composer.json b/composer.json index c482320..7c9b275 100644 --- a/composer.json +++ b/composer.json @@ -24,7 +24,7 @@ "fakerphp/faker": "^1.21", "laravel/framework": ">=10.23.1 <10.25.0", "mockery/mockery": "^1.5.1", - "orchestra/testbench-core": "8.x-dev", + "orchestra/testbench-core": ">=8.12.0 <8.13.0", "orchestra/workbench": "^0.4.0", "phpunit/phpunit": "^9.6 || ^10.1", "spatie/laravel-ray": "^1.32.4", diff --git a/core b/core index ba9a01a..11d1220 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit ba9a01a94b44e07cceb082e434ef70ebd278021d +Subproject commit 11d12200314f86e4c05e719c631fedc94a68a20c From b40f17110e2d39c3b2c6362548a805fff753ae66 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Mon, 25 Sep 2023 22:24:52 +0800 Subject: [PATCH 34/34] wip Signed-off-by: Mior Muhammad Zaki --- .github/workflows/tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 80cc87d..906d4b0 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -110,7 +110,7 @@ jobs: run: composer show -D - name: Execute tests - run: vendor/bin/phpunit --exclude-group commander,core,database,workbench --no-coverage --no-configuration --dont-report-useless-tests --bootstrap vendor/autoload.php core/tests + run: vendor/bin/phpunit --exclude-group commander,core,database,workbench,phpunit-configuration --no-coverage --no-configuration --dont-report-useless-tests --bootstrap vendor/autoload.php core/tests env: RAY_ENABLED: false TESTBENCH_CONVERT_DEPRECATIONS_TO_EXCEPTIONS: true