mirror of
https://github.com/Sonarr/Sonarr
synced 2025-02-21 21:57:27 +00:00
Fixed broken tests
This commit is contained in:
parent
4176158fdf
commit
1b2fe6e842
1 changed files with 6 additions and 0 deletions
|
@ -50,6 +50,9 @@ namespace NzbDrone.Core.Test.JobTests
|
||||||
Mocker.GetMock<BannerDownloadJob>()
|
Mocker.GetMock<BannerDownloadJob>()
|
||||||
.Setup(j => j.Start(notification, It.IsAny<int>(), 0));
|
.Setup(j => j.Start(notification, It.IsAny<int>(), 0));
|
||||||
|
|
||||||
|
Mocker.GetMock<XemUpdateJob>()
|
||||||
|
.Setup(j => j.Start(notification, It.IsAny<int>(), 0));
|
||||||
|
|
||||||
Mocker.GetMock<UpdateInfoJob>()
|
Mocker.GetMock<UpdateInfoJob>()
|
||||||
.Setup(j => j.Start(notification, series[0].SeriesId, 0))
|
.Setup(j => j.Start(notification, series[0].SeriesId, 0))
|
||||||
.Callback(() => series[0].LastInfoSync = DateTime.Now);
|
.Callback(() => series[0].LastInfoSync = DateTime.Now);
|
||||||
|
@ -123,6 +126,9 @@ namespace NzbDrone.Core.Test.JobTests
|
||||||
Mocker.GetMock<MediaFileProvider>()
|
Mocker.GetMock<MediaFileProvider>()
|
||||||
.Setup(s => s.GetSeriesFiles(It.IsAny<int>())).Returns(new List<EpisodeFile>());
|
.Setup(s => s.GetSeriesFiles(It.IsAny<int>())).Returns(new List<EpisodeFile>());
|
||||||
|
|
||||||
|
Mocker.GetMock<XemUpdateJob>()
|
||||||
|
.Setup(j => j.Start(notification, series[0].SeriesId, 0));
|
||||||
|
|
||||||
//Act
|
//Act
|
||||||
Mocker.Resolve<ImportNewSeriesJob>().Start(notification, 0, 0);
|
Mocker.Resolve<ImportNewSeriesJob>().Start(notification, 0, 0);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue