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!