mirror of https://github.com/abpframework/abp.git
1 changed files with 30 additions and 0 deletions
@ -0,0 +1,30 @@ |
|||||
|
using Shouldly; |
||||
|
using Volo.Abp.GlobalFeatures; |
||||
|
using Volo.CmsKit.GlobalFeatures; |
||||
|
using Xunit; |
||||
|
|
||||
|
namespace Volo.CmsKit.Features |
||||
|
{ |
||||
|
public class GlobalCmsKitFeatures_Tests : CmsKitDomainTestBase |
||||
|
{ |
||||
|
private readonly GlobalCmsKitFeatures _cmsKitFeatures; |
||||
|
|
||||
|
public GlobalCmsKitFeatures_Tests() |
||||
|
{ |
||||
|
_cmsKitFeatures = new GlobalCmsKitFeatures(GlobalFeatureManager.Instance); |
||||
|
} |
||||
|
|
||||
|
[Fact] |
||||
|
public void Page_Feature_Should_Enable_Dependent_Features() |
||||
|
{ |
||||
|
_cmsKitFeatures.DisableAll(); |
||||
|
_cmsKitFeatures.Contents.IsEnabled.ShouldBeFalse(); |
||||
|
_cmsKitFeatures.Pages.IsEnabled.ShouldBeFalse(); |
||||
|
|
||||
|
_cmsKitFeatures.Pages.Enable(); |
||||
|
|
||||
|
_cmsKitFeatures.Contents.IsEnabled.ShouldBeTrue(); |
||||
|
_cmsKitFeatures.Pages.IsEnabled.ShouldBeTrue(); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue