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:
Shannon
2013-09-16 19:33:21 +10:00
parent b043ee577f
commit 48db556d1b
17 changed files with 183 additions and 166 deletions

View File

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