Salesforce Certified Platform Developer II (Plat-Dev-301) PDII Question # 43 Topic 5 Discussion

Salesforce Certified Platform Developer II (Plat-Dev-301) PDII Question # 43 Topic 5 Discussion

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

How should a developer verify that a specific Account record is being tested in a test

class for a Visualforce controller?


A.

Insert the Account in the test class, instantiate the page reference in the test class, then use System.currentFageReference() .getFarameters() .put{) to set the Account ID.


B.

Insert the Account into Salesforce, instantiate the page reference in the test class, then use system. setFarentRecordId() .get() to set the Account ID.

{of Instantiate the page reference in the test class, insert the Account in

the test class, then use =seeAllData=trus to view the Account.


C.

Instantiate the page reference in the test class, insert the Account in

the test class, then use system.setFarentRecordrd() .get() to set the Account ID,


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.