Shadowghost 1 년 전
부모
커밋
918a36d564
1개의 변경된 파일7개의 추가작업 그리고 3개의 파일을 삭제
  1. 7 3
      tests/Jellyfin.Providers.Tests/Manager/ItemImageProviderTests.cs

+ 7 - 3
tests/Jellyfin.Providers.Tests/Manager/ItemImageProviderTests.cs

@@ -575,18 +575,22 @@ namespace Jellyfin.Providers.Tests.Manager
             // Has to exist for querying DateModified time on file, results stored but not checked so not populating
             // Has to exist for querying DateModified time on file, results stored but not checked so not populating
             BaseItem.FileSystem ??= Mock.Of<IFileSystem>();
             BaseItem.FileSystem ??= Mock.Of<IFileSystem>();
 
 
-            var item = new Video();
+            var item = new Mock<Video>
+            {
+                CallBase = true
+            };
+            item.Setup(m => m.IsSaveLocalMetadataEnabled()).Returns(false);
 
 
             var path = validPaths ? _testDataImagePath.Format : "invalid path {0}";
             var path = validPaths ? _testDataImagePath.Format : "invalid path {0}";
             for (int i = 0; i < count; i++)
             for (int i = 0; i < count; i++)
             {
             {
-                item.SetImagePath(type, i, new FileSystemMetadata
+                item.Object.SetImagePath(type, i, new FileSystemMetadata
                 {
                 {
                     FullName = string.Format(CultureInfo.InvariantCulture, path, i),
                     FullName = string.Format(CultureInfo.InvariantCulture, path, i),
                 });
                 });
             }
             }
 
 
-            return item;
+            return item.Object;
         }
         }
 
 
         private static ILocalImageProvider GetImageProvider(ImageType type, int count, bool validPaths)
         private static ILocalImageProvider GetImageProvider(ImageType type, int count, bool validPaths)