Remove Feature test for Artist, as it actually is Unit

This commit is contained in:
Phan An 2017-06-10 16:17:34 +01:00
parent 14b6c7154b
commit 53c4bedf7b
2 changed files with 15 additions and 1 deletions

View file

@ -121,7 +121,6 @@ class Artist extends Model
return $info;
}
/**
* Write an artist image file with binary data and update the Artist with the new cover file.
*

View file

@ -109,4 +109,19 @@ class ArtistTest extends TestCase
// Then I receive the extra info
$this->assertEquals(['foo' => 'bar'], $info);
}
/** @test */
public function artists_with_name_in_utf16_encoding_are_retrieved_correctly()
{
// Given there's an artist with name in UTF-16 encoding
$name = file_get_contents(__DIR__.'../../blobs/utf16');
$artist = Artist::get($name);
// When I get the artist using the name
$retrieved = Artist::get($name);
// Then I receive the artist
$this->assertEquals($artist->id, $retrieved->id);
}
}