Ntb\RestAPI\SessionEndpointTest
Class SessionControllerTest
- Author: Christian Blank <c.blank@notthatbad.net>
Synopsis
class SessionEndpointTest
extends RestTest
{
- // members
- protected static array $fixture_file = ;
- // Inherited members from RestTest
- protected string $namespace;
- protected string $sessionRoute;
- // methods
- public void setUp()
- public void testTryGetRestrictedResourceWithoutSession()
- public void testGetRestrictedResource()
- public void testDeleteSession()
- public void testTryDeleteSessionWithoutID()
- public void testTryDeleteSessionWithWrongId()
- public void testCreateSession()
- public void testTryCreateSessionWithWrongPassword()
- public void testTryCreateSessionWithWrongEmail()
- // Inherited methods from RestTest
- public void setUp()
- protected array makeApiRequest()
- protected array createSession()
Hierarchy
Extends
Members
protected
- $fixture_file
- $namespace
—
string
The namespace of your api. - $sessionRoute
—
string
The route to the session without the namespace.
Methods
public
- setUp()
- testCreateSession()
- testDeleteSession()
- testGetRestrictedResource()
- testTryCreateSessionWithWrongEmail()
- testTryCreateSessionWithWrongPassword()
- testTryDeleteSessionWithWrongId()
- testTryDeleteSessionWithoutID()
- testTryGetRestrictedResourceWithoutSession()
Inherited from Ntb\RestAPI\RestTest
protected
- createSession() — Creates a session for the api.
- makeApiRequest() — Perform an api request with the given options