function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

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?