You need to sign in to do that
Don't have an account?
Vidya D
Test method to test insufficient privileges
My Org has two different profiles. One Profile can create some materials required by Org and 2 nd profice consumes that org by associating material with account through junction object - VF page and cotroller extension. When I use 2nd profile and and access Account through UI, I get expected error message insufficient privileges.
I want to write test case to test insufficient privileges by creating 2 different users one for each. But I am not able to simulate the test method. Now I am wondering is it possible to write test method to test insufficient privileges?
I want to write test case to test insufficient privileges by creating 2 different users one for each. But I am not able to simulate the test method. Now I am wondering is it possible to write test method to test insufficient privileges?
[1] https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_testing_tools_runas.htm