\JLinkedinGroupsTest
Test class for JLinkedinGroups.
Synopsis
class JLinkedinGroupsTest
extends TestCase
{
- // members
- protected JRegistry $options;
- protected JHttp $client;
- protected JInput $input;
- protected JLinkedinGroups $object;
- protected JLinkedinOAuth $oauth;
- protected $sampleString;
- protected $errorString;
- // Inherited members from TestCase
- protected $expectedErrors;
- // methods
- protected void setUp()
- protected void tearDown()
- public void testGetGroup()
- public void testGetGroupFailure()
- public array seedId()
- public void testGetMemberships()
- public void testGetMembershipsFailure()
- public void testGetSettings()
- public void testGetSettingsFailure()
- public void testChangeSettings()
- public void testChangeSettingsFailure()
- public void testJoinGroup()
- public void testJoinGroupFailure()
- public void testLeaveGroup()
- public void testLeaveGroupFailure()
- public void testGetDiscussions()
- public void testGetDiscussionsFailure()
- public void testGetUserPosts()
- public void testGetUserPostsFailure()
- public void testGetPost()
- public void testGetPostFailure()
- public void testGetPostComments()
- public void testGetPostCommentsFailure()
- public void testCreatePost()
- public void testCreatePostFailure()
- public void test_likeUnlike()
- public void testLikePost()
- public void testLikePostFailure()
- public void testUnlikePost()
- public void test_followUnfollow()
- public void testFollowPost()
- public void testFollowPostFailure()
- public void testUnfollowPost()
- public void testFalgPost()
- public void testFalgPostFailure()
- public void testDeletePost()
- public void testDeletePostFailure()
- public void testGetComment()
- public void testGetCommentFailure()
- public void testAddComment()
- public void testAddCommentFailure()
- public void testDeleteComment()
- public void testDeleteCommentFailure()
- public void testGetSuggested()
- public void testGetSuggestedFailure()
- public void testDeleteSuggestion()
- public void testDeleteSuggestionFailure()
- // Inherited methods from TestCase
- public static boolean errorCallback()
- public void assignMockCallbacks()
- public void assignMockReturns()
- public JException expectedErrorCallback()
- public JApplication getMockApplication()
- public JApplicationCms getMockCmsApp()
- public JConfig getMockConfig()
- public JDatabase getMockDatabase()
- public JEventDispatcher getMockDispatcher()
- public JDocument getMockDocument()
- public JLanguage getMockLanguage()
- public JSession getMockSession()
- public JApplicationWeb getMockWeb()
- public void setExpectedError()
- protected void restoreErrorHandlers()
- protected void restoreFactoryState()
- protected void saveErrorHandlers()
- protected void saveFactoryState()
- protected void setErrorHandlers()
- protected void setErrorCallback()
- protected void setUp()
- protected void tearDown()
Hierarchy
Extends
Members
protected
- $client — JHttp
- $errorString — string
- $expectedErrors — array
- $input — JInput
- $oauth — JLinkedinOAuth
- $object — JLinkedinGroups
- $options — JRegistry
- $sampleString — string
Methods
protected
- setUp() — Sets up the fixture, for example, opens a network connection.
- tearDown() — Tears down the fixture, for example, closes a network connection.
public
- seedId() — Provides test data for request format detection.
- testAddComment() — Tests the addComment method
- testAddCommentFailure() — Tests the addComment method - failure
- testChangeSettings() — Tests the changeSettings method
- testChangeSettingsFailure() — Tests the changeSettings method - failure
- testCreatePost() — Tests the createPost method
- testCreatePostFailure() — Tests the createPost method - failure
- testDeleteComment() — Tests the deleteComment method
- testDeleteCommentFailure() — Tests the deleteComment method - failure
- testDeletePost() — Tests the deletePost method
- testDeletePostFailure() — Tests the deletePost method - failure
- testDeleteSuggestion() — Tests the deleteSuggestion method
- testDeleteSuggestionFailure() — Tests the deleteSuggestion method - failure
- testFalgPost() — Tests the flagPost method
- testFalgPostFailure() — Tests the flagPost method - failure
- testFollowPost() — Tests the followPost method
- testFollowPostFailure() — Tests the followPost method - failure
- testGetComment() — Tests the getComment method
- testGetCommentFailure() — Tests the getComment method - failure
- testGetDiscussions() — Tests the getDiscussions method
- testGetDiscussionsFailure() — Tests the getDiscussions method - failure
- testGetGroup() — Tests the getGroup method
- testGetGroupFailure() — Tests the getGroup method - failure
- testGetMemberships() — Tests the getMemberships method
- testGetMembershipsFailure() — Tests the getMemberships method - failure
- testGetPost() — Tests the getPost method
- testGetPostComments() — Tests the getPostComments method
- testGetPostCommentsFailure() — Tests the getPostComments method - failure
- testGetPostFailure() — Tests the getPost method - failure
- testGetSettings() — Tests the getSettings method
- testGetSettingsFailure() — Tests the getSettings method - failure
- testGetSuggested() — Tests the getSuggested method
- testGetSuggestedFailure() — Tests the getSuggested method - failure
- testGetUserPosts() — Tests the getUserPosts method
- testGetUserPostsFailure() — Tests the getUserPosts method - failure
- testJoinGroup() — Tests the joinGroup method
- testJoinGroupFailure() — Tests the joinGroup method - failure
- testLeaveGroup() — Tests the leaveGroup method
- testLeaveGroupFailure() — Tests the leaveGroup method - failure
- testLikePost() — Tests the likePost method
- testLikePostFailure() — Tests the likePost method - failure
- testUnfollowPost() — Tests the unfollowPost method
- testUnlikePost() — Tests the unlikePost method
- test_followUnfollow() — Tests the _followUnfollow method
- test_likeUnlike() — Tests the _likeUnlike method
Inherited from TestCase
protected
- restoreErrorHandlers() — Sets the JError error handlers.
- restoreFactoryState() — Sets the Factory pointers
- saveErrorHandlers() — Saves the current state of the JError error handlers.
- saveFactoryState() — Saves the Factory pointers
- setErrorCallback() — Sets the JError error handlers to callback mode and points them at the test logging method.
- setErrorHandlers() — Sets the JError error handlers.
- setUp() — Overrides the parent setup method.
- tearDown() — Overrides the parent tearDown method.
public
- assignMockCallbacks() — Assigns mock callbacks to methods.
- assignMockReturns() — Assigns mock values to methods.
- errorCallback() — Receives the callback from JError and logs the required error information for the test.
- expectedErrorCallback() — Callback receives the error from JError and deals with it appropriately If a test expects a JError to be raised, it should call this setExpectedError first If you don't call this method first, the test will fail.
- getMockApplication() — Gets a mock application object.
- getMockCmsApp() — Gets a mock CMS application object.
- getMockConfig() — Gets a mock configuration object.
- getMockDatabase() — Gets a mock database object.
- getMockDispatcher() — Gets a mock dispatcher object.
- getMockDocument() — Gets a mock document object.
- getMockLanguage() — Gets a mock language object.
- getMockSession() — Gets a mock session object.
- getMockWeb() — Gets a mock web object.
- setExpectedError() — Tells the unit tests that a method or action you are about to attempt is expected to result in JError::raiseSomething being called.