Skip to content

Commit

Permalink
Flush container on directory fake tear down
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebauman committed May 13, 2024
1 parent d7c698e commit 22c7eea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Testing/DirectoryFake.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,10 @@ public static function tearDown(): void
{
foreach (static::$replaced as $name => $connection) {
Container::getConnection($name)->tearDown();
Container::addConnection($connection, $name);
}

Container::flush();

static::$replaced = [];
}

Expand Down

0 comments on commit 22c7eea

Please sign in to comment.