高章伟
2022-03-22 4de876db8c9c9be17932eaff9f55604896f6419f
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();
    }
}