From 744f42c5496e656a1f9927740a3b37c0b97a6cba Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期五, 14 七月 2023 14:34:12 +0800
Subject: [PATCH] lexcommunityupload0714
---
force-app/main/default/classes/LexUtilityTest.cls | 31 ++++++++++++++-----------------
1 files changed, 14 insertions(+), 17 deletions(-)
diff --git a/force-app/main/default/classes/LexUtilityTest.cls b/force-app/main/default/classes/LexUtilityTest.cls
index 33a257f..940b7aa 100644
--- a/force-app/main/default/classes/LexUtilityTest.cls
+++ b/force-app/main/default/classes/LexUtilityTest.cls
@@ -1,20 +1,17 @@
@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();
+ @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();
}
- Test.stopTest();
- }
-}
+}
\ No newline at end of file
--
Gitblit v1.9.1