1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-21 22:05:38 -04:00

New: Delete files for Select Series

Closes #5110
This commit is contained in:
Mark McDowall
2026-03-01 09:05:56 -08:00
parent e56dd15928
commit c64f4adfc4
17 changed files with 399 additions and 79 deletions
@@ -5,6 +5,7 @@ using NUnit.Framework;
using NzbDrone.Common.Disk;
using NzbDrone.Core.Exceptions;
using NzbDrone.Core.MediaFiles;
using NzbDrone.Core.RootFolders;
using NzbDrone.Core.Test.Framework;
using NzbDrone.Core.Tv;
using NzbDrone.Test.Common;
@@ -41,6 +42,10 @@ namespace NzbDrone.Core.Test.MediaFiles.MediaFileDeletionService
private void GivenRootFolderExists()
{
Mocker.GetMock<IRootFolderService>()
.Setup(s => s.GetBestRootFolderPath(_series.Path))
.Returns(ROOT_FOLDER);
Mocker.GetMock<IDiskProvider>()
.Setup(s => s.FolderExists(ROOT_FOLDER))
.Returns(true);