I have created an Apex Class which creates a User Account (future method) . This Class is called from Process Builder when a custom object record is created.
Now, I am trying to create a Test Class, but I am getting 'MIXED_DML_OPERATION, DML operation on setup object is not permitted after you have updated a non-setup object (or vice versa):'
How to get around this ?
Now, I am trying to create a test class for this,