Fixes unit tests which require the ApplicationContext.Current singleton to be setup

This commit is contained in:
Shannon Deminick
2013-04-01 23:30:19 +06:00
parent a2a539f7db
commit a638488eb7
3 changed files with 4 additions and 5 deletions

View File

@@ -16,7 +16,7 @@ namespace Umbraco.Tests.PublishedContent
public override void Initialize()
{
base.Initialize();
UmbracoSettings.SettingsFilePath = Core.IO.IOHelper.MapPath(Core.IO.SystemDirectories.Config + Path.DirectorySeparatorChar, false);
PropertyEditorValueConvertersResolver.Current = new PropertyEditorValueConvertersResolver(
@@ -47,7 +47,7 @@ namespace Umbraco.Tests.PublishedContent
public override void TearDown()
{
base.TearDown();
PropertyEditorValueConvertersResolver.Reset();
PublishedContentStoreResolver.Reset();
PublishedMediaStoreResolver.Reset();