You are here

MockManagementApi.php in Auth0 Single Sign On 8.2

File

vendor/auth0/auth0-php/tests/API/Management/MockManagementApi.php
View source
<?php

namespace Auth0\Tests\API\Management;

use Auth0\Tests\MockApi;
use Auth0\SDK\API\Management;
use GuzzleHttp\Handler\MockHandler;
use GuzzleHttp\HandlerStack;
use GuzzleHttp\Middleware;

/**
 * Class MockManagementApi
 *
 * @package Auth0\Tests\API\Management
 */
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);
  }

}

Classes

Namesort descending Description
MockManagementApi Class MockManagementApi