You need to sign in to do that
Don't have an account?
Chris - ARI
Test Class for Insert New Opportunity
Test Class keeps failing. What is wrong here?
@isTest public class Test_OppWonChatter { static testMethod void insertNewOpportunity(){ Account a = new Account(Name = 'Test'); insert a; Opportunity o = new Opportunity(); o.name = 'Test'; o.AccountId = a.Id; o.StageName = 'Closed Won'; o.CloseDate = date.today(); o.Type = 'New Customers'; insert o; } }
"You can try this code." If you find your Solution then mark this as the best answer.
Thank you!
Regards
Suraj Tripathi