Câu 110: Salesforce Certified Platform Developer I
A Developer wants to get access to the standard price book in the org while writing a test class that covers an OpportunityLineItem trigger. Which method allows access to the price book?
Nội dung câu hỏi
A Developer wants to get access to the standard price book in the org while writing a test class that covers an OpportunityLineItem trigger. Which method allows access to the price book?
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. Use Test.getStandardPricebookId() to get the standard price book ID. — đáp án hiện tại
- B. Use @IsTest(SeeAllData=true) and delete the existing standard price book.
- C. Use Test.loadData() and a Static Resource to load a standard price book.
- D. Use @TestVisible to allow the test method to see the standard price book.
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.
Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.