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

Test Code Coverage for OpportunityShare
Is it possible to write TestCode to check if an OpportunityShare was created?
I have the below code in a trigger:
Now I need to write test code to see if the OpportunityShare does indeed get created.
How would I do this?
I have the below code in a trigger:
Code:
temp_opp_share = new OpportunityShare(OpportunityAccessLevel='Edit', UserOrGroupId=o.Channel_Specialist__c, OpportunityId=o.Id); insert temp_opp_share;
How would I do this?