\KapostServiceTest
Synopsis
class KapostServiceTest
extends FunctionalTest
{
- // constants
- const USER_AGENT = 'Kapost XMLRPC::Client';
- // members
- private static boolean $configured = false;
- private static $_fixtureFactory;
- private static $_fixtures;
- private array $exposed_methods = ;
- // methods
- public void setUp()
- public void testListMethods()
- public void testGetPostUnknownID()
- public void testNewPost()
- public void testGetPostKnownID()
- public void testEditPost()
- public void testNewMediaObject()
- public void testRenameNewMediaObject()
- public void testOverwriteDuplicateMediaObject()
- public void testIgnoreDuplicateMediaObject()
- public void testPreviewObject()
- public void testPreviewExpiredToken()
- public void testThreadTagStripping()
- protected SS_HTTPResponse call_service()
- protected final Response parseRPCResponse()
Hierarchy
Extends
- FunctionalTest
Constants
Name | Value |
---|---|
USER_AGENT | 'Kapost XMLRPC::Client' |
Members
private
- $_fixtureFactory
- $_fixtures
- $configured
- $exposed_methods
Methods
protected
- call_service() — Calls the api and returns the response
- parseRPCResponse() — Parses the response from the api
public
- setUp() — Initializes the database, we do it here so we don't loose our information we need a sequential testing environment
- testEditPost() — Tests to ensure the edit post request works correctly
- testGetPostKnownID() — Tests get post returns a good response since we're written the post
- testGetPostUnknownID() — Tests to see if an unknown id response is correct
- testIgnoreDuplicateMediaObject() — Tests handling of ignoring duplicate media objects
- testListMethods() — Ensures the list methods response matches the expected response which is that it contains atleast the methods defined in the core
- testNewMediaObject() — Tests handling of new media objects
- testNewPost() — Test Creation of a new post
- testOverwriteDuplicateMediaObject() — Tests handling of overwriting duplicate media objects
- testPreviewExpiredToken() — Tests to see if the expired token returns a 404 as expected
- testPreviewObject() — Tests to see if the preview functionality is working correctly
- testRenameNewMediaObject() — Tests handling of new media objects
- testThreadTagStripping() — Tests to see if the kapost thread tag stripping is enabled