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

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

PDII Exam Topic 6 Question 59 Discussion:
Question #: 59
Topic #: 6

Consider the following code snippet:

PDII Question 59

A developer created the following test class to provide the proper code coverage for the snippet above:

PDII Question 59

However, when the test runs, no data is returned and the assertion fails.

Which edit should the developer make to ensure the test class runs successfully?


A.

Implement the without sharing keyword in the searchFeaturs Apex class.


B.

Implement the seeAllData=true attribute in the @1sTest annotation.


C.

Enclose the method call within Test. startbest i) and @Test_stopTast |).


D.

Implement the setFixedSearchResult= method in the test class.


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.