-
Notifications
You must be signed in to change notification settings - Fork 13
FeatureFlagCommonTests
codefriar edited this page Oct 5, 2023
·
2 revisions
APIVERSION: 58
STATUS: ACTIVE
Class serves to DRY code for various testing methods that require it. It is not intended to be used directly.
This is the id of the feature flag that's included with ApexKit. CMDT can be hard to test with because you can't necessarily know the object prefix until a cmdt record is saved. :(
DRY method to create a test flag with valid-ish id.
Param | Description |
---|---|
flagName |
String name of the Flag |
enabled |
Boolean whether the flag is enabled universally or not |
Type | Description |
---|---|
Map<String,Feature_Flag__mdt> | Map<String, Feature_Flag__mdt> test flag |
fetches a valid permission set id
Type | Description |
---|---|
Id | Id the id of the permissionset that's included with ApexKit |
returns a map of feature flags that are enabled just for a specified permission set
Param | Description |
---|---|
flagName |
String name of the flag |
permSetId |
Id the id of the permission set that enables this flag |
enabled |
Boolean whether the flag is enabled or not |
Type | Description |
---|---|
Map<String,Feature_Flag_Enabled_For__mdt> | Map<String, Feature_Flag_Enabled_For__mdt> the map of feature flags |