李彤
2022-03-31 985edf54edeaac1b70a0b00c5fa975ab3add78b4
1
2
3
4
5
6
7
8
9
10
11
12
13
@isTest
private class createEmptyDailyReportBatchTest {
    static testMethod void myUnitTest() {
        id UserID = UserInfo.getUserId();
        OlympusCalendar__c temp1 = new OlympusCalendar__c();
        temp1.Date__c = Date.today().toStartOfMonth().addMonths(1);
        temp1.ChangeToWorkday__c = true;
        insert temp1;
        System.Test.StartTest();
        Id execBTId = Database.executeBatch(new createEmptyDailyReportBatch(UserID), 10);
        System.Test.StopTest();
    }
}