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 Practice Questions with 280 Q&As
Updated Study Material | Instant Download | Detailed Answers and Explanations
Subscribe
Login
0 Comments