From e6068da47c1bef5517c9e5fdc8c726766867ad4e Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期五, 14 七月 2023 15:10:02 +0800
Subject: [PATCH] Merge branch 'master' into LEXUpgrade2023-Deloitte

---
 force-app/main/default/classes/LexConsumableAccountControllerTest.cls |   20 +++++++-------------
 1 files changed, 7 insertions(+), 13 deletions(-)

diff --git a/force-app/main/default/classes/LexConsumableAccountControllerTest.cls b/force-app/main/default/classes/LexConsumableAccountControllerTest.cls
index f433d01..b204bad 100644
--- a/force-app/main/default/classes/LexConsumableAccountControllerTest.cls
+++ b/force-app/main/default/classes/LexConsumableAccountControllerTest.cls
@@ -11,21 +11,23 @@
     static testMethod void testMethod1() {
         User thisUser = [SELECT Id FROM User WHERE Id = :UserInfo.getUserId()];
         System.runAs(thisUser) {
+            List<Account> accList = new List<Account>();
             // 鍙栧紩鍏�
             account1.Name = 'test1鍖婚櫌';
             account1.RecordTypeId = '01210000000QemG';
             //   account1.Is_Active__c = '鑽夋涓�';
-            insert account1;
+            accList.add(account1);
 
             account2.Name = 'test2鍖婚櫌';
             account2.RecordTypeId = '01210000000QemG';
             //   account2.Is_Active__c = '鏈夊姽';
-            insert account2;
+            accList.add(account2);
 
             account3.Name = 'test3鍖婚櫌';
             account3.RecordTypeId = '01210000000QemG';
             //   account3.Is_Active__c = '鐢宠涓�';
-            insert account3;
+            accList.add(account3);
+            insert accList;
 
             consumable.Name = 'test1缁忛攢鍟�';
             consumable.RecordTypeId = '01210000000Qem1';
@@ -37,11 +39,7 @@
             insert contact1;
 
             // 銉︺兗銈躲兗
-            Profile p = [
-                SELECT Id
-                FROM Profile
-                WHERE Name = '901_缁忛攢鍟嗙ぞ鍖烘櫘閫氭潈闄�'
-            ];
+            Profile p = [SELECT Id FROM Profile WHERE Name = '901_缁忛攢鍟嗙ぞ鍖烘櫘閫氭潈闄�'];
             user.ProfileId = p.Id;
             user.ContactId = contact1.Id;
             user.FirstName = '銉︺兗銈躲兗';
@@ -118,11 +116,7 @@
             insert contact1;
 
             // 銉︺兗銈躲兗
-            Profile p = [
-                SELECT Id
-                FROM Profile
-                WHERE Name = '901_缁忛攢鍟嗙ぞ鍖烘櫘閫氭潈闄�'
-            ];
+            Profile p = [SELECT Id FROM Profile WHERE Name = '901_缁忛攢鍟嗙ぞ鍖烘櫘閫氭潈闄�'];
             user.ProfileId = p.Id;
             user.ContactId = contact1.Id;
             user.FirstName = '銉︺兗銈躲兗';

--
Gitblit v1.9.1