From 2f4492ee18f90274582fcc2bb06f5e9bf64136e8 Mon Sep 17 00:00:00 2001 From: buli <137736985@qq.com> Date: 星期五, 13 五月 2022 17:32:14 +0800 Subject: [PATCH] ProdBackup0513 --- force-app/main/default/classes/NewAndEditContactControllerTest.cls | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/force-app/main/default/classes/NewAndEditContactControllerTest.cls b/force-app/main/default/classes/NewAndEditContactControllerTest.cls index c7789ca..162c19a 100644 --- a/force-app/main/default/classes/NewAndEditContactControllerTest.cls +++ b/force-app/main/default/classes/NewAndEditContactControllerTest.cls @@ -9,7 +9,7 @@ // Contact con = TestDataUtility.CreateContacts(1)[0]; Account acc = TestDataUtility.CreateAccounts(1)[0]; Contact con = new Contact(); - String url = ApexPages.currentPage().getParameters().put('retURL','/'+acc.Id); + String url = ApexPages.currentPage().getParameters().put('con4_lkid',acc.Id); Test.startTest(); ApexPages.StandardController sc = new ApexPages.StandardController(con); @@ -26,9 +26,9 @@ Test.setMock(HttpCalloutMock.class, new TestDataUtility.CreateMetaDataUtilityHttpMock()); // Contact contactTest = TestDataUtility.CreateContacts(1)[0]; - // Account acc = TestDataUtility.CreateAccounts(1)[0]; + //Account acc = TestDataUtility.CreateAccounts(1)[0]; //Account acc1 = [SELECT Id,Name FROM Account WHERE RecordType.DeveloperName = 'Office' OR RecordType.DeveloperName = 'AgencyContact' OR RecordType.DeveloperName = 'Agency' Limit 1]; - String accrecordTypeId = Schema.SObjectType.Account.getRecordTypeInfosByDeveloperName().get('Agency').getRecordTypeId(); + String accrecordTypeId = Schema.SObjectType.Account.getRecordTypeInfosByDeveloperName().get('Dealer').getRecordTypeId(); Account acc1 = new Account(Name = 'testacc1',RecordTypeId = accrecordTypeId,ProductSegment__c='BS'); insert acc1; Contact contact = new Contact(); -- Gitblit v1.9.1