Activity Forums Salesforce® Discussions how to avoid mixed dml exception in Salesforce test class?

  • Nikita

    Member
    November 10, 2017 at 5:35 am

    Hi Uday,

    Try using "Test.startTest()" and "Test.stopTest()". These break unit test context into two contexts (inside startTest-stopTest and outside)

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos