I have modified test case for SocialMediaPoster.php file.