Salesforce Decode
Salesforcedecode
DevOps & Testing questionsQuestion 25 of 100
DevOps & TestingIntermediateScenariosecuritytestingsystem-run-as

How do you test code that behaves differently by user permissions?

Scenario

A controller should block users without the Approver permission.

Answer it out loud first

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