Salesforce
PDII · Question #52
PDII Question #52: Real Exam Question with Answer & Explanation
Sign in or unlock PDII to reveal the answer and full explanation for question #52. The question stem and answer options stay visible for context.
Question
What is a best practice when unit testing a controller? (Choose two.)
Options
- ASimulate user interaction by leveraging Test.setMock()
- BVerify correct references by using getURL()
- CAccess test data by using seeAllData=true
- DSet query parameters by using getParameters().put
Unlock PDII to see the answer
You've previewed enough free PDII questions. Unlock PDII for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.