-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added unit tests for populating the type feature provider (#16399)
Co-authored-by: Zoltán Lehóczky <zoltan.lehoczky@lombiq.com> Co-authored-by: Mike Alhayek <mike@crestapps.com>
- Loading branch information
1 parent
7b4120e
commit 4aeaaf9
Showing
3 changed files
with
88 additions
and
2 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
test/OrchardCore.Tests.Modules/BaseThemeSample/DependentTypes.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using OrchardCore.Modules; | ||
|
||
namespace BaseThemeSample; | ||
|
||
public class BaseThemeFeatureIndependentStartup : StartupBase | ||
{ | ||
} | ||
|
||
[Feature("BaseThemeSample")] | ||
public class BaseThemeSampleStartup : StartupBase | ||
{ | ||
} |
17 changes: 17 additions & 0 deletions
17
test/OrchardCore.Tests.Modules/ModuleSample/DependentTypes.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using OrchardCore.Environment.Extensions; | ||
using OrchardCore.Modules; | ||
|
||
namespace ModuleSample; | ||
|
||
public class FeatureIndependentStartup : StartupBase { } | ||
|
||
[Feature("Sample1")] | ||
public class Sample1Startup : StartupBase | ||
{ | ||
} | ||
|
||
[Feature("Sample2")] | ||
[FeatureTypeDiscovery(SkipExtension = true)] | ||
public class SkippedDependentType | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters