Pre-Summer Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: validbest

Exam PDII All Questions
Exam PDII All Questions

View all questions & answers for the PDII exam

Salesforce Developers PDII Question # 46 Topic 5 Discussion

PDII Exam Topic 5 Question 46 Discussion:
Question #: 46
Topic #: 5

A developer wrote a trigger on Opportunity that will update a custom Last Sold Date

field on the Opportunity's Account whenever an Opportunity is closed. In the test

class for the trigger, the assertion to validate the Last Sold Date field fails.

What might be causing the failed assertion?


A.

The test class has not defined an Account owner when inserting the test data.


B.

The test class has not implemented seealldata=true in the test method.


C.

The test class has not re-queried the Account record after updating the Opportunity.


D.

The test class is not using System. runs () to run tests as a Salesforce administrator.


Get Premium PDII Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.