liuyn
2024-03-11 a87f1c3df03078814ee97ad0c8ac200a232419e9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
@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();
    }
}