function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Use Test.startTest() and Test.stopTest() to avoid Mix Dml Exception .It is basicaly throw this exception when you do DML for both setup and nonsetup objects .
Please check below link it will help .
https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_dml_non_mix_sobjects_test_methods.htm
Thnaks
Manoj