You need to sign in to do that
Don't have an account?
moebius43
apex test class w "modify all" permission
To make a test class pass, our developer consultant has given "modify all" permission. Is this really acceptable? I am a sys admin - so I have a lot to learn here!
Please comment, or suggest resources for me to read.
Please comment, or suggest resources for me to read.
Ultimately, test class shouldn't rely on records in org.
We should create test data using @testsetup(preferred) or utility classes.Otherwise, when a metadata get introduced (like validation rule, trigger etc) test class may fail.
Thanks,
Govindaraj.S
All Answers
Ultimately, test class shouldn't rely on records in org.
We should create test data using @testsetup(preferred) or utility classes.Otherwise, when a metadata get introduced (like validation rule, trigger etc) test class may fail.
Thanks,
Govindaraj.S
Please keep this community clean by closing solved cases.
Thanks,
Govindaraj.S
Thank you very much!
Maureen