From 2bb4a2bc34048f49815846db354b5c8994669a3c Mon Sep 17 00:00:00 2001 From: buli <137736985@qq.com> Date: 星期一, 09 五月 2022 17:48:43 +0800 Subject: [PATCH] SF PIPL Page Backup --- force-app/main/default/classes/SWOControllerTest.cls | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/force-app/main/default/classes/SWOControllerTest.cls b/force-app/main/default/classes/SWOControllerTest.cls index 53a5778..4268076 100644 --- a/force-app/main/default/classes/SWOControllerTest.cls +++ b/force-app/main/default/classes/SWOControllerTest.cls @@ -2,6 +2,11 @@ private class SWOControllerTest { + @TestSetup + static void setup(){ + TestDataUtility.CreatePIPolicyConfigurations(new string[]{'SWO__c','Contact'}); + } + public static User UserD(){ User user2 = new User(); user2.LastName = 'test2'; @@ -219,6 +224,7 @@ ); insert att; + Test.startTest(); PageReference page = new PageReference('apex/SWOPage?id='+swo.Id +'&type=Product'); System.Test.setCurrentPage(page); SWOController controller = new SWOController(new ApexPages.StandardController(swo)); @@ -285,7 +291,7 @@ controller.addDiagnosisInfo(); controller.openPageSave(); controller.repairReturn(); - + Test.stopTest(); } -- Gitblit v1.9.1