Fixed the model mapping tests
This commit is contained in:
@@ -12,7 +12,7 @@ namespace Umbraco.Core.Configuration.UmbracoSettings
|
||||
return new OptionalInnerTextConfigurationElement<bool>(
|
||||
(InnerTextConfigurationElement<bool>)this["keepUserLoggedIn"],
|
||||
//set the default
|
||||
false);
|
||||
true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace Umbraco.Tests.Configurations.UmbracoSettings
|
||||
[Test]
|
||||
public void KeepUserLoggedIn()
|
||||
{
|
||||
Assert.IsTrue(SettingsSection.Security.KeepUserLoggedIn == false);
|
||||
Assert.IsTrue(SettingsSection.Security.KeepUserLoggedIn == true);
|
||||
}
|
||||
[Test]
|
||||
public void HideDisabledUsersInBackoffice()
|
||||
|
||||
@@ -30,13 +30,13 @@ namespace Umbraco.Tests.Models.Mapping
|
||||
get { return DatabaseBehavior.NewSchemaPerFixture; }
|
||||
}
|
||||
|
||||
protected override void FreezeResolution()
|
||||
{
|
||||
//PropertyEditorResolver.Current = new PropertyEditorResolver(
|
||||
// () => new List<Type> {typeof (TestPropertyEditor)});
|
||||
//protected override void FreezeResolution()
|
||||
//{
|
||||
// PropertyEditorResolver.Current = new PropertyEditorResolver(
|
||||
// () => PluginManager.Current.ResolvePropertyEditors());
|
||||
|
||||
base.FreezeResolution();
|
||||
}
|
||||
// base.FreezeResolution();
|
||||
//}
|
||||
|
||||
[Test]
|
||||
public void To_Media_Item_Simple()
|
||||
|
||||
@@ -80,18 +80,9 @@ namespace Umbraco.Tests.TestHelpers
|
||||
|
||||
using (DisposableTimer.TraceDuration<BaseDatabaseFactoryTest>("init"))
|
||||
{
|
||||
using (DisposableTimer.TraceDuration<BaseDatabaseFactoryTest>("DatabaseContext.Initialize"))
|
||||
{
|
||||
DatabaseContext.Initialize(dbFactory.ProviderName, dbFactory.ConnectionString);
|
||||
}
|
||||
using (DisposableTimer.TraceDuration<BaseDatabaseFactoryTest>("CreateSqlCeDatabase"))
|
||||
{
|
||||
CreateSqlCeDatabase();
|
||||
}
|
||||
using (DisposableTimer.TraceDuration<BaseDatabaseFactoryTest>("InitializeDatabase"))
|
||||
{
|
||||
InitializeDatabase();
|
||||
}
|
||||
DatabaseContext.Initialize(dbFactory.ProviderName, dbFactory.ConnectionString);
|
||||
CreateSqlCeDatabase();
|
||||
InitializeDatabase();
|
||||
|
||||
//ensure the configuration matches the current version for tests
|
||||
SettingsForTests.ConfigurationStatus = UmbracoVersion.Current.ToString(3);
|
||||
|
||||
Reference in New Issue
Block a user