Salesforce Decode
Salesforcedecode
Apex questionsQuestion 80 of 179
ApexIntermediatesecuritytestingsharing

Use System.runAs to test sharing and FLS in Apex test classes

Scenario

Tests run as system user pass but partner user cannot see records in production. No runAs coverage for community profile.

Answer it out loud first

Serious prep means attempting before reading. Take two minutes to structure your answer, then compare.