Skip to content

Commit

Permalink
Merge branch '8.23.x' into 9.0.x
Browse files Browse the repository at this point in the history
  • Loading branch information
crynobone committed Apr 5, 2024
2 parents 1cc009e + 84f91d3 commit a34ca95
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CHANGELOG-8.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

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

## 8.23.6

Released: 2024-04-05

### Fixes

* Fixes `runningInUnitTests()` returning `true` when not running tests via Testbench CLI.

## 8.23.5

Released: 2024-03-25
Expand Down
2 changes: 1 addition & 1 deletion src/Console/Commander.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function handle(): void
$laravel = $this->laravel();
$kernel = $laravel->make(ConsoleKernel::class);

if (Env::has('TESTBENCH_PACKAGE_TESTER') === false && $laravel->runningUnitTests()) {
if (Env::has('TESTBENCH_PACKAGE_TESTER') === false && $laravel->runningUnitTests() === true) {
$laravel->instance('env', 'workbench');
}

Expand Down

0 comments on commit a34ca95

Please sign in to comment.