fixes tests

This commit is contained in:
Shannon
2017-02-03 13:32:22 +11:00
parent 8ae700eedf
commit 49b7f15e3d
2 changed files with 4 additions and 4 deletions

View File

@@ -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;

View File

@@ -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();