function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Test class for ConnectApi chatter post

i have writtern a class that to post a happy birthday message and picture on chatter.

In this post i mention the user. I'm using the connect apex chatter.

All works fine, but i have some problems with the test class. I get the following error.

Method Name TestHappyBirthdayRandom
Pass/Fail   Skip
Error Message   Methods defined as TestMethod do not support Web service callouts, test skipped


 Thanks in advantage for any advice.