buli
2023-07-05 af7b716a60d889acea95560abba0e46eee008b8f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
@IsTest
private class LexUtilityTest {
  @IsTest
  static void testMethod1() {
    User currentUser = [SELECT Id FROM User WHERE Id = :UserInfo.getUserId()];
    NoteStay__c n = new NoteStay__c(Name = 'NoteStay', IsStay__c = true);
    insert n;
    LicenceReminderDate__c l = new LicenceReminderDate__c(
      Name = '180Days',
      ReminderDays__c = 180
    );
    insert l;
    Test.startTest();
    System.runAs(currentUser) {
      LexUtility.getIsNoteStay();
      LexUtility.getLicenceReminderDays();
    }
    Test.stopTest();
  }
}