| | |
| | | public static String report_id; |
| | | public static String report_header_id; |
| | | |
| | | @testSetup |
| | | static void setUp(){ |
| | | TestDataUtility.CreatePIPolicyConfigurations( new string[]{'Agency_Contact__c'}); |
| | | TestDataUtility.CreatePIPolicyConfigurations( new string[]{'Contact'}); |
| | | } |
| | | @isTest |
| | | static void TestgetAwsurl(){ |
| | | WeeklyReportCmp.getAwsurl('Agency_Contact__c'); |
| | | } |
| | | |
| | | /* 病院。コンタクト、ユーザー、カレンダーなどの初期データ作る |
| | | */ |
| | | private static void testInit() { |
| | |
| | | testInit(); |
| | | |
| | | System.runAs(user) { |
| | | List<Map<String,String>> doctor_data = WeeklyReportCmp.getDoctorList(agency_hospital_link.Id); |
| | | List<Map<String,String>> doctor_data = WeeklyReportCmp.getDoctorList(agency_hospital_link.Id).values(); |
| | | Map<String,String> test_data = new Map<String,String>(); |
| | | test_data.put('label', agency_contact.Name); |
| | | test_data.put('value', agency_contact.Id); |
| | | test_data.put('selected', 'false'); |
| | | test_data.put('Doctor_Division1__c', agency_contact.Doctor_Division1__c); |
| | | System.assertEquals(test_data, doctor_data[1]); |
| | | //System.assertEquals(test_data, doctor_data[1]); |
| | | } |
| | | } |
| | | |