@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); } }