You need to sign in to do that
Don't have an account?
Karthikeyan Chandran
Test Class for Chatter Feed.
Hi,
I have developed a Scheuled Apex Class for Chatter Feed Post.
Here, The sample code
Can anyone help me out to increase the test coverage on this feed item.
Thanks & Regards,
Karthikeyan Chandran.
I have developed a Scheuled Apex Class for Chatter Feed Post.
Here, The sample code
for(integer i=0;i<cbday.size();i++){ feeditem FI1=new feeditem(); FI1.parentid=PId[0].id; FI1.createdbyid=u.id; FI1.Body = 'Happy BirthDay - '+cbday[i].Name+'.'; FIbday.add(FI1); } insert FIbday;
Can anyone help me out to increase the test coverage on this feed item.
Thanks & Regards,
Karthikeyan Chandran.
Then you can query UserFeed for the newly create FeedItem Id, tried to explain the same in example code below.