Skip to content

Commit

Permalink
Merge branch 'develop' into 8.x
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Dec 4, 2023
2 parents 0334674 + 12a29bb commit b7e00bc
Show file tree
Hide file tree
Showing 4 changed files with 106 additions and 2 deletions.
50 changes: 50 additions & 0 deletions CHANGELOG-7.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,56 @@

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

## 7.36.0

Released: 2023-12-04

### Changes

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

#### Testbench Changes

##### Added

* Added `Orchestra\Testbench\Attributes\ResetRefreshDatabase` attribute to force refreshing database before executing the test.
* Added `Orchestra\Testbench\Foundation\Bootstrap\SyncDatabaseEnvironmentVariables` bootstrap class and allow database collation to be configurable via environment variables using `MYSQL_COLLATION`, `POSTGRES_COLLATION` and `MSSQL_COLLATION`.

##### Changes

* Refactor handling attributes:
- Add ability to handle actions directly from the attribute.
- Add ability to set `defer` when using `Orchestra\Testbench\Attributes\DefineDatabase`.

##### Deprecated

* Deprecate `Orchestra\Testbench\Concerns\Database\HandlesConnections` trait.

## 7.35.0

Released: 2023-10-24

### Changes

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

#### Testbench Changes

##### Added

* Added new PHPUnit Attribute to run the default `laravel`, `cache`, `notifications`, `queue` and `session` database migrations using `Orchestra\Testbench\Attributes\WithMigration`.
* Added `Orchestra\Testbench\defined_environment_variables()` function.
* Added `Orchestra\Testbench\laravel_migration_path()` function.
* Added `Orchestra\Testbench\remote()` function.

##### Changes

* Mark the following classes as `@api`:
- `Orchestra\Testbench\Foundation\Application`
- `Orchestra\Testbench\Foundation\Config`
- `Orchestra\Testbench\Foundation\Env`
* Cache results from `Orchestra\Testbench\PHPUnit\AttributeParser`.

## 7.34.1

Released: 2023-11-07
Expand Down
55 changes: 55 additions & 0 deletions CHANGELOG-8.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,61 @@

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

## 8.16.0

Released: 2023-12-04

### Changes

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

##### Added

* Added `Orchestra\Testbench\Attributes\ResetRefreshDatabase` attribute to force refreshing database before executing the test.
* Added `Orchestra\Testbench\Foundation\Bootstrap\SyncDatabaseEnvironmentVariables` bootstrap class and allow database collation to be configurable via environment variables using `MYSQL_COLLATION`, `POSTGRES_COLLATION` and `MSSQL_COLLATION`.
* Added `encode()` method to `Orchestra\Testbench\Foundation\Env` class.

##### Changes

* Refactor handling attributes:
- Add ability to handle actions directly from the attribute.
- Add ability to set `defer` when using `Orchestra\Testbench\Attributes\DefineDatabase`.
* Add `#[Override]` attribute to relevant methods, this require `symfony/polyfill-php83` as backward compatibility for PHP 8.1 and 8.2.
* Move `$setupHasRun` property to `Orchestra\Testbench\Concerns\ApplicationTestingHooks`.

##### Fixes

* Fixes registering discovery paths when the path doesn't exist.

##### Deprecated

* Deprecate `Orchestra\Testbench\Concerns\Database\HandlesConnections` trait.

## 8.15.0

Released: 2023-11-10

### Changes

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

#### Testbench Changes

##### Added

* Added new PHPUnit Attribute to run the default `laravel`, `cache`, `notifications`, `queue` and `session` database migrations using `Orchestra\Testbench\Attributes\WithMigration`.
* Added `Orchestra\Testbench\defined_environment_variables()` function.
* Added `Orchestra\Testbench\laravel_migration_path()` function.
* Added `Orchestra\Testbench\remote()` function.

##### Changes

* Mark the following classes as `@api`:
- `Orchestra\Testbench\Foundation\Application`
- `Orchestra\Testbench\Foundation\Config`
- `Orchestra\Testbench\Foundation\Env`
* Cache results from `Orchestra\Testbench\PHPUnit\AttributeParser`.

## 8.14.1

Released: 2023-11-07
Expand Down
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"orchestra/testbench-core": "8.x-dev",
"orchestra/workbench": "8.x-dev",
"phpunit/phpunit": "^9.6 || ^10.1",
"spatie/laravel-ray": "^1.32.4",
"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 66 files
+42 −9 .github/workflows/analyse.yaml
+1 −2 .github/workflows/audits.yaml
+1 −2 .github/workflows/collision-tests.yaml
+1 −2 .github/workflows/parallel-tests.yaml
+1 −0 .github/workflows/strict-tests.yaml
+1 −0 .github/workflows/tests.yaml
+58 −0 CHANGELOG-7.x.md
+59 −0 CHANGELOG-8.x.md
+2 −1 composer.json
+0 −5 phpstan-baseline.neon
+10 −21 src/Attributes/Define.php
+32 −8 src/Attributes/DefineDatabase.php
+15 −8 src/Attributes/DefineEnvironment.php
+18 −8 src/Attributes/DefineRoute.php
+22 −0 src/Attributes/ResetRefreshDatabaseState.php
+28 −3 src/Attributes/WithMigration.php
+3 −0 src/Bootstrap/HandleExceptions.php
+2 −0 src/Bootstrap/LoadConfigurationWithWorkbench.php
+1 −0 src/Bootstrap/LoadEnvironmentVariables.php
+11 −0 src/Concerns/ApplicationTestingHooks.php
+2 −0 src/Concerns/CreatesApplication.php
+4 −40 src/Concerns/Database/HandlesConnections.php
+3 −0 src/Concerns/Database/InteractsWithSqliteDatabaseFile.php
+3 −0 src/Concerns/Database/WithSqlite.php
+18 −16 src/Concerns/HandlesAttributes.php
+18 −23 src/Concerns/HandlesDatabases.php
+4 −3 src/Concerns/HandlesRoutes.php
+3 −0 src/Concerns/InteractsWithMigrations.php
+72 −6 src/Concerns/InteractsWithPHPUnit.php
+3 −0 src/Concerns/InteractsWithPublishedFiles.php
+5 −2 src/Concerns/InteractsWithWorkbench.php
+3 −11 src/Concerns/Testing.php
+2 −0 src/Concerns/WithFactories.php
+3 −0 src/Concerns/WithLaravelMigrations.php
+3 −0 src/Concerns/WithWorkbench.php
+17 −0 src/Contracts/Attributes/Actionable.php
+14 −0 src/Contracts/Attributes/Invokable.php
+13 −0 src/Contracts/Attributes/Resolvable.php
+8 −0 src/Contracts/Attributes/TestingFeature.php
+3 −0 src/Database/MigrateProcessor.php
+1 −0 src/Foundation/Application.php
+30 −0 src/Foundation/Bootstrap/SyncDatabaseEnvironmentVariables.php
+52 −0 src/Foundation/Concerns/HandlesDatabaseConnections.php
+1 −0 src/Foundation/Console/Kernel.php
+2 −0 src/Foundation/Console/ServeCommand.php
+23 −56 src/Foundation/Console/TestCommand.php
+11 −0 src/Foundation/Env.php
+1 −0 src/Foundation/Http/Kernel.php
+3 −0 src/Foundation/PackageManifest.php
+1 −0 src/Foundation/ParallelRunner.php
+29 −16 src/PHPUnit/AttributeParser.php
+2 −0 src/PHPUnit/TestCase.php
+8 −4 src/TestCase.php
+16 −5 src/Workbench/Workbench.php
+52 −20 src/helpers.php
+34 −0 tests/AttributeEnvironmentSetupTest.php
+66 −0 tests/Attributes/DefineDatabaseTest.php
+48 −0 tests/Attributes/DefineRouteTest.php
+4 −3 tests/CommanderTest.php
+35 −0 tests/Databases/RefreshDatabaseTest.php
+6 −4 tests/Foundation/Concerns/HandlesDatabaseConnectionsTest.php
+18 −0 tests/Helpers/ArtisanTest.php
+33 −0 tests/Helpers/PackagePathTest.php
+32 −0 tests/Helpers/ParseEnvironmentVariablesTest.php
+19 −0 tests/Helpers/TransformRelativePathTest.php
+0 −57 tests/HelpersTest.php

0 comments on commit b7e00bc

Please sign in to comment.