Skip to content

Commit

Permalink
adds skin tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiabasone committed Sep 9, 2020
1 parent e224814 commit 2405d00
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions tests/Http/Controllers/ApiControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,58 @@ public function shouldReturnUserAvatarWithSize(): void
);
}

/**
* @test
*/
public function shouldReturnUserSkinWithoutSize(): void
{
$this->get('/skin/_Cyb3r');
$this->assertResponseOk();
$this->assertEquals(
'image/png',
$this->response->headers->get('Content-Type')
);
}

/**
* @test
*/
public function shouldReturnUserSkinBackWithoutSize(): void
{
$this->get('/skin-back/_Cyb3r');
$this->assertResponseOk();
$this->assertEquals(
'image/png',
$this->response->headers->get('Content-Type')
);
}

/**
* @test
*/
public function shouldReturnUserSkinWithSize(): void
{
$this->get('/skin/200/_Cyb3r');
$this->assertResponseOk();
$this->assertEquals(
'image/png',
$this->response->headers->get('Content-Type')
);
}

/**
* @test
*/
public function shouldReturnUserSkinBackWithSize(): void
{
$this->get('/skin-back/200/_Cyb3r');
$this->assertResponseOk();
$this->assertEquals(
'image/png',
$this->response->headers->get('Content-Type')
);
}

/**
* @test
*/
Expand Down

0 comments on commit 2405d00

Please sign in to comment.