You need to sign in to do that
Don't have an account?

Testing behaviour from a user with a custom Profile
Hi everyone,
We need to test the behaviour for a user with a custom profile. Obviously it is bad habit to assume the existence of this profile on one's org (for example our continuous integration system Hudson's org doesn't have it).
We tried to insert this profile in our test classes but got this exception:
"Save error: DML not allowed on Profile"
Do you know any best practices around profile related test?
Cheers,
Laurent