Skip to content

Commit

Permalink
Prepare 9.0.9 release
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 Mar 26, 2024
1 parent f01150a commit 052b2f1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CHANGELOG-9.x.md
Expand Up @@ -2,6 +2,14 @@

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

## 9.0.9

Released: 2024-03-27

### Fixes

* Force reset `RefreshDatabaseState` when using `LazilyRefreshDatabase` with SQLite `:in-memory:` database connections.

## 9.0.8

Released: 2024-03-26
Expand Down
5 changes: 4 additions & 1 deletion src/Concerns/InteractsWithMigrations.php
Expand Up @@ -45,7 +45,10 @@ protected function setUpInteractsWithMigrations(): void
*/
protected function tearDownInteractsWithMigrations(): void
{
if (\count($this->cachedTestMigratorProcessors) > 0 && static::usesRefreshDatabaseTestingConcern()) {
if (
(\count($this->cachedTestMigratorProcessors) > 0 && static::usesRefreshDatabaseTestingConcern())
|| ($this->usesSqliteInMemoryDatabaseConnection() && ! empty(RefreshDatabaseState::$inMemoryConnections))
) {
ResetRefreshDatabaseState::run();
}

Expand Down

0 comments on commit 052b2f1

Please sign in to comment.