Updating test - Inheritance between parent/child ContentType has been updated so the parent doesn't have to be added to the composition afterwards.

This commit is contained in:
Morten Christensen
2013-04-18 10:46:15 -02:00
parent 3b1bfe04f2
commit 39095b524c

View File

@@ -170,7 +170,6 @@ namespace Umbraco.Tests.Services
cts.Save(ctBase);
var ctHomePage = new ContentType(ctBase) { Name = "Home Page", Alias = "HomePage", Icon = "settingDomain.gif", Thumbnail = "folder.png", AllowedAsRoot = true };
bool addedContentType = ctHomePage.AddContentType(ctBase);
ctHomePage.AddPropertyType(new PropertyType(dtdYesNo) { Name = "Some property", Alias = "someProperty" } /*,"Navigation"*/ );
cts.Save(ctHomePage);
@@ -183,7 +182,6 @@ namespace Umbraco.Tests.Services
Assert.That(ctHomePage.HasIdentity, Is.True);
Assert.That(homeDoc.HasIdentity, Is.True);
Assert.That(homeDoc.ContentTypeId, Is.EqualTo(ctHomePage.Id));
Assert.That(addedContentType, Is.True);
}
private IEnumerable<IContentType> CreateContentTypeHierarchy()