Timeline for Fetching Test data while executing SOSL query from Test class
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 15, 2020 at 8:11 | history | edited | CommunityBot |
Commonmark migration
|
|
Apr 5, 2018 at 20:41 | comment | added | Austin Evans | If you can see my above updated code, I made changes as per the doc you provided. Still doesn't really help my test class. | |
Apr 5, 2018 at 18:31 | comment | added | Austin Evans |
Nope, including this doesn't made any difference. Still the variable: relatedConsList is empty.
|
|
Apr 5, 2018 at 18:26 | comment | added | Adrian Larson♦ |
No Test.setFixedSearchResults . You don't call it in your unit test. That's what you need to fix.
|
|
Apr 5, 2018 at 18:24 | comment | added | Austin Evans |
Method searchRelatedContacts from my helper class. I am calling this in the Constructor of my Parent controller.
|
|
Apr 5, 2018 at 18:22 | comment | added | Adrian Larson♦ | The code you included does not call this method. | |
Apr 5, 2018 at 18:21 | comment | added | Austin Evans |
I came across this documention already. And also I can see the Test execution to run over my controller's SOSL query, but, still the variable: relatedConsList is getting empty. Can you please take a look at my code?
|
|
Apr 5, 2018 at 18:17 | history | answered | Adrian Larson♦ | CC BY-SA 3.0 |