diff --git a/.env.example b/.env.example index 49057a46..53368580 100644 --- a/.env.example +++ b/.env.example @@ -66,7 +66,6 @@ MAIL_PASSWORD = null CACHE_DRIVER = file SESSION_DRIVER = file QUEUE_DRIVER = sync -FS_DRIVER = local REDIS_HOST = 127.0.0.1 REDIS_PASSWORD = null diff --git a/.env.testing b/.env.testing index f06d0a00..d945c7fd 100644 --- a/.env.testing +++ b/.env.testing @@ -28,7 +28,6 @@ MAIL_ENCRYPTION = ssl CACHE_DRIVER = array SESSION_DRIVER = array QUEUE_DRIVER = sync -FS_DRIVER = memory REDIS_HOST = 127.0.0.1 REDIS_PASSWORD = null diff --git a/app/Providers/MemoryServiceProvider.php b/app/Providers/MemoryServiceProvider.php deleted file mode 100644 index 1cbdb2f5..00000000 --- a/app/Providers/MemoryServiceProvider.php +++ /dev/null @@ -1,23 +0,0 @@ -create(); diff --git a/tests/CacheTest/CacheSkinPreviewTest.php b/tests/CacheTest/CacheSkinPreviewTest.php index af442c7c..645e8fcf 100644 --- a/tests/CacheTest/CacheSkinPreviewTest.php +++ b/tests/CacheTest/CacheSkinPreviewTest.php @@ -18,6 +18,7 @@ class CacheSkinPreviewTest extends TestCase public function testHandle() { + Storage::fake('textures'); Event::listen(GetSkinPreview::class, CacheSkinPreview::class); $skin = factory(Texture::class)->create(); diff --git a/tests/TextureControllerTest.php b/tests/TextureControllerTest.php index 994e6161..3f31a540 100644 --- a/tests/TextureControllerTest.php +++ b/tests/TextureControllerTest.php @@ -103,6 +103,7 @@ class TextureControllerTest extends TestCase public function testTexture() { + Storage::fake('textures'); $steve = factory(Texture::class)->create(); Storage::disk('textures')->put($steve->hash, ''); $this->get('/textures/nope') @@ -121,6 +122,7 @@ class TextureControllerTest extends TestCase public function testTextureWithApi() { + Storage::fake('textures'); $steve = factory(Texture::class)->create(); Storage::disk('textures')->put($steve->hash, ''); @@ -141,6 +143,7 @@ class TextureControllerTest extends TestCase public function testSkin() { + Storage::fake('textures'); $skin = factory(Texture::class)->create(); $player = factory(Player::class)->create(); @@ -184,6 +187,7 @@ class TextureControllerTest extends TestCase public function testAvatar() { + Storage::fake('textures'); $base64_email = base64_encode('a@b.c'); $this->get("/avatar/$base64_email.png") ->assertHeader('Content-Type', 'image/png'); @@ -210,6 +214,7 @@ class TextureControllerTest extends TestCase public function testAvatarWithSize() { + Storage::fake('textures'); $steve = factory(Texture::class)->create(); $png = base64_decode(\App\Http\Controllers\TextureController::getDefaultSteveSkin()); Storage::disk('textures')->put($steve->hash, $png); @@ -228,6 +233,7 @@ class TextureControllerTest extends TestCase public function testPreview() { + Storage::fake('textures'); $steve = factory(Texture::class)->create(); $cape = factory(Texture::class, 'cape')->create(); @@ -268,6 +274,7 @@ class TextureControllerTest extends TestCase public function testRaw() { + Storage::fake('textures'); $steve = factory(Texture::class)->create(); Storage::disk('textures')->put($steve->hash, '');