File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ const (
2424 HealthCloudAddOn
2525 HealthCloudUser
2626 ApexUserModeWithPermset
27+ EventLogFile
2728)
2829
2930var ScratchFeatureIds = map [ScratchFeature ][]string {
@@ -35,6 +36,7 @@ var ScratchFeatureIds = map[ScratchFeature][]string{
3536 HealthCloudAddOn : {"HealthCloudAddOn" },
3637 HealthCloudUser : {"HealthCloudUser" },
3738 ApexUserModeWithPermset : {"ApexUserModeWithPermset" },
39+ EventLogFile : {"EventLogFile" },
3840}
3941
4042type ScratchProduct enumflag.Flag
@@ -156,6 +158,7 @@ Available Features:
156158 HealthCloudAddOn - Enables Health Cloud add-on
157159 HealthCloudUser - Enables Health Cloud user licenses
158160 ApexUserModeWithPermset - Enables Apex code to run in user mode with a permission set session
161+ EventLogFile - Enables Event Log File
159162 PersonAccounts - Enables Person Accounts (B2C account model)
160163 StateAndCountryPicklist - Enables State and Country Picklists for standard address fields
161164
Original file line number Diff line number Diff line change @@ -189,6 +189,16 @@ func TestExpandProductsToFeatures_ApexUserModeWithPermset(t *testing.T) {
189189 }
190190}
191191
192+ func TestExpandProductsToFeatures_EventLogFile (t * testing.T ) {
193+ result := expandProductsToFeatures ([]ScratchProduct {}, []ScratchFeature {EventLogFile }, map [string ]string {})
194+ if len (result ) != 1 {
195+ t .Fatalf ("Expected 1 feature, got %d" , len (result ))
196+ }
197+ if result [0 ] != "EventLogFile" {
198+ t .Errorf ("Expected EventLogFile, got %s" , result [0 ])
199+ }
200+ }
201+
192202func TestExpandProductsToSettings_NoProductsOrSettings (t * testing.T ) {
193203 result := expandProductsToSettings ([]ScratchProduct {}, []ScratchSetting {})
194204 if len (result ) != 0 {
You can’t perform that action at this time.
0 commit comments