CertyRush
Đang tải...
C CertyRush
Câu hỏi free preview

Câu 24: Certified Platform Developer

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.

  1. A. Use @IsTest (SeeAllData=true) and delete the existing standard price book.
  2. B. Use Test.loadData() and a static resource to load a standard price book.
  3. C. Use Test.getStandardPricebookId() to get the standard price book ID. — đáp án hiện tại
  4. 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.

Câu hỏi liền kề