Documentation

api_v4_OAuthSysTokenTest extends TestCase
in package
implements HeadlessInterface, HookInterface, TransactionalInterface

Create, read, and destroy OAuth tokens.

Tags
group

headless

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
testFullApiAccess()  : void
Create, read, and destroy token - with full access to secrets.
testGetByScope()  : void
testLimitedApiAccess()  : void
Create, read, and destroy a token - with limited API access (cannot access token secrets).

Methods

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.

testFullApiAccess()

Create, read, and destroy token - with full access to secrets.

public testFullApiAccess() : void

testLimitedApiAccess()

Create, read, and destroy a token - with limited API access (cannot access token secrets).

public testLimitedApiAccess() : void

        
On this page

Search results