Skip to main content
7 events
when toggle format what by license comment
Apr 12, 2018 at 0:48 comment added cropredy @AustinEvans has your OP been edited to reflect the latest code that you are having issues with?
Apr 9, 2018 at 15:46 comment added Austin Evans I am still unable to fetch the data(Even after successful SOSL execution) after following your's and sfdcfox's ans.
Apr 6, 2018 at 19:38 comment added cropredy @AustinEvans - you have to supply list<ID>, not List<sobject>. See sfdcfox answer
Apr 6, 2018 at 16:17 comment added Austin Evans I am getting this error: Method does not exist or incorrect signature: void setFixedSearchResults(List<Contact>) from the type System.Test when I try: Contact [] fixedSearchResults= new Contact[1]; fixedSearchResults[0] = con; Test.setFixedSearchResults(fixedSearchResults);. can you help me fix this?
Apr 6, 2018 at 15:30 comment added cropredy it could be because your SOSL call is excluding the value of contId which is the same contact as the one you set in setFixedSearchResults - perhaps setFixedSearchResults should return a contact other than con.Id
Apr 6, 2018 at 14:21 comment added Austin Evans I am still not getting any data even after changing to above. Am I still missing anything? Or the test data from testSetup won't be considered as data for querying(from controller) while executing test class?
Apr 6, 2018 at 1:07 history answered cropredy CC BY-SA 3.0