The System.runAs() functionality can be used to test and verify proper data sharing and data access. However, System.runAs() does NOT validate CRUD or Field Level Security permissions.
A. True
B. False
3 Comments on “However, System.runAs() does NOT validate CRUD or Field Level Security permissions.”
TRUE is right answer here.
The runAs method doesn’t enforce user permissions or field-level permissions, only record sharing.
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_testing_tools_runas.htm
0
0
Right!
0
0
B
0
0