From e40ac44afd0ee27a68d41df449fad04d166a0950 Mon Sep 17 00:00:00 2001 From: Shannon Date: Wed, 18 Nov 2015 17:00:27 +0100 Subject: [PATCH] updates test to reflect the instructions to replicate the original issue U4-7414 --- .../Services/ContentTypeServiceTests.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/Umbraco.Tests/Services/ContentTypeServiceTests.cs b/src/Umbraco.Tests/Services/ContentTypeServiceTests.cs index b82285862a..465517bfac 100644 --- a/src/Umbraco.Tests/Services/ContentTypeServiceTests.cs +++ b/src/Umbraco.Tests/Services/ContentTypeServiceTests.cs @@ -1168,6 +1168,8 @@ namespace Umbraco.Tests.Services { var service = ServiceContext.ContentTypeService; var basePage = (IContentType)MockedContentTypes.CreateBasicContentType(); + basePage.AddPropertyGroup("Content"); + basePage.AddPropertyGroup("Meta"); service.Save(basePage); var authorPropertyType = new PropertyType(Constants.PropertyEditors.TextboxAlias, DataTypeDatabaseType.Ntext, "author") @@ -1179,6 +1181,16 @@ namespace Umbraco.Tests.Services DataTypeDefinitionId = -88 }; var authorAdded = basePage.AddPropertyType(authorPropertyType, "Content"); + var titlePropertyType = new PropertyType(Constants.PropertyEditors.TextboxAlias, DataTypeDatabaseType.Ntext, "title") + { + Name = "Title", + Description = "", + Mandatory = false, + SortOrder = 1, + DataTypeDefinitionId = -88 + }; + var titleAdded = basePage.AddPropertyType(authorPropertyType, "Meta"); + service.Save(basePage); basePage = service.GetContentType(basePage.Id);