\RESTfulAPI_TokenAuthenticator_Test
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 RESTfulAPI_TokenAuthenticator_Test
extends RESTfulAPI_Tester
{
- // members
- protected array $requiredExtensions = ;
- // methods
- protected void getAuthenticator()
- public void setUpOnce()
- public void testLogin()
- public void testLogout()
- public void testGetToken()
- public void testResetToken()
- public void testGetOwner()
- public void testAuthenticate()
- // Inherited methods from RESTfulAPI_Tester
- public void generateDBEntries()
- public void setDefaultApiConfig()
- public void getOPTIONSHeaders()
- public void getRequestHeaders()
- public void setUpOnce()
- public void setUp()
Hierarchy
Extends
Members
protected
- $requiredExtensions
Methods
protected
public
- setUpOnce()
- 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