Ntb\RestAPI\BaseRestControllerTest
Tests for the base rest controller.
- Author: Christian Blank <c.blank@notthatbad.net>
Synopsis
class BaseRestControllerTest
extends RestTest
{
- // Inherited members from RestTest
- protected string $namespace;
- protected string $sessionRoute;
- // methods
- public void setUp()
- public void testControllerGET()
- public void testControllerDELETE()
- public void testControllerPOST()
- public void testControllerPUT()
- public void testControllerHEAD()
- public void testControllerPATCH()
- // Inherited methods from RestTest
- public void setUp()
- protected array makeApiRequest()
- protected array createSession()
Hierarchy
Extends
Tasks
Line | Task |
---|---|
13+ | : test different serializers, pagination and error handling |
Members
protected
- $namespace
—
string
The namespace of your api. - $sessionRoute
—
string
The route to the session without the namespace.
Methods
public
- setUp()
- testControllerDELETE()
- testControllerGET()
- testControllerHEAD()
- testControllerPATCH()
- testControllerPOST()
- testControllerPUT()
Inherited from Ntb\RestAPI\RestTest
protected
- createSession() — Creates a session for the api.
- makeApiRequest() — Perform an api request with the given options