mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-25 22:36:59 -04:00
Fixed: Incorrectly looking up books by EditionId
This commit is contained in:
@@ -47,8 +47,11 @@ namespace NzbDrone.Core.Test.MediaFiles
|
||||
|
||||
var edition = Builder<Edition>.CreateNew()
|
||||
.With(e => e.Book = book)
|
||||
.With(e => e.Monitored = true)
|
||||
.Build();
|
||||
|
||||
book.Editions = new List<Edition> { edition };
|
||||
|
||||
var rootFolder = Builder<RootFolder>.CreateNew()
|
||||
.With(r => r.IsCalibreLibrary = false)
|
||||
.Build();
|
||||
@@ -85,6 +88,10 @@ namespace NzbDrone.Core.Test.MediaFiles
|
||||
Mocker.GetMock<IRootFolderService>()
|
||||
.Setup(s => s.GetBestRootFolder(It.IsAny<string>()))
|
||||
.Returns(rootFolder);
|
||||
|
||||
Mocker.GetMock<IEditionService>()
|
||||
.Setup(s => s.SetMonitored(edition))
|
||||
.Returns(new List<Edition> { edition });
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
||||
@@ -165,6 +165,7 @@ namespace NzbDrone.Core.Test.MediaFiles
|
||||
}
|
||||
}
|
||||
|
||||
[Ignore("Doesn't make sense now we link to edition")]
|
||||
[Test]
|
||||
public void delete_files_by_book_should_work_if_join_fails()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user