From 4255b321875a74063a9686b20ce5c8d5d0310af9 Mon Sep 17 00:00:00 2001 From: Jasper Tey Date: Sun, 17 Nov 2024 20:17:51 -0500 Subject: [PATCH] Disable data caching in multiple hooks --- tests/TestCase.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/TestCase.php b/tests/TestCase.php index 4063b5d..eea2819 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -31,7 +31,9 @@ protected function setUp(): void ); DomainCache::clear(); + }); + $this->afterApplicationRefreshed(function () { config()->set('data.structure_caching.enabled', false); }); @@ -40,6 +42,8 @@ protected function setUp(): void }); parent::setUp(); + + config()->set('data.structure_caching.enabled', false); } protected function tearDown(): void @@ -264,6 +268,8 @@ protected function setupTestApplication() DomainCache::clear(); + config()->set('data.structure_caching.enabled', false); + return $this; }