高章伟
2023-03-03 d8dc84a3d56df839895f1c417a4d9cbee763d262
force-app/main/default/classes/NFM001TriggerTest.cls
@@ -92,7 +92,7 @@
        NFM001Controller.debug_msg = '';
        update company;
        departAssert = [Select Id, Name, Is_Active__c, DepartmentEffectiveDateTo__c from Account where Id = :depart.Id];
        System.assertEquals('草案中', departAssert.Is_Active__c);
        System.assertEquals('無効', departAssert.Is_Active__c);
        departAssert = [Select Id, Name, Is_Active__c, DepartmentEffectiveDateTo__c from Account where Id = :depart2.Id];
        System.assertEquals('有効', departAssert.Is_Active__c);
        System.Test.stopTest();
@@ -556,6 +556,8 @@
        Contact contact2 = new Contact();
        User user = new User();
        Agency_Hospital_Link__c agency_hospital_link = new Agency_Hospital_Link__c();
        User thisUser = [select Id from User where Id = :UserInfo.getUserId() ];
        System.runAs ( thisUser ){
        // 取引先
        account1.Name = 'test1医院';
        account1.RecordTypeId = '01210000000QemG';
@@ -610,6 +612,7 @@
        System.assertEquals('test1医院', agencylistCheck[0].Name);        
    }
    }
    // Resendtest
    static testMethod void resend_test() {
        // 病院 の recode type を取得