Which functionality does the system method "runAs()” Verify?

Ursa Major Solar is writing test methods.

Which functionality does the system method "runAs()” Verify?
A . Enforcement of a user’s public group assignments.
B. Enforcement of a user’s field-level security.
C. Enforcement of user’s permissions.
D. Enforcement of a user’s record sharing

Answer: C

Subscribe
Notify of
guest
1 Comment
Inline Feedbacks
View all comments
David
David
7 months ago

Correct Answer : D

D. Enforcement of a user’s record sharing

The runAs method enforces record sharing. User permissions and field-level permissions are applied for the new context user as described in Enforcing Object and Field Permissions.