From 05c2da807fb1443c7275f39173b03fcccff6ec53 Mon Sep 17 00:00:00 2001 From: Stephan Date: Thu, 18 Jan 2018 15:58:51 +0100 Subject: [PATCH] U4-10079 - fix test --- .../Persistence/Repositories/ContentTypeRepositoryTest.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Umbraco.Tests/Persistence/Repositories/ContentTypeRepositoryTest.cs b/src/Umbraco.Tests/Persistence/Repositories/ContentTypeRepositoryTest.cs index 8a93ede9a3..af40b4de92 100644 --- a/src/Umbraco.Tests/Persistence/Repositories/ContentTypeRepositoryTest.cs +++ b/src/Umbraco.Tests/Persistence/Repositories/ContentTypeRepositoryTest.cs @@ -332,6 +332,9 @@ namespace Umbraco.Tests.Persistence.Repositories var contentType = (IContentType)MockedContentTypes.CreateSimpleContentType2("test", "Test", propertyGroupName: "testGroup"); Assert.AreEqual(4, contentType.PropertyTypes.Count()); + + // remove all templates - since they are not saved, they would break the (wtf) mapping code + contentType.AllowedTemplates = new ITemplate[0]; // there is NO mapping from display to contentType, but only from save // to contentType, so if we want to test, let's to it properly!