| | |
| | | */ |
| | | @TestSetup |
| | | static void makeData(){ |
| | | TestDataUtility.CreatePIPolicyConfiguration('Contact'); |
| | | } |
| | | private static void init() { |
| | | loginId = UserInfo.getUserId(); |
| | | |
| | | Profile p = [select id from Profile where id =:System.Label.ProfileId_SystemAdmin]; |
| | | |
| | | u3 = new User(Test_staff__c = true); |
| | |
| | | u2.Job_Category__c = '销售推广'; |
| | | u2.Province__c = '東京'; |
| | | insert u2; |
| | | } |
| | | private static void init() { |
| | | TestDataUtility.CreatePIPolicyConfigurations(new string[]{'Agency_Contact__c','Contact'}); |
| | | loginId = UserInfo.getUserId(); |
| | | |
| | | |
| | | |
| | | RecordType rtHP = [select id from RecordType where IsActive = true and SobjectType = 'Account' and DeveloperName =:'HP']; |
| | | RecordType rtDepClass = [select id from RecordType where IsActive = true and SobjectType = 'Account' and DeveloperName =:'Department_Class_ENT']; // 耳鼻喉科 |
| | |
| | | svc.serContact(); |
| | | } |
| | | } |
| | | |
| | | static testMethod void test01_04() { |
| | | Test.startTest(); |
| | | Contact con = TestDataUtility.CreateContacts(1)[0]; |
| | | SearchVisitorController.searchContactByAccountId(con.AccountId); |
| | | Test.stopTest(); |
| | | } |
| | | } |