Add test for incase-sensitive file extensions

This commit is contained in:
An Phan 2016-01-26 14:30:48 +08:00
parent 3827545037
commit bb4187b61a
2 changed files with 3 additions and 0 deletions

View file

@ -21,6 +21,9 @@ class MediaTest extends TestCase
// 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']);
// File search shouldn't be case-sensitive.
$this->seeInDatabase('songs', ['path' => $this->mediaPath.'/subdir/no-name.MP3']);
// Non-audio files shouldn't be recognized // Non-audio files shouldn't be recognized
$this->notSeeInDatabase('songs', ['path' => $this->mediaPath.'/rubbish.log']); $this->notSeeInDatabase('songs', ['path' => $this->mediaPath.'/rubbish.log']);

Binary file not shown.