mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 10:54:50 +08:00
Need to provide the default view engine, because the shell is now correctly using the provided collection rather than the global one.
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4042427
This commit is contained in:
@@ -44,7 +44,7 @@ namespace Orchard.Tests.Environment {
|
||||
builder.Register(_controllerBuilder);
|
||||
builder.Register(_routeCollection);
|
||||
builder.Register(_modelBinderDictionary);
|
||||
builder.Register(new ViewEngineCollection());
|
||||
builder.Register(new ViewEngineCollection{new WebFormViewEngine()});
|
||||
builder.Register(new StuPackageManager()).As<IPackageManager>();
|
||||
});
|
||||
}
|
||||
|
@@ -36,8 +36,8 @@ namespace Orchard.Tests.Environment {
|
||||
new[] { provider1, provider2 },
|
||||
publisher,
|
||||
new[] { modelBinderProvider1, modelBinderProvider2 },
|
||||
modelBinderPublisher,
|
||||
new ViewEngineCollection(),
|
||||
modelBinderPublisher,
|
||||
new ViewEngineCollection { new WebFormViewEngine() },
|
||||
new Moq.Mock<IPackageManager>().Object,
|
||||
Enumerable.Empty<IOrchardShellEvents>());
|
||||
|
||||
|
Reference in New Issue
Block a user