From d8dc84a3d56df839895f1c417a4d9cbee763d262 Mon Sep 17 00:00:00 2001
From: 高章伟 <gaozhangwei@prec-tech.com>
Date: 星期五, 03 三月 2023 14:50:59 +0800
Subject: [PATCH] gzw 测试环境代码更新
---
force-app/main/default/classes/OrdergoodsControllerTest.cls | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/force-app/main/default/classes/OrdergoodsControllerTest.cls b/force-app/main/default/classes/OrdergoodsControllerTest.cls
index bb822aa..c4e7f8f 100644
--- a/force-app/main/default/classes/OrdergoodsControllerTest.cls
+++ b/force-app/main/default/classes/OrdergoodsControllerTest.cls
@@ -7,6 +7,10 @@
if (rectCo.size() == 0) {
throw new ControllerUtil.myException('not found 鍔炰簨澶� recodetype');
}
+ Account account2 = new Account();
+ account2.Name = 'test1缁忛攢鍟�';
+ account2.RecordTypeId = '01210000000Qem1';
+ insert account2;
// 瀹㈡埛
Account account = new Account();
account.RecordTypeId = rectCo[0].Id;
@@ -14,6 +18,7 @@
account.Name = 'Katsu 銉嗐偣銉�';
account.Quolified_Approve_Status__c = 'Draft';
account.If_Need_Quolified__c = true;
+ account.ParentId = account2.Id;
insert account;
Product2 product = new Product2();
@@ -147,12 +152,17 @@
throw new ControllerUtil.myException('not found 鍔炰簨澶� recodetype');
}
// 瀹㈡埛
+ Account account2 = new Account();
+ account2.Name = 'test1缁忛攢鍟�';
+ account2.RecordTypeId = '01210000000Qem1';
+ insert account2;
Account account = new Account();
account.RecordTypeId = rectCo[0].Id;
account.Phone = '13888888888';
account.Name = 'Katsu 銉嗐偣銉�';
account.Quolified_Approve_Status__c = 'Draft';
account.If_Need_Quolified__c = true;
+ account.ParentId = account2.Id;
insert account;
//鏌ヤ笉鍑轰换浣曟牱鏈搧,SFDA_Status__c浼氳瑙﹀彂鍣ㄤ慨鏀逛负鍋滄
Product2 product = new Product2();
@@ -175,6 +185,8 @@
samOrder.DeliveryContact__c = 'thh';
samOrder.ReceivePart__c = '鍔炰簨澶�';
samOrder.Account__c = account.Id;
+ samOrder.province__c ='鍥涘窛鐪�';
+ samOrder.city__c ='鎴愰兘甯�';
insert samOrder;
//閫変腑淇濆瓨
@@ -190,7 +202,14 @@
Test.setCurrentPage(ref2);
OrdergoodsController controller2 = new OrdergoodsController(new ApexPages.StandardController(samOrder));
controller2.init();
+ controller2.getprovinceop();
+ controller2.getCityop();
+ controller2.provinceName='鍥涘窛鐪�';
+ controller2.cityName='鎴愰兘甯�';
+ controller2.productInfoList[0].check = true;
+ controller2.productInfoList[0].SOLDel.ItemQuantity__c = 5;
controller2.save();
controller2.confirmBtn();
+
}
}
\ No newline at end of file
--
Gitblit v1.9.1