You are here

class MockManagementApi in Auth0 Single Sign On 8.2

Class MockManagementApi

@package Auth0\Tests\API\Management

Hierarchy

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\Management
View 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

Namesort descending Modifiers Type Description Overrides
MockApi::$historyIndex protected property History index to use.
MockApi::$requestHistory protected property Guzzle request history container for mock API.
MockApi::call public function Return the endpoint being used.
MockApi::getHistory protected function Get a Guzzle history record from an array populated by Middleware::history().
MockApi::getHistoryBody public function Get the body from a mocked request.
MockApi::getHistoryBodyAsString public function Get the form body from a mocked request.
MockApi::getHistoryHeaders public function Get the headers from a mocked request.
MockApi::getHistoryMethod public function Get the HTTP method from a mocked request.
MockApi::getHistoryQuery public function Get the URL query from a mocked request.
MockApi::getHistoryUrl public function Get the URL from a mocked request.
MockApi::__construct public function MockApi constructor.
MockManagementApi::$client protected property Management API object. Overrides MockApi::$client
MockManagementApi::setClient public function Overrides MockApi::setClient