Fix unit test

This commit is contained in:
Nikolaj Geisle
2024-12-11 17:48:11 +01:00
parent 721eee27c7
commit d6f493737a
11 changed files with 189 additions and 26 deletions

View File

@@ -243,7 +243,7 @@ public static class FriendlyPublishedContentExtensions
/// set to 1.
/// </remarks>
public static IPublishedContent Root(this IPublishedContent content)
=> content.Root(GetPublishedCache(content), GetNavigationQueryService(content));
=> content.Root(VariationContextAccessor, GetPublishedCache(content), GetNavigationQueryService(content), PublishStatusQueryService);
/// <summary>
/// Gets the root content (ancestor or self at level 1) for the specified <paramref name="content" /> if it's of the
@@ -262,7 +262,7 @@ public static class FriendlyPublishedContentExtensions
/// </remarks>
public static T? Root<T>(this IPublishedContent content)
where T : class, IPublishedContent
=> content.Root<T>(GetPublishedCache(content), GetNavigationQueryService(content));
=> content.Root<T>(VariationContextAccessor, GetPublishedCache(content), GetNavigationQueryService(content), PublishStatusQueryService);
/// <summary>
/// Gets the parent of the content item.