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:
@@ -470,7 +470,7 @@ function isValidAlias(alias) {{
|
||||
var newUrl = url.ToLowerInvariant();
|
||||
foreach (var n in UmbracoConfiguration.Current.UmbracoSettings.RequestHandler.CharCollection)
|
||||
{
|
||||
if (n.Char.IsNullOrWhiteSpace() == false)
|
||||
if (n.Char != "")
|
||||
newUrl = newUrl.Replace(n.Char, n.Replacement);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user