涂煌豪
2022-04-18 967f20caa315ba70a31abf8536a7e634372962bd
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();
    }
}