class MockManagementApi in Auth0 Single Sign On 8.2
Class MockManagementApi
@package Auth0\Tests\API\Management
Hierarchy
- class \Auth0\Tests\MockApi
- class \Auth0\Tests\API\Management\MockManagementApi
Expanded class hierarchy of MockManagementApi
2 files declare their use of MockManagementApi
- InformationHeadersExtendTest.php in vendor/
auth0/ auth0-php/ tests/ API/ Helpers/ InformationHeadersExtendTest.php - RequestBuilderTest.php in vendor/
auth0/ auth0-php/ tests/ API/ Helpers/ RequestBuilderTest.php
File
- vendor/
auth0/ auth0-php/ tests/ API/ Management/ MockManagementApi.php, line 17
Namespace
Auth0\Tests\API\ManagementView source
class MockManagementApi extends MockApi {
/**
* Management API object.
*
* @var Management
*/
protected $client;
/**
* @param array $guzzleOptions
* @param array $config
*/
public function setClient(array $guzzleOptions, array $config = []) {
$returnType = isset($config['return_type']) ? $config['return_type'] : null;
$this->client = new Management('__api_token__', 'api.test.local', $guzzleOptions, $returnType);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MockApi:: |
protected | property | History index to use. | |
MockApi:: |
protected | property | Guzzle request history container for mock API. | |
MockApi:: |
public | function | Return the endpoint being used. | |
MockApi:: |
protected | function | Get a Guzzle history record from an array populated by Middleware::history(). | |
MockApi:: |
public | function | Get the body from a mocked request. | |
MockApi:: |
public | function | Get the form body from a mocked request. | |
MockApi:: |
public | function | Get the headers from a mocked request. | |
MockApi:: |
public | function | Get the HTTP method from a mocked request. | |
MockApi:: |
public | function | Get the URL query from a mocked request. | |
MockApi:: |
public | function | Get the URL from a mocked request. | |
MockApi:: |
public | function | MockApi constructor. | |
MockManagementApi:: |
protected | property |
Management API object. Overrides MockApi:: |
|
MockManagementApi:: |
public | function |
Overrides MockApi:: |