From f77961ca6ecb147682ab8348a3783cd7736a8874 Mon Sep 17 00:00:00 2001 From: Shannon Date: Thu, 23 Jul 2020 16:42:53 +1000 Subject: [PATCH] Fixes tests --- src/Umbraco.Tests/Published/NestedContentTests.cs | 2 +- src/Umbraco.Web/Editors/Binders/ContentItemBinder.cs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Umbraco.Tests/Published/NestedContentTests.cs b/src/Umbraco.Tests/Published/NestedContentTests.cs index 7f499d479b..c5cee8843f 100644 --- a/src/Umbraco.Tests/Published/NestedContentTests.cs +++ b/src/Umbraco.Tests/Published/NestedContentTests.cs @@ -34,7 +34,7 @@ namespace Umbraco.Tests.Published var proflog = new ProfilingLogger(logger, profiler); PropertyEditorCollection editors = null; - var editor = new NestedContentPropertyEditor(logger, new Lazy(() => editors), Mock.Of(), Mock.Of()); + var editor = new NestedContentPropertyEditor(logger, new Lazy(() => editors), Mock.Of(), Mock.Of(), Mock.Of()); editors = new PropertyEditorCollection(new DataEditorCollection(new DataEditor[] { editor })); var dataType1 = new DataType(editor) diff --git a/src/Umbraco.Web/Editors/Binders/ContentItemBinder.cs b/src/Umbraco.Web/Editors/Binders/ContentItemBinder.cs index 609974bef7..378865218c 100644 --- a/src/Umbraco.Web/Editors/Binders/ContentItemBinder.cs +++ b/src/Umbraco.Web/Editors/Binders/ContentItemBinder.cs @@ -47,7 +47,6 @@ namespace Umbraco.Web.Editors.Binders internal static void BindModel(ContentItemSave model, IContent persistedContent) { if (model is null) throw new ArgumentNullException(nameof(model)); - if (persistedContent is null) throw new ArgumentNullException(nameof(persistedContent)); model.PersistedContent = persistedContent;