Tweak tests
This commit is contained in:
parent
c5d2082308
commit
b9c2cdff6b
@ -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')
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user