\JFacebookUserTest
Test class for JFacebookUser.
Synopsis
class JFacebookUserTest
extends TestCase
{
- // members
- protected JRegistry $options;
- protected JHttp $client;
- protected JInput $input;
- protected JFacebookUser $object;
- protected JFacebookOauth $oauth;
- protected $sampleUrl;
- protected $sampleString;
- protected $errorString;
- // Inherited members from TestCase
- protected $expectedErrors;
- // methods
- protected void setUp()
- public array seedOauth()
- public void testGetUser()
- public void testGetUserFailure()
- public void testGetFriends()
- public void testGetFriendsFailure()
- public void testGetFriendRequests()
- public void testGetFriendRequestsFailure()
- public void testGetFriendLists()
- public void testGetFriendListsFailure()
- public void testGetFeed()
- public void testGetFeedFailure()
- public void testGetHome()
- public void testGetHomeFailure()
- public void testHasFriend()
- public void testHasFriendFailure()
- public void testGetMutualFriends()
- public void testGetMutualFriendsFailure()
- public void testGetPicture()
- public void testGetPictureFailure()
- public void testGetFamily()
- public void testGetFamilyFailure()
- public void testGetNotifications()
- public void testGetNotificationsFailure()
- public void testUpdateNotification()
- public void testUpdateNotificationFailure()
- public void testGetPermissions()
- public void testGetPermissionsFailure()
- public void testDeletePermission()
- public void testDeletePermissionFailure()
- public void testGetAlbums()
- public void testGetAlbumsFailure()
- public void testCreateAlbum()
- public void testCreateAlbumFailure()
- public void testGetCheckins()
- public void testGetCheckinsFailure()
- public void testCreateCheckin()
- public void testCreateCheckinFailure()
- public void testGetLikes()
- public void testGetLikesFailure()
- public void testLikesPage()
- public void testLikesPageFailure()
- public void testGetEvents()
- public void testGetEventsFailure()
- public void testCreateEvent()
- public void testCreateEventFailure()
- public void testEditEvent()
- public void testEditEventFailure()
- public void testDeleteEvent()
- public void testDeleteEventFailure()
- public void testGetGroups()
- public void testGetGroupsFailure()
- public void testGetLinks()
- public void testGetLinksFailure()
- public void testCreateLink()
- public void testCreateLinkFailure()
- public void testDeleteLink()
- public void testDeleteLinkFailure()
- public void testGetNotes()
- public void testGetNotesFailure()
- public void testCreateNote()
- public void testCreateNoteFailure()
- public void testGetPhotos()
- public void testGetPhotosFailure()
- public void testCreatePhoto()
- public void testCreatePhotoFailure()
- public void testGetPosts()
- public void testGetPostsFailure()
- public void testCreatePost()
- public void testCreatePostFailure()
- public void testDeletePost()
- public void testDeletePostFailure()
- public void testGetStatuses()
- public void testGetStatusesFailure()
- public void testCreateStatus()
- public void testCreateStatusFailure()
- public void testDeleteStatus()
- public void testDeleteStatusFailure()
- public void testGetVideos()
- public void testGetVideosFailure()
- public void testCreateVideo()
- public void testCreateVideoFailure()
- public void testGetTagged()
- public void testGetTaggedFailure()
- public void testGetActivities()
- public void testGetActivitiesFailure()
- public void testGetBooks()
- public void testGetBooksFailure()
- public void testGetInterests()
- public void testGetInterestsFailure()
- public void testGetMovies()
- public void testGetMoviesFailure()
- public void testGetTelevision()
- public void testGetTelevisionFailure()
- public void testGetMusic()
- public void testGetMusicFailure()
- public void testGetSubscribers()
- public void testGetSubscribersFailure()
- public void testGetSubscribedTo()
- public void testGetSubscribedToFailure()
- // 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 — JFacebookOauth
- $object — JFacebookUser
- $options — JRegistry
- $sampleString — string
- $sampleUrl — string
Methods
protected
- setUp() — Sets up the fixture, for example, opens a network connection.
public
- seedOauth() — Provides test data.
- testCreateAlbum() — Tests the createAlbum method.
- testCreateAlbumFailure() — Tests the createAlbum method - failure.
- testCreateCheckin() — Tests the createCheckin method.
- testCreateCheckinFailure() — Tests the createCheckin method - failure.
- testCreateEvent() — Tests the createEvent method.
- testCreateEventFailure() — Tests the createEvent method - failure.
- testCreateLink() — Tests the createLink method.
- testCreateLinkFailure() — Tests the createLink method - failure.
- testCreateNote() — Tests the createNote method.
- testCreateNoteFailure() — Tests the createNote method - failure.
- testCreatePhoto() — Tests the createPhoto method.
- testCreatePhotoFailure() — Tests the createPhoto method - failure.
- testCreatePost() — Tests the createPost method.
- testCreatePostFailure() — Tests the createPost method - failure.
- testCreateStatus() — Tests the createStatus method.
- testCreateStatusFailure() — Tests the createStatus method - failure.
- testCreateVideo() — Tests the createVideo method.
- testCreateVideoFailure() — Tests the createVideo method - failure.
- testDeleteEvent() — Tests the deleteEvent method.
- testDeleteEventFailure() — Tests the deleteEvent method - failure.
- testDeleteLink() — Tests the deleteLink method.
- testDeleteLinkFailure() — Tests the deleteLink method - failure.
- testDeletePermission() — Tests the deletePermission method.
- testDeletePermissionFailure() — Tests the deletePermission method - failure.
- testDeletePost() — Tests the deletePost method.
- testDeletePostFailure() — Tests the deletePost method - failure.
- testDeleteStatus() — Tests the deleteStatus method.
- testDeleteStatusFailure() — Tests the deleteStatus method - failure.
- testEditEvent() — Tests the editEvent method.
- testEditEventFailure() — Tests the editEvent method - failure.
- testGetActivities() — Tests the getActivities method.
- testGetActivitiesFailure() — Tests the getActivities method - failure.
- testGetAlbums() — Tests the getAlbums method.
- testGetAlbumsFailure() — Tests the getAlbums method - failure.
- testGetBooks() — Tests the getBooks method.
- testGetBooksFailure() — Tests the getBooks method - failure.
- testGetCheckins() — Tests the getCheckins method.
- testGetCheckinsFailure() — Tests the getCheckins method - failure.
- testGetEvents() — Tests the getEvents method.
- testGetEventsFailure() — Tests the getEvents method - failure.
- testGetFamily() — Tests the getFamily method.
- testGetFamilyFailure() — Tests the getFamily method - failure.
- testGetFeed() — Tests the getFeed method.
- testGetFeedFailure() — Tests the getFeed method - failure.
- testGetFriendLists() — Tests the getFriendLists method.
- testGetFriendListsFailure() — Tests the getFriendLists method - failure.
- testGetFriendRequests() — Tests the getFriendRequests method.
- testGetFriendRequestsFailure() — Tests the getFriendRequests method - failure.
- testGetFriends() — Tests the getFriends method.
- testGetFriendsFailure() — Tests the getFriends method - failure.
- testGetGroups() — Tests the getGroups method.
- testGetGroupsFailure() — Tests the getGroups method - failure.
- testGetHome() — Tests the getHome method.
- testGetHomeFailure() — Tests the getHome method - failure.
- testGetInterests() — Tests the getInterests method.
- testGetInterestsFailure() — Tests the getInterests method - failure.
- testGetLikes() — Tests the getLikes method.
- testGetLikesFailure() — Tests the getLikes method - failure.
- testGetLinks() — Tests the getLinks method.
- testGetLinksFailure() — Tests the getLinks method - failure.
- testGetMovies() — Tests the getMovies method.
- testGetMoviesFailure() — Tests the getMovies method - failure.
- testGetMusic() — Tests the getMusic method.
- testGetMusicFailure() — Tests the getMusic method - failure.
- testGetMutualFriends() — Tests the getMutualFriends method.
- testGetMutualFriendsFailure() — Tests the getMutualFriends method - failure.
- testGetNotes() — Tests the getNotes method.
- testGetNotesFailure() — Tests the getNotes method - failure.
- testGetNotifications() — Tests the getNotifications method.
- testGetNotificationsFailure() — Tests the getNotifications method - failure.
- testGetPermissions() — Tests the getPermissions method.
- testGetPermissionsFailure() — Tests the getPermissions method - failure.
- testGetPhotos() — Tests the getPhotos method.
- testGetPhotosFailure() — Tests the getPhotos method - failure.
- testGetPicture() — Tests the getPicture method.
- testGetPictureFailure() — Tests the getPicture method - failure.
- testGetPosts() — Tests the getPosts method.
- testGetPostsFailure() — Tests the getPosts method - failure.
- testGetStatuses() — Tests the getStatuses method.
- testGetStatusesFailure() — Tests the getStatuses method - failure.
- testGetSubscribedTo() — Tests the getSubscribedTo method.
- testGetSubscribedToFailure() — Tests the getSubscribedTo method - failure.
- testGetSubscribers() — Tests the getSubscribers method.
- testGetSubscribersFailure() — Tests the getSubscribers method - failure.
- testGetTagged() — Tests the getTagged method.
- testGetTaggedFailure() — Tests the getTagged method - failure.
- testGetTelevision() — Tests the getTelevision method.
- testGetTelevisionFailure() — Tests the getTelevision method - failure.
- testGetUser() — Tests the getUser method
- testGetUserFailure() — Tests the getUser method - failure
- testGetVideos() — Tests the getVideos method.
- testGetVideosFailure() — Tests the getVideos method - failure.
- testHasFriend() — Tests the hasFriend method.
- testHasFriendFailure() — Tests the hasFriend method - failure.
- testLikesPage() — Tests the likesPage method.
- testLikesPageFailure() — Tests the likesPage method - failure.
- testUpdateNotification() — Tests the updateNotification method.
- testUpdateNotificationFailure() — Tests the updateNotification method - failure.
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.