mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +00:00
Add track # test
This commit is contained in:
parent
6b0575d033
commit
8e0bc532b9
2 changed files with 5 additions and 1 deletions
|
@ -20,7 +20,11 @@ class MediaTest extends TestCase
|
|||
$media->sync($this->mediaPath);
|
||||
|
||||
// Standard mp3 files under root path should be recognized
|
||||
$this->seeInDatabase('songs', ['path' => $this->mediaPath.'/full.mp3']);
|
||||
$this->seeInDatabase('songs', [
|
||||
'path' => $this->mediaPath.'/full.mp3',
|
||||
// Track # should be recognized
|
||||
'track' => 5,
|
||||
]);
|
||||
|
||||
// Ogg files and audio files in subdirectories should be recognized
|
||||
$this->seeInDatabase('songs', ['path' => $this->mediaPath.'/subdir/back-in-black.ogg']);
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue