Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
g-plane committed May 21, 2020
1 parent cde0c7b commit d6953ac
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/HttpTest/ControllersTest/TextureControllerTest.php
Expand Up @@ -182,9 +182,13 @@ public function testAvatarByTexture()
{
$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());
Expand Down

0 comments on commit d6953ac

Please sign in to comment.