From 098d2815e32d9d621f96090eb6ddebc5cc0cacce Mon Sep 17 00:00:00 2001 From: Stephan Date: Wed, 11 Nov 2015 16:05:11 +0100 Subject: [PATCH] Fix ContentRepositoryTest.Can_Perform_Add_With_Default_Template --- .../Persistence/Repositories/ContentRepositoryTest.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Tests/Persistence/Repositories/ContentRepositoryTest.cs b/src/Umbraco.Tests/Persistence/Repositories/ContentRepositoryTest.cs index 146ec49a50..72fe8f5f36 100644 --- a/src/Umbraco.Tests/Persistence/Repositories/ContentRepositoryTest.cs +++ b/src/Umbraco.Tests/Persistence/Repositories/ContentRepositoryTest.cs @@ -241,7 +241,8 @@ namespace Umbraco.Tests.Persistence.Repositories templateRepository.AddOrUpdate(template); unitOfWork.Commit(); - ContentType contentType = MockedContentTypes.CreateSimpleContentType("umbTextpage2", "Textpage"); + ContentType contentType = MockedContentTypes.CreateSimpleContentType("umbTextpage2", "Textpage"); + contentType.AllowedTemplates = Enumerable.Empty(); // because CreateSimple... assigns one contentType.SetDefaultTemplate(template); Content textpage = MockedContent.CreateSimpleContent(contentType);