mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Fixing Placement.info unit tests (c) loudej
--HG-- branch : dev
This commit is contained in:
@@ -165,11 +165,10 @@ namespace Orchard.Tests.DisplayManagement.Descriptors {
|
||||
}
|
||||
|
||||
[Test]
|
||||
[Ignore("Needs fixing")]
|
||||
public void DescribedPlacementIsReturnedIfNotNull() {
|
||||
|
||||
_container.Resolve<TestShapeProvider>().Discover =
|
||||
builder => builder.Describe("Hello")
|
||||
builder => builder.Describe("Hello").From(TestFeature())
|
||||
.Placement(ctx => ctx.DisplayType == "Detail" ? "Main" : null)
|
||||
.Placement(ctx => ctx.DisplayType == "Summary" ? "" : null);
|
||||
|
||||
@@ -192,11 +191,10 @@ namespace Orchard.Tests.DisplayManagement.Descriptors {
|
||||
}
|
||||
|
||||
[Test]
|
||||
[Ignore("Needs fixing")]
|
||||
public void TwoArgumentVariationDoesSameThing() {
|
||||
|
||||
_container.Resolve<TestShapeProvider>().Discover =
|
||||
builder => builder.Describe("Hello")
|
||||
builder => builder.Describe("Hello").From(TestFeature())
|
||||
.Placement(ctx => ctx.DisplayType == "Detail", "Main")
|
||||
.Placement(ctx => ctx.DisplayType == "Summary", "");
|
||||
|
||||
|
Reference in New Issue
Block a user