diff --git a/src/main/default/classes/ScheduleSendEmailTest.cls b/src/main/default/classes/ScheduleSendEmailTest.cls index 1593f4a1..2a9740e2 100644 --- a/src/main/default/classes/ScheduleSendEmailTest.cls +++ b/src/main/default/classes/ScheduleSendEmailTest.cls @@ -21,10 +21,12 @@ private class ScheduleSendEmailTest { Contact con = new Contact( FirstName = 'Test', LastName = 'Contact', - Email = 'test.contact@example.com' + Email = 'test.contact@example.com', + AccountId=accRec.Id ); insert con; - + + AccountContactRelation acr = new AccountContactRelation( AccountId = acc.Id, ContactId = con.Id, @@ -39,5 +41,5 @@ private class ScheduleSendEmailTest { List emailTem = [SELECT Id FROM EmailTemplate]; System.assertEquals(True, emailTem.size()>0, 'No Email is sent'); } - - } \ No newline at end of file + +} \ No newline at end of file