Apex questionsQuestion 102 of 179
ApexIntermediatesecuritytestingsharing
Test negative sharing scenarios with assert on QueryException
Scenario
Apex test asserts record found but never tests that unauthorized user receives empty result or exception on restricted record.
Answer it out loud first
Serious prep means attempting before reading. Take two minutes to structure your answer, then compare.