黄千龙
2023-02-02 389da49a4cf18d0971cc72a34c639b4b22ccd257
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();
    }
}