liuyn
2024-03-11 a87f1c3df03078814ee97ad0c8ac200a232419e9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
@isTest
private class QISSCTriggerTest {
    static testMethod void testMethod1() {
         QIS_Report__c qr = new QIS_Report__c(
            RC__c = UserInfo.getUserId(),
            Photo_1__c = '<img src="http://www.google.co.jp/img1" />',
            Photo_2__c = '<img src="http://www.google.co.jp/img2" />',
            Photo_3__c = '<img src="http://www.google.co.jp/img3" />',
            Photo_4__c = '<img src="http://www.google.co.jp/img4" />',
            Damage_For_Doc_Or_Pat__c = '有',
            Relation_With_The_Problem__c = '有可能',
            Report_For_Goz__c = '不知道',
            Name = 'QIS012345',
            QIS_Submit_day__c = Date.Today()
        );
        insert qr;
        QIS_SC_Report__c qrs = new QIS_SC_Report__c(
            // CreatedById = UserInfo.getUserId(),
            Name = '*',
            QIS_Report__c= qr.Id
        );
        insert qrs;
        qrs.Name = '**';
        update qrs;
    }
}