Updated SettingsForTest to return mockable umbraco settings so we can set whatever we want. Fixing up unit tests. Removes calls to CleanUmbracoSettingsConfig and EnsureUmbracoSettingsConfig since we should be dealing with the mockable settings.
This commit is contained in:
@@ -28,11 +28,6 @@ namespace Umbraco.Web.Routing
|
||||
var provider = UrlProviderMode.Auto;
|
||||
Mode = provider;
|
||||
|
||||
//if (Enum<UrlProviderMode>.TryParse(UmbracoConfiguration.For<IWebRouting>(), out provider))
|
||||
//{
|
||||
|
||||
//}
|
||||
|
||||
if (Enum<UrlProviderMode>.TryParse(UmbracoConfiguration.Current.UmbracoSettings.WebRouting.UrlProviderMode, out provider))
|
||||
{
|
||||
Mode = provider;
|
||||
|
||||
@@ -53,6 +53,7 @@ namespace Umbraco.Web.Trees
|
||||
[DataMember(Name = "name")]
|
||||
public string Title { get; set; }
|
||||
|
||||
//TODO: This doesn't seem to be used by anything!
|
||||
/// <summary>
|
||||
/// Gets or sets the node path.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user