You need to sign in to do that
Don't have an account?
tyler_jennings
Testing Apex Code based on UserInfo attributes
We have a requirement that a closed case should not be updatable by customer portal users, but still allow internal users to modify the case.
I'm wondering how to test this since I must be able to switch the "current user" multiple times to assert all the different scenarios. So far, It doesn't appear that this is possible.
Secondly, am I going to have to jump through hoops to acheive 75% coverage in this case?
I'm wondering how to test this since I must be able to switch the "current user" multiple times to assert all the different scenarios. So far, It doesn't appear that this is possible.
Secondly, am I going to have to jump through hoops to acheive 75% coverage in this case?