Colymba\RESTfulAPI\Tests\Authenticators\TokenAuthenticatorTest
TokenAuthenticator Test suite
- Author: Thierry Francois @colymba thierry@colymba.com
- Copyright: Copyright (c) 2013, Thierry Francois
- License: http://opensource.org/licenses/BSD-3-Clause BSD Simplified
Synopsis
class TokenAuthenticatorTest
extends RESTfulAPITester
{
- // members
- protected static array $required_extensions = ;
- // methods
- protected void getAuthenticator()
- public static void setUpBeforeClass()
- public void testLogin()
- public void testLogout()
- public void testGetToken()
- public void testResetToken()
- public void testGetOwner()
- public void testAuthenticate()
- // Inherited methods from RESTfulAPITester
- public static void generateDBEntries()
- public void setDefaultApiConfig()
- public void getOPTIONSHeaders()
- public void getRequestHeaders()
- public static void setUpBeforeClass()
- public void setUp()
Hierarchy
Members
protected
- $required_extensions
Methods
protected
public
- setUpBeforeClass()
- testAuthenticate() — Checks authentication works with a generated token
- testGetOwner() — Checks authenticator return owner
- testGetToken() — Checks that a string token is returned
- testLogin() — Checks that the Member gets logged in and a token is returned
- testLogout() — Checks that the Member is logged out
- testResetToken() — Checks that a new toekn is generated