apex-enterprise-patterns / force-di

Generic DI library with support for Apex, Triggers, Visualforce and Lightning

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

di_PlatformCacheTest test fail without Manage Internal Users permission.

alarussa-cb opened this issue · comments

Is your feature request related to a problem? Please describe.
The givenANewConfigSettingThenGetThatInstance and givenReadOnlyAccessThenGetInstance in the di_PlatformCacheTest require the system permission, Manage Internal Users to insert users with the Read Only or Minimum Access - Salesforce profiles. Without this permission, you will receive the following error:

System.DmlException: Insert failed. First exception on row 0; first error: REQUIRED_FIELD_MISSING, Required fields are missing: [ProfileId]: [ProfileId]

Describe the solution you'd like
Commented out test methods

Describe alternatives you've considered

Additional context
Add any other context or screenshots about the feature request here.