@isTest
|
private class lexSolutionProjectRequirementsTest {
|
@TestSetup
|
static void makeData(){
|
SolutionProjectRequirements__c solProject = new SolutionProjectRequirements__c();
|
solProject.Name = 'Test';
|
solProject.HospitalOwner__c = UserInfo.getUserId();
|
solProject.Sales_Assistant__c = UserInfo.getUserId();
|
solProject.GIR_Assistant__c = UserInfo.getUserId();
|
solProject.Project_Type__c = '新建大楼';
|
solProject.Purpose_Proposal__c = '促进销售商谈';
|
insert solProject;
|
}
|
static testMethod void test1(){
|
SolutionProjectRequirements__c so = [select Id from SolutionProjectRequirements__c limit 1];
|
Test.startTest();
|
lexSolutionProjectRequirementsController.initSubmitSolutionForApprovalButton(so.Id);
|
lexSolutionProjectRequirementsController.initForApplyAgainButton(so.Id);
|
lexSolutionProjectRequirementsController.initForClosingCaseFlowButton(so.Id);
|
lexSolutionProjectRequirementsController.updateSubmitSolutionForApprovalButton(so.Id);
|
lexSolutionProjectRequirementsController.updateForClosingCaseFlowButton(so.Id);
|
lexSolutionProjectRequirementsController.queryForAttachments(so.Id);
|
lexSolutionProjectRequirementsController.queryForSolutionProgramme(so.Id);
|
lexSolutionProjectRequirementsController.queryForAttachments1(so.Id);
|
lexSolutionProjectRequirementsController.updateSubmitSolutionForApprovalButton('');
|
lexSolutionProjectRequirementsController.updateForClosingCaseFlowButton('');
|
lexSolutionProjectRequirementsController.initSubmitSolutionForApprovalButton('');
|
Test.stopTest();
|
}
|
}
|