api_v4_OAuthClientGrantTest
extends TestCase
in package
implements
HeadlessInterface, HookInterface, TransactionalInterface
Test the "grant" methods (authorizationCode, clientCredential, etc).
Tags
Table of Contents
Interfaces
- HeadlessInterface
- Interface HeadlessInterface
- HookInterface
- TransactionalInterface
- Interface HeadlessInterface
Methods
- setUp() : void
- setUpHeadless() : mixed
- The setupHeadless function runs at the start of each test case, right before the headless environment reboots.
- tearDown() : void
- testAuthorizationCode() : void
- Generate the URL to request an authorization code from a provider.
- createClient() : array<string|int, mixed>
Methods
setUp()
public
setUp() : void
setUpHeadless()
The setupHeadless function runs at the start of each test case, right before the headless environment reboots.
public
setUpHeadless() : mixed
It should perform any necessary steps required for putting the database in a consistent baseline -- such as loading schema and extensions.
The utility \Civi\Test::headless()
provides a number of helper functions
for managing this setup, and it includes optimizations to avoid redundant
setup work.
tearDown()
public
tearDown() : void
testAuthorizationCode()
Generate the URL to request an authorization code from a provider.
public
testAuthorizationCode() : void
createClient()
private
createClient() : array<string|int, mixed>