ensures the ui cultures are set in the back office. adds WebSecurity as a dependency for UmbracoContext.

This commit is contained in:
Shannon
2013-07-31 18:21:27 +10:00
parent 6f464567bb
commit dcf730a1bc
13 changed files with 148 additions and 28 deletions

View File

@@ -24,6 +24,7 @@ using Umbraco.Web;
using Umbraco.Web.PublishedCache;
using Umbraco.Web.PublishedCache.XmlPublishedCache;
using Umbraco.Web.Routing;
using Umbraco.Web.Security;
using umbraco.BusinessLogic;
namespace Umbraco.Tests.TestHelpers
@@ -284,10 +285,12 @@ namespace Umbraco.Tests.TestHelpers
PublishedContentCache.UnitTesting = true;
var httpContext = GetHttpContextFactory(url, routeData).HttpContext;
var ctx = new UmbracoContext(
GetHttpContextFactory(url, routeData).HttpContext,
httpContext,
ApplicationContext,
new PublishedCaches(cache, new PublishedMediaCache()));
new PublishedCaches(cache, new PublishedMediaCache()),
new WebSecurity(httpContext, ApplicationContext));
if (setSingleton)
{