mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-07-15 14:54:57 +08:00
Fix profiling setup
"build profiling" is back to a working state. --HG-- branch : dev
This commit is contained in:
parent
cb1b29ff8f
commit
a6eb5740e7
10
src/Orchard.Profile/Tests/Profiling.feature.cs
generated
10
src/Orchard.Profile/Tests/Profiling.feature.cs
generated
@ -1,18 +1,21 @@
|
|||||||
// ------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// This code was generated by SpecFlow (http://www.specflow.org/).
|
// This code was generated by SpecFlow (http://www.specflow.org/).
|
||||||
// SpecFlow Version:1.2.0.0
|
// SpecFlow Version:1.3.2.0
|
||||||
// Runtime Version:2.0.50727.4927
|
// Runtime Version:4.0.30319.1
|
||||||
//
|
//
|
||||||
// Changes to this file may cause incorrect behavior and will be lost if
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
// the code is regenerated.
|
// the code is regenerated.
|
||||||
// </auto-generated>
|
// </auto-generated>
|
||||||
// ------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------
|
||||||
namespace Orchard.Profile.Tests
|
#region Designer generated code
|
||||||
|
namespace Orchard.Specs.Le.Tests
|
||||||
{
|
{
|
||||||
using TechTalk.SpecFlow;
|
using TechTalk.SpecFlow;
|
||||||
|
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.3.2.0")]
|
||||||
|
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||||
[NUnit.Framework.TestFixtureAttribute()]
|
[NUnit.Framework.TestFixtureAttribute()]
|
||||||
[NUnit.Framework.DescriptionAttribute("Profiling")]
|
[NUnit.Framework.DescriptionAttribute("Profiling")]
|
||||||
public partial class ProfilingFeature
|
public partial class ProfilingFeature
|
||||||
@ -123,3 +126,4 @@ this.ScenarioSetup(scenarioInfo);
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endregion
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
setup /SiteName:Profiling /AdminUsername:admin /AdminPassword:profiling-secret /DatabaseProvider:SqlCe /EnabledFeatures:Orchard.Framework,Common,Dashboard,Feeds,HomePage,Navigation,Scheduling,Settings,XmlRpc,Orchard.Users,Orchard.Roles,TinyMce,Orchard.Modules,Orchard.Themes,Orchard.MultiTenancy,Orchard.Pages,Orchard.Blogs,Orchard.Comments,Futures.Widgets,Orchard.Media,Orchard.Tags,Orchard.DevTools
|
setup /SiteName:Profiling /AdminUsername:admin /AdminPassword:profiling-secret /DatabaseProvider:SqlCe /EnabledFeatures:Profiling,Orchard.Framework,Routable,Common,Dashboard,Feeds,PublishLater,HomePage,Contents,Navigation,Reports,Scheduling,Indexing,Settings,Localization,XmlRpc,Orchard.Users,Orchard.Roles,TinyMce,Orchard.Modules,Orchard.Themes,Orchard.MultiTenancy,Orchard.Pages,Orchard.Blogs,Orchard.Comments,Orchard.Modules,Futures.Widgets,Orchard.Media,Orchard.Tags,Orchard.DevTools
|
||||||
add profiling data
|
add profiling data
|
||||||
feature disable Orchard.DevTools
|
feature disable Orchard.DevTools
|
||||||
|
@ -2,6 +2,7 @@ using JetBrains.Annotations;
|
|||||||
using Orchard.Blogs.Drivers;
|
using Orchard.Blogs.Drivers;
|
||||||
using Orchard.Blogs.Models;
|
using Orchard.Blogs.Models;
|
||||||
using Orchard.ContentManagement.Handlers;
|
using Orchard.ContentManagement.Handlers;
|
||||||
|
using Orchard.Core.Common.Models;
|
||||||
using Orchard.Core.Routable.Models;
|
using Orchard.Core.Routable.Models;
|
||||||
using Orchard.Data;
|
using Orchard.Data;
|
||||||
|
|
||||||
@ -10,6 +11,7 @@ namespace Orchard.Blogs.Handlers {
|
|||||||
public class BlogHandler : ContentHandler {
|
public class BlogHandler : ContentHandler {
|
||||||
public BlogHandler(IRepository<BlogRecord> repository) {
|
public BlogHandler(IRepository<BlogRecord> repository) {
|
||||||
Filters.Add(new ActivatingFilter<Blog>(BlogDriver.ContentType.Name));
|
Filters.Add(new ActivatingFilter<Blog>(BlogDriver.ContentType.Name));
|
||||||
|
Filters.Add(new ActivatingFilter<CommonAspect>(BlogDriver.ContentType.Name));
|
||||||
Filters.Add(new ActivatingFilter<IsRoutable>(BlogDriver.ContentType.Name));
|
Filters.Add(new ActivatingFilter<IsRoutable>(BlogDriver.ContentType.Name));
|
||||||
Filters.Add(StorageFilter.For(repository));
|
Filters.Add(StorageFilter.For(repository));
|
||||||
}
|
}
|
||||||
|
@ -28,6 +28,7 @@ namespace Orchard.DevTools.Commands {
|
|||||||
var page = _contentManager.Create("Page", VersionOptions.Draft);
|
var page = _contentManager.Create("Page", VersionOptions.Draft);
|
||||||
page.As<ICommonAspect>().Owner = admin;
|
page.As<ICommonAspect>().Owner = admin;
|
||||||
page.As<IsRoutable>().Slug = pageName;
|
page.As<IsRoutable>().Slug = pageName;
|
||||||
|
page.As<IsRoutable>().Path = pageName;
|
||||||
page.As<IsRoutable>().Title = pageName;
|
page.As<IsRoutable>().Title = pageName;
|
||||||
page.As<BodyAspect>().Text = pageName;
|
page.As<BodyAspect>().Text = pageName;
|
||||||
page.As<MenuPart>().OnMainMenu = true;
|
page.As<MenuPart>().OnMainMenu = true;
|
||||||
@ -39,6 +40,7 @@ namespace Orchard.DevTools.Commands {
|
|||||||
var blog = _contentManager.New("Blog");
|
var blog = _contentManager.New("Blog");
|
||||||
blog.As<ICommonAspect>().Owner = admin;
|
blog.As<ICommonAspect>().Owner = admin;
|
||||||
blog.As<IsRoutable>().Slug = blogName;
|
blog.As<IsRoutable>().Slug = blogName;
|
||||||
|
blog.As<IsRoutable>().Path = blogName;
|
||||||
blog.As<IsRoutable>().Title = blogName;
|
blog.As<IsRoutable>().Title = blogName;
|
||||||
blog.As<MenuPart>().OnMainMenu = true;
|
blog.As<MenuPart>().OnMainMenu = true;
|
||||||
blog.As<MenuPart>().MenuPosition = "6." + index;
|
blog.As<MenuPart>().MenuPosition = "6." + index;
|
||||||
|
Loading…
Reference in New Issue
Block a user