Skip to content

Commit

Permalink
Disable data caching in multiple hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspertey committed Nov 18, 2024
1 parent fab9025 commit 4255b32
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ protected function setUp(): void
);

DomainCache::clear();
});

$this->afterApplicationRefreshed(function () {
config()->set('data.structure_caching.enabled', false);
});

Expand All @@ -40,6 +42,8 @@ protected function setUp(): void
});

parent::setUp();

config()->set('data.structure_caching.enabled', false);
}

protected function tearDown(): void
Expand Down Expand Up @@ -264,6 +268,8 @@ protected function setupTestApplication()

DomainCache::clear();

config()->set('data.structure_caching.enabled', false);

return $this;
}

Expand Down

0 comments on commit 4255b32

Please sign in to comment.