Interview Question
Qus: What is the purpose of system.runAs()?
Answers (1)
To avoid MIXED-DML-OPERATION error we can include DML statements inside of system.runAs(), still the error persists keep DML statements inside of Test.startTest() and Test.stopTest().