Add track # test

This commit is contained in:
An Phan 2016-03-20 22:14:02 +08:00
parent 6b0575d033
commit 8e0bc532b9
2 changed files with 5 additions and 1 deletions

View file

@ -20,7 +20,11 @@ class MediaTest extends TestCase
$media->sync($this->mediaPath); $media->sync($this->mediaPath);
// Standard mp3 files under root path should be recognized // 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 // Ogg files and audio files in subdirectories should be recognized
$this->seeInDatabase('songs', ['path' => $this->mediaPath.'/subdir/back-in-black.ogg']); $this->seeInDatabase('songs', ['path' => $this->mediaPath.'/subdir/back-in-black.ogg']);

Binary file not shown.