Exam4Training

What should a developer use in an Apex test class to test that record sharing is enforced on the Visualforce page?

Universal Containers allows customers to log into a Salesforce Community and update their orders via a custom Visualforce page. Universal Containers’ sales representatives can edit the orders on the same Visualforce page.

What should a developer use in an Apex test class to test that record sharing is enforced on the Visualforce page?
A . Use System.profllels() to test as an administrator and a community user,
B. Use System.profilels() to test as a sales rep and a community user.
C. Use System.runAs() to test as a sales rep and a community user.
D. Use System.runAs() to test as an administrator and a community user.

Answer: C

Latest PDII Dumps Valid Version with 280 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Exit mobile version