Merge remote-tracking branch 'origin/v12/dev' into v13/dev
# Conflicts: # src/Umbraco.Cms.Api.Management/ManagementApiComposer.cs # src/Umbraco.Core/CompatibilitySuppressions.xml # src/Umbraco.Infrastructure/CompatibilitySuppressions.xml
This commit is contained in:
@@ -8,6 +8,8 @@ using Microsoft.Extensions.Logging;
|
||||
using Microsoft.Extensions.Logging.Abstractions;
|
||||
using Moq;
|
||||
using NUnit.Framework;
|
||||
using Umbraco.Cms.Core.DeliveryApi;
|
||||
using Umbraco.Cms.Core.Models.DeliveryApi;
|
||||
using Umbraco.Cms.Core.IO;
|
||||
using Umbraco.Cms.Core.Logging;
|
||||
using Umbraco.Cms.Core.Models;
|
||||
@@ -36,7 +38,7 @@ public class NestedContentTests
|
||||
PropertyEditorCollection editors = null;
|
||||
var editor = new NestedContentPropertyEditor(
|
||||
Mock.Of<IDataValueEditorFactory>(),
|
||||
Mock.Of<IIOHelper>(),
|
||||
Mock.Of<IIOHelper>(),
|
||||
Mock.Of<IEditorConfigurationParser>(),
|
||||
Mock.Of<INestedContentPropertyIndexValueFactory>());
|
||||
editors = new PropertyEditorCollection(new DataEditorCollection(() => new DataEditor[] { editor }));
|
||||
@@ -139,8 +141,8 @@ public class NestedContentTests
|
||||
|
||||
var converters = new PropertyValueConverterCollection(() => new IPropertyValueConverter[]
|
||||
{
|
||||
new NestedContentSingleValueConverter(publishedSnapshotAccessor.Object, publishedModelFactory.Object, proflog),
|
||||
new NestedContentManyValueConverter(publishedSnapshotAccessor.Object, publishedModelFactory.Object, proflog),
|
||||
new NestedContentSingleValueConverter(publishedSnapshotAccessor.Object, publishedModelFactory.Object, proflog, Mock.Of<IApiElementBuilder>()),
|
||||
new NestedContentManyValueConverter(publishedSnapshotAccessor.Object, publishedModelFactory.Object, proflog, Mock.Of<IApiElementBuilder>()),
|
||||
});
|
||||
|
||||
var factory =
|
||||
@@ -294,5 +296,8 @@ public class NestedContentTests
|
||||
|
||||
public override object GetXPathValue(string culture = null, string? segment = null) =>
|
||||
throw new InvalidOperationException("This method won't be implemented.");
|
||||
|
||||
public override object GetDeliveryApiValue(bool expanding, string culture = null, string segment = null) =>
|
||||
PropertyType.ConvertInterToDeliveryApiObject(_owner, ReferenceCacheLevel, InterValue, _preview);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user