| | |
| | | @isTest |
| | | private class AssessmentReportControllerTest { |
| | | |
| | | @TestSetup static void init() { |
| | | @TestSetup |
| | | |
| | | static void init() { |
| | | RecordType rectCo = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and DeveloperName = 'Hp']; |
| | | List<RecordType> rectDpt = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and DeveloperName IN ('Department_GI', 'Department_BF') order by DeveloperName desc]; |
| | | |
| | |
| | | con.Pregnant_Rest__c = true; |
| | | insert con; |
| | | |
| | | RecordType rectCam = |
| | | /*RecordType rectCam = |
| | | [select Id from RecordType |
| | | where IsActive = true and SobjectType = 'Campaign' |
| | | and DeveloperName = 'ServiceEngineerTraining']; |
| | | and DeveloperName = 'ServiceEngineerTraining'];*/ |
| | | |
| | | Campaign cam = new Campaign(); |
| | | cam.Name = 'cam'; |
| | | cam.Name2__c = '1234'; |
| | | cam.RecordTypeId = rectCam.Id; |
| | | //cam.RecordTypeId = rectCam.Id; |
| | | cam.StartDate = Date.today().addDays(-15); |
| | | cam.EndDate = Date.today().addDays(18); |
| | | cam.Mailflg_after45__c = true; |
| | |
| | | cam.Mailflg_before15__c = true; |
| | | cam.Mailflg_before7__c = true; |
| | | cam.Mailflg_after3__c = true; |
| | | cam.HostName__c = '111'; |
| | | cam.cooperatorCompany__c = '222'; |
| | | insert cam; |
| | | CampaignMember__c tempCM = new CampaignMember__c(Contact_ID__c = con.id, Campaign__c = cam.id); |
| | | insert tempCM; |