From 49b7f15e3d06f89bd192b4766a130548ceaf5d42 Mon Sep 17 00:00:00 2001 From: Shannon Date: Fri, 3 Feb 2017 13:32:22 +1100 Subject: [PATCH] fixes tests --- src/Umbraco.Core/Events/ScopeEventDispatcher.cs | 2 +- src/Umbraco.Tests/Scoping/ScopedXmlTests.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Umbraco.Core/Events/ScopeEventDispatcher.cs b/src/Umbraco.Core/Events/ScopeEventDispatcher.cs index 96e73a7aac..8073b9ac6e 100644 --- a/src/Umbraco.Core/Events/ScopeEventDispatcher.cs +++ b/src/Umbraco.Core/Events/ScopeEventDispatcher.cs @@ -88,7 +88,7 @@ namespace Umbraco.Core.Events public void ScopeExit(bool completed) { - // fixme - we'd need to de-duplicate events somehow, etc + // fixme - we'd need to de-duplicate events somehow, etc - and the deduplication should be last in wins if (_events == null) return; diff --git a/src/Umbraco.Tests/Scoping/ScopedXmlTests.cs b/src/Umbraco.Tests/Scoping/ScopedXmlTests.cs index 44c7db8fe9..179c924f7b 100644 --- a/src/Umbraco.Tests/Scoping/ScopedXmlTests.cs +++ b/src/Umbraco.Tests/Scoping/ScopedXmlTests.cs @@ -60,7 +60,7 @@ namespace Umbraco.Tests.Scoping contentMock.Setup(x => x.XmlCacheEnabled).Returns(false); SettingsForTests.ConfigureSettings(settings); - var contentType = new ContentType(-1) { Alias = "contenttype" }; + var contentType = new ContentType(-1) { Alias = "contenttype", Name = "test"}; ApplicationContext.Services.ContentTypeService.Save(contentType); _cacheHandler = new CacheRefresherEventHandler(); @@ -95,7 +95,7 @@ namespace Umbraco.Tests.Scoping contentMock.Setup(x => x.XmlCacheEnabled).Returns(false); SettingsForTests.ConfigureSettings(settings); - var contentType = new ContentType(-1) { Alias = "contenttype" }; + var contentType = new ContentType(-1) { Alias = "contenttype", Name = "test"}; ApplicationContext.Services.ContentTypeService.Save(contentType); _cacheHandler = new CacheRefresherEventHandler(); @@ -161,7 +161,7 @@ namespace Umbraco.Tests.Scoping contentMock.Setup(x => x.XmlCacheEnabled).Returns(false); SettingsForTests.ConfigureSettings(settings); - var contentType = new ContentType(-1) { Alias = "contenttype" }; + var contentType = new ContentType(-1) { Alias = "contenttype", Name = "test" }; ApplicationContext.Services.ContentTypeService.Save(contentType); _cacheHandler = new CacheRefresherEventHandler();