Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
261 views

CollaborationGroupMember Not Inserted In Test Context?

I've a batch class which identifies the users which are not added to list of chatter groups (CollaborationGroups) and adds them to the groups by creating collaborationGroupMember records. In order to ...
1 vote
2 answers
2k views

How do I test that a ConnectApi.AnnouncementInput has been posted to a CollaborationGroup?

I have a trigger that posts a ConnectApi.AnnouncementInput, but how do I test that this has been posted, and to the correct chattergroup? I've created the test collaborationgroup in my test method, ...
1 vote
1 answer
2k views

Test Class - Existing Chatter Group - complication

Can someone tell me how I can avoid using (seealldata=TRUE) BUT still be able to access an existing Chatter Group in a test class? Example with use of the SeeAllData=TRUE clause; //Find Chatter ...