updated to use constant

This commit is contained in:
Shannon
2014-02-25 02:36:25 +11:00
parent a938605461
commit 784f873777
2 changed files with 3 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ namespace Umbraco.Core.Configuration.UmbracoSettings
return new OptionalInnerTextConfigurationElement<string>(
(InnerTextConfigurationElement<string>)this["DefaultBackofficeProvider"],
//set the default
"UsersMembershipProvider");
Constants.Conventions.User.UmbracoUsersProviderName);
}
}

View File

@@ -1,4 +1,5 @@
using NUnit.Framework;
using Umbraco.Core;
namespace Umbraco.Tests.Configurations.UmbracoSettings
{
@@ -8,7 +9,7 @@ namespace Umbraco.Tests.Configurations.UmbracoSettings
[Test]
public void Users()
{
Assert.IsTrue(SettingsSection.Providers.DefaultBackOfficeUserProvider == "UsersMembershipProvider");
Assert.IsTrue(SettingsSection.Providers.DefaultBackOfficeUserProvider == Constants.Conventions.User.UmbracoUsersProviderName);
}
}
}