mirror of
https://github.com/koel/koel
synced 2024-11-28 06:50:27 +00:00
Remove Feature test for Artist, as it actually is Unit
This commit is contained in:
parent
14b6c7154b
commit
53c4bedf7b
2 changed files with 15 additions and 1 deletions
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue