From 39095b524cd331d94fca8e28ef07db01de64ebe1 Mon Sep 17 00:00:00 2001 From: Morten Christensen Date: Thu, 18 Apr 2013 10:46:15 -0200 Subject: [PATCH] Updating test - Inheritance between parent/child ContentType has been updated so the parent doesn't have to be added to the composition afterwards. --- src/Umbraco.Tests/Services/ContentTypeServiceTests.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Umbraco.Tests/Services/ContentTypeServiceTests.cs b/src/Umbraco.Tests/Services/ContentTypeServiceTests.cs index 1c459d66a3..209c5e4313 100644 --- a/src/Umbraco.Tests/Services/ContentTypeServiceTests.cs +++ b/src/Umbraco.Tests/Services/ContentTypeServiceTests.cs @@ -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 CreateContentTypeHierarchy()