mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +00:00
Add test for incase-sensitive file extensions
This commit is contained in:
parent
3827545037
commit
bb4187b61a
2 changed files with 3 additions and 0 deletions
|
@ -21,6 +21,9 @@ class MediaTest extends TestCase
|
|||
// Ogg files and audio files in subdirectories should be recognized
|
||||
$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
|
||||
$this->notSeeInDatabase('songs', ['path' => $this->mediaPath.'/rubbish.log']);
|
||||
|
||||
|
|
BIN
tests/songs/subdir/no-name.MP3
Normal file
BIN
tests/songs/subdir/no-name.MP3
Normal file
Binary file not shown.
Loading…
Reference in a new issue