\RestfulServerTest
Synopsis
class RestfulServerTest
extends SapphireTest
{
- // members
- public static string $fixture_file = 'RestfulServerTest.yml';
- protected array $extraDataObjects = ;
- // methods
- public void testApiAccess()
- public void testApiAccessBoolean()
- public void testAuthenticatedGET()
- public void testAuthenticatedPUT()
- public void testGETRelationshipsXML()
- public void testGETManyManyRelationshipsXML()
- public void testPUTWithFormEncoded()
- public void testPOSTWithFormEncoded()
- public void testPostWithoutBodyReturnsNoContent()
- public void testPUTwithJSON()
- public void testPUTwithXML()
- public void testHTTPAcceptAndContentType()
- public void testNotFound()
- public void testMethodNotAllowed()
- public void testConflictOnExistingResourceWhenUsingPost()
- public void testUnsupportedMediaType()
- public void testXMLValueFormatting()
- public void testApiAccessFieldRestrictions()
- public void testApiAccessRelationRestrictionsInline()
- public void testApiAccessRelationRestrictionsOnEndpoint()
- public void testApiAccessWithPUT()
- public void testJSONDataFormatter()
- public void testApiAccessWithPOST()
- public void testCanViewRespectedInList()
Hierarchy
Extends
- SapphireTest
Tasks
Line | Task |
---|---|
9+ | Test Relation getters |
9+ | Test filter and limit through GET params |
9+ | Test DELETE verb |
61 | create additional mock object with authenticated VIEW permissions |
102 | should be set up by fixtures, doesn't work for some reason... |
Members
protected
- $extraDataObjects
public
- $fixture_file
Methods
public
- testApiAccess()
- testApiAccessBoolean()
- testApiAccessFieldRestrictions()
- testApiAccessRelationRestrictionsInline()
- testApiAccessRelationRestrictionsOnEndpoint()
- testApiAccessWithPOST()
- testApiAccessWithPUT()
- testAuthenticatedGET()
- testAuthenticatedPUT()
- testCanViewRespectedInList()
- testConflictOnExistingResourceWhenUsingPost()
- testGETManyManyRelationshipsXML()
- testGETRelationshipsXML()
- testHTTPAcceptAndContentType()
- testJSONDataFormatter()
- testMethodNotAllowed()
- testNotFound()
- testPOSTWithFormEncoded()
- testPUTWithFormEncoded()
- testPUTwithJSON()
- testPUTwithXML()
- testPostWithoutBodyReturnsNoContent()
- testUnsupportedMediaType()
- testXMLValueFormatting()