Skip to content

Commit

Permalink
wip
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 Oct 24, 2023
1 parent 0979cd8 commit 9d2cd2b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 8 deletions.
26 changes: 26 additions & 0 deletions CHANGELOG-6.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,32 @@

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

## 6.41.0

Released: 2023-10-24

### Added

* Added `Orchestra\Testbench\Workbench\Workbench` to handle integrations with Workbench.
* Added `Orchestra\Testbench\Foundation\Config::getWorkbenchDiscoversAttributes()` method.
* Added `Orchestra\Testbench\Concerns\Database\InteractsWithSqliteDatabaseFile` trait.
* Added support for PHPUnit Attribute as replacements to Annotations:
- `@define-env` and `@environment-setup` will be replaced with `Orchestra\Testbench\Attributes\DefineEnvironment`.
- `@define-db` will be replaced with `Orchestra\Testbench\Attributes\DefineDatabase`.
- `@define-route` will be replaced with `Orchestra\Testbench\Attributes\DefineRoute`.

### Fixes

* Fixes generating path using `Orchestra\Testbench\package_path()` and `Orchestra\Testbench\workbench_path()`.

### Deprecated

* Deprecate `Orchestra\Testbench\Concerns\WithFactories`.

### Removed

* Remove `Orchestra\Testbench\Foundation\Bootstrap\StartWorkbench`, use `Orchestra\Testbench\Workbench\Workbench::start()` instead.

## 6.40.0

Released: 2023-10-09
Expand Down
10 changes: 2 additions & 8 deletions src/Bootstrap/LoadConfigurationWithWorkbench.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Orchestra\Testbench\Bootstrap;

use Illuminate\Contracts\Foundation\Application;
use Illuminate\Support\Collection;
use Illuminate\Support\LazyCollection;
use Orchestra\Testbench\Workbench\Workbench;
Expand All @@ -23,17 +22,12 @@ class LoadConfigurationWithWorkbench extends LoadConfiguration
protected $usesWorkbenchConfigFile = false;

/**
* Bootstrap the given application.
*
* @param \Illuminate\Contracts\Foundation\Application $app
* @return void
* Construct a new bootstrap class.
*/
public function bootstrap(Application $app): void
public function __construct()
{
$this->usesWorkbenchConfigFile = (Workbench::configuration()->getWorkbenchDiscoversAttributes()['config'] ?? false)
&& is_dir(workbench_path('config'));

parent::bootstrap($app);
}

/**
Expand Down

0 comments on commit 9d2cd2b

Please sign in to comment.