Tweak tests
This commit is contained in:
parent
c5d2082308
commit
b9c2cdff6b
|
|
@ -18,8 +18,10 @@ class CacheAvatarPreviewTest extends TestCase
|
||||||
|
|
||||||
public function testHandle()
|
public function testHandle()
|
||||||
{
|
{
|
||||||
|
option(['enable_avatar_cache' => true]);
|
||||||
|
$provider = new \App\Providers\EventServiceProvider(app());
|
||||||
|
$provider->boot();
|
||||||
Storage::fake('textures');
|
Storage::fake('textures');
|
||||||
Event::listen(GetAvatarPreview::class, CacheAvatarPreview::class);
|
|
||||||
|
|
||||||
$texture = factory(Texture::class)->create();
|
$texture = factory(Texture::class)->create();
|
||||||
Storage::disk('textures')
|
Storage::disk('textures')
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,9 @@ class CachePlayerExistsTest extends TestCase
|
||||||
public function setUp(): void
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
Event::subscribe(CachePlayerExists::class);
|
option(['enable_notfound_cache' => true]);
|
||||||
|
$provider = new \App\Providers\EventServiceProvider(app());
|
||||||
|
$provider->boot();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testRemember()
|
public function testRemember()
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,9 @@ class CachePlayerJsonTest extends TestCase
|
||||||
public function setUp(): void
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
Event::subscribe(CachePlayerJson::class);
|
option(['enable_json_cache' => true]);
|
||||||
|
$provider = new \App\Providers\EventServiceProvider(app());
|
||||||
|
$provider->boot();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testRemember()
|
public function testRemember()
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,10 @@ class CacheSkinPreviewTest extends TestCase
|
||||||
|
|
||||||
public function testHandle()
|
public function testHandle()
|
||||||
{
|
{
|
||||||
|
option(['enable_preview_cache' => true]);
|
||||||
|
$provider = new \App\Providers\EventServiceProvider(app());
|
||||||
|
$provider->boot();
|
||||||
Storage::fake('textures');
|
Storage::fake('textures');
|
||||||
Event::listen(GetSkinPreview::class, CacheSkinPreview::class);
|
|
||||||
|
|
||||||
$skin = factory(Texture::class)->create();
|
$skin = factory(Texture::class)->create();
|
||||||
Storage::disk('textures')
|
Storage::disk('textures')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user