Clean up datatype configurations for V14 (#15718)
* Clean up datatype configurations for V14 * Fix merge * Remove ParameterEditorCollection + revert accidental changes to core project file
This commit is contained in:
@@ -454,7 +454,6 @@ public class ContentBuilder
|
||||
content.SetValue("ddl", "1234");
|
||||
content.SetValue("chklist", "randomc");
|
||||
content.SetValue("contentPicker", Udi.Create(Constants.UdiEntityType.Document, new Guid("74ECA1D4-934E-436A-A7C7-36CC16D4095C")).ToString());
|
||||
content.SetValue("mediaPicker", Udi.Create(Constants.UdiEntityType.Media, new Guid("44CB39C8-01E5-45EB-9CF8-E70AAF2D1691")).ToString());
|
||||
content.SetValue("memberPicker", Udi.Create(Constants.UdiEntityType.Member, new Guid("9A50A448-59C0-4D42-8F93-4F1D55B0F47D")).ToString());
|
||||
content.SetValue("multiUrlPicker", "[{\"name\":\"https://test.com\",\"url\":\"https://test.com\"}]");
|
||||
content.SetValue("tags", "this,is,tags");
|
||||
|
||||
@@ -501,14 +501,6 @@ public class ContentTypeBuilder
|
||||
.WithSortOrder(16)
|
||||
.Done()
|
||||
.AddPropertyType()
|
||||
.WithAlias("mediaPicker")
|
||||
.WithName("Media Picker")
|
||||
.WithDataTypeId(1048)
|
||||
.WithPropertyEditorAlias(Constants.PropertyEditors.Aliases.MediaPicker)
|
||||
.WithValueStorageType(ValueStorageType.Integer)
|
||||
.WithSortOrder(17)
|
||||
.Done()
|
||||
.AddPropertyType()
|
||||
.WithAlias("memberPicker")
|
||||
.WithName("Member Picker")
|
||||
.WithDataTypeId(1047)
|
||||
|
||||
@@ -65,7 +65,6 @@ public class DataEditorBuilder<TParent>
|
||||
Mock.Of<IDataValueEditorFactory>())
|
||||
{
|
||||
Alias = alias,
|
||||
Name = name,
|
||||
DefaultConfiguration = defaultConfiguration,
|
||||
ExplicitConfigurationEditor = explicitConfigurationEditor,
|
||||
ExplicitValueEditor = explicitValueEditor
|
||||
|
||||
@@ -50,8 +50,6 @@ public class DataValueEditorBuilder<TParent> : ChildBuilderBase<TParent, IDataVa
|
||||
public override IDataValueEditor Build()
|
||||
{
|
||||
var configuration = _configuration;
|
||||
var view = _view;
|
||||
var hideLabel = _hideLabel ?? false;
|
||||
var valueType = _valueType ?? Guid.NewGuid().ToString();
|
||||
|
||||
return new DataValueEditor(
|
||||
@@ -59,8 +57,6 @@ public class DataValueEditorBuilder<TParent> : ChildBuilderBase<TParent, IDataVa
|
||||
Mock.Of<IJsonSerializer>())
|
||||
{
|
||||
ConfigurationObject = configuration,
|
||||
View = view,
|
||||
HideLabel = hideLabel,
|
||||
ValueType = valueType
|
||||
};
|
||||
}
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
using Moq;
|
||||
using Umbraco.Cms.Core.IO;
|
||||
using Umbraco.Cms.Core.PropertyEditors;
|
||||
using Umbraco.Cms.Core.Services;
|
||||
using Umbraco.Cms.Core.Strings;
|
||||
using Umbraco.Cms.Infrastructure.Serialization;
|
||||
|
||||
@@ -17,10 +16,9 @@ public class MockedValueEditors
|
||||
var valueType = ValueTypes.IsValue(name) ? name : ValueTypes.String;
|
||||
|
||||
return new DataValueEditor(
|
||||
Mock.Of<ILocalizedTextService>(),
|
||||
Mock.Of<IShortStringHelper>(),
|
||||
new JsonNetSerializer(),
|
||||
Mock.Of<IIOHelper>(),
|
||||
new DataEditorAttribute(name, name, name) { ValueType = valueType });
|
||||
new DataEditorAttribute(name) { ValueType = valueType });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user