This commit is contained in:
Pig Fang 2020-05-21 22:37:08 +08:00
parent cde0c7bbbb
commit d6953ac5bb

View File

@ -182,9 +182,13 @@ class TextureControllerTest extends TestCase
{
$disk = Storage::fake('textures');
$image = $this->get('/avatar/0')
$this->get('/avatar/0')
->assertSuccessful()
->assertHeader('Content-Type', 'image/webp')
->assertHeader('Content-Type', 'image/webp');
Cache::clear();
$image = $this->get('/avatar/0?png')
->assertSuccessful()
->assertHeader('Content-Type', 'image/png')
->getContent();
$image = Image::make($image);
$this->assertEquals(100, $image->width());