mirror of
https://github.com/lidarr/Lidarr
synced 2025-01-03 13:34:54 +00:00
Fix tests for nested artist folders
This commit is contained in:
parent
4588bc4a7e
commit
2caba01123
1 changed files with 6 additions and 0 deletions
|
@ -14,6 +14,7 @@
|
||||||
using NzbDrone.Core.Music;
|
using NzbDrone.Core.Music;
|
||||||
using NzbDrone.Core.Organizer;
|
using NzbDrone.Core.Organizer;
|
||||||
using NzbDrone.Core.Parser.Model;
|
using NzbDrone.Core.Parser.Model;
|
||||||
|
using NzbDrone.Core.RootFolders;
|
||||||
using NzbDrone.Core.Test.Framework;
|
using NzbDrone.Core.Test.Framework;
|
||||||
using NzbDrone.Test.Common;
|
using NzbDrone.Test.Common;
|
||||||
|
|
||||||
|
@ -48,6 +49,11 @@ public void Setup()
|
||||||
.Returns(@"C:\Test\Music\Artist\Album\File Name.mp3".AsOsAgnostic());
|
.Returns(@"C:\Test\Music\Artist\Album\File Name.mp3".AsOsAgnostic());
|
||||||
|
|
||||||
var rootFolder = @"C:\Test\Music\".AsOsAgnostic();
|
var rootFolder = @"C:\Test\Music\".AsOsAgnostic();
|
||||||
|
|
||||||
|
Mocker.GetMock<IRootFolderService>()
|
||||||
|
.Setup(s => s.GetBestRootFolder(It.IsAny<string>()))
|
||||||
|
.Returns(new RootFolder { Path = rootFolder });
|
||||||
|
|
||||||
Mocker.GetMock<IDiskProvider>()
|
Mocker.GetMock<IDiskProvider>()
|
||||||
.Setup(s => s.FolderExists(rootFolder))
|
.Setup(s => s.FolderExists(rootFolder))
|
||||||
.Returns(true);
|
.Returns(true);
|
||||||
|
|
Loading…
Reference in a new issue