李彤
2022-03-31 985edf54edeaac1b70a0b00c5fa975ab3add78b4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
@isTest
private class ConsumableAccountInfoControllerTest {
    
    @isTest 
    public static void test_method_one() {
        // Implement test code
        Account account1 = new Account();
        account1.Name = 'test1医院';
        account1.RecordTypeId = '01210000000QemG';
        //account1.Is_Active__c = '草案中';
        insert account1;
 
        PageReference page = new PageReference('/apex/ConsumableAccountInfo?AccId=' + account1.Id);
        System.Test.setCurrentPage(page);
        ConsumableAccountInfoController cai = new ConsumableAccountInfoController();
        cai.init();
    }
    
}