@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(); } }