diff --git a/tests/CacheTest/CacheAvatarPreviewTest.php b/tests/CacheTest/CacheAvatarPreviewTest.php index a16c8956..7d4a07eb 100644 --- a/tests/CacheTest/CacheAvatarPreviewTest.php +++ b/tests/CacheTest/CacheAvatarPreviewTest.php @@ -18,8 +18,10 @@ class CacheAvatarPreviewTest extends TestCase public function testHandle() { + option(['enable_avatar_cache' => true]); + $provider = new \App\Providers\EventServiceProvider(app()); + $provider->boot(); Storage::fake('textures'); - Event::listen(GetAvatarPreview::class, CacheAvatarPreview::class); $texture = factory(Texture::class)->create(); Storage::disk('textures') diff --git a/tests/CacheTest/CachePlayerExistsTest.php b/tests/CacheTest/CachePlayerExistsTest.php index 9d04bf36..18597c9b 100644 --- a/tests/CacheTest/CachePlayerExistsTest.php +++ b/tests/CacheTest/CachePlayerExistsTest.php @@ -17,7 +17,9 @@ class CachePlayerExistsTest extends TestCase public function setUp(): void { parent::setUp(); - Event::subscribe(CachePlayerExists::class); + option(['enable_notfound_cache' => true]); + $provider = new \App\Providers\EventServiceProvider(app()); + $provider->boot(); } public function testRemember() diff --git a/tests/CacheTest/CachePlayerJsonTest.php b/tests/CacheTest/CachePlayerJsonTest.php index f7fe9781..0be3bdab 100644 --- a/tests/CacheTest/CachePlayerJsonTest.php +++ b/tests/CacheTest/CachePlayerJsonTest.php @@ -18,7 +18,9 @@ class CachePlayerJsonTest extends TestCase public function setUp(): void { parent::setUp(); - Event::subscribe(CachePlayerJson::class); + option(['enable_json_cache' => true]); + $provider = new \App\Providers\EventServiceProvider(app()); + $provider->boot(); } public function testRemember() diff --git a/tests/CacheTest/CacheSkinPreviewTest.php b/tests/CacheTest/CacheSkinPreviewTest.php index 645e8fcf..27852fd9 100644 --- a/tests/CacheTest/CacheSkinPreviewTest.php +++ b/tests/CacheTest/CacheSkinPreviewTest.php @@ -18,8 +18,10 @@ class CacheSkinPreviewTest extends TestCase public function testHandle() { + option(['enable_preview_cache' => true]); + $provider = new \App\Providers\EventServiceProvider(app()); + $provider->boot(); Storage::fake('textures'); - Event::listen(GetSkinPreview::class, CacheSkinPreview::class); $skin = factory(Texture::class)->create(); Storage::disk('textures')