高章伟
2023-03-02 e3c02c03dd2de442bbced87236f60a13a1cd154e
force-app/main/default/classes/UpdateInquiryFormConfirmationBatchTest.cls
@@ -1,5 +1,8 @@
@isTest
private class UpdateInquiryFormConfirmationBatchTest {
  static testMethod void updaue() {
        UpdateInquiryFormConfirmationBatch.test();//先调用这个,然后继续补充测试类
   }
    static  testMethod void test_method_one() {
     //医院
        List<RecordType> rectHp = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and DeveloperName = 'HP'];
@@ -53,6 +56,7 @@
            System.assertEquals(null, inq[0].MinimumDate__c);
            System.assertEquals(1, inq.size());
            Id execBTId = Database.executeBatch(new UpdateInquiryFormConfirmationBatch(), 100);   
            Id execBTId1 = Database.executeBatch(new UpdateInquiryFormConfirmationBatch(inquiryform.id), 100);
            System.Test.stopTest();
        }