Added BaseUmbracoApplicationTests and fixed up dispose on the ApplicationContext to ensure the db object is disposed and doesn't
reset the PluginManager (as this shouldn't really need to be done). Cleaned up all unit tests so they follow the same structure and uses this base class where necessary and eliminates a lot of duplicate code.
This commit is contained in:
@@ -17,26 +17,6 @@ namespace Umbraco.Tests.TestHelpers
|
||||
MappingResolver.Current = new MappingResolver(
|
||||
() => PluginManager.Current.ResolveAssignedMapperTypes());
|
||||
|
||||
//MappingResolver.Current = new MappingResolver(
|
||||
// new[]
|
||||
// {
|
||||
// typeof(ContentMapper),
|
||||
// typeof(ContentTypeMapper),
|
||||
// typeof(DataTypeDefinitionMapper),
|
||||
// typeof(DictionaryMapper),
|
||||
// typeof(DictionaryTranslationMapper),
|
||||
// typeof(LanguageMapper),
|
||||
// typeof(MediaMapper),
|
||||
// typeof(MediaTypeMapper),
|
||||
// typeof(PropertyGroupMapper),
|
||||
// typeof(PropertyMapper),
|
||||
// typeof(PropertyTypeMapper),
|
||||
// typeof(RelationMapper),
|
||||
// typeof(RelationTypeMapper),
|
||||
// typeof(ServerRegistrationMapper),
|
||||
// typeof(UserMapper),
|
||||
// typeof(UserTypeMapper)
|
||||
// });
|
||||
Resolution.Freeze();
|
||||
SetUp();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user