liuyn
2024-03-11 a87f1c3df03078814ee97ad0c8ac200a232419e9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
@isTest
public with sharing class LexUtilsTest {
    @isTest static void myTest1(){
        LexUtils.getCurrentUserInfo();
        LexUtils.getUserByName('zbc');
        String rectHp = Schema.SObjectType.Account.getRecordTypeInfosByDeveloperName().get('HP').getRecordTypeId();
        Account HP = new Account(RecordTypeId = rectHp, Name = 'HP');
        HP.Is_Active__c = '有効';
        insert HP;
        Account_Delay_Apply__c AccQuery = new Account_Delay_Apply__c();
        AccQuery.Is_Active__c = '草案中';
        AccQuery.Hospital__c = HP.Id;
        AccQuery.ChangeReason__c = '地址错误';
        AccQuery.Is_upload_file__c = true;
        AccQuery.InstitutionalType__c = '非医疗机构';
        insert AccQuery;
        LexUtils.submitApproval(AccQuery.Id);
    }
}