You are here

public function BasicCrudTest::testHttpOptions in Auth0 Single Sign On 8.2

Check that HTTP options have been set correctly.

Return value

void

File

vendor/auth0/auth0-php/tests/API/BasicCrudTest.php, line 128

Class

BasicCrudTest
Class BasicCrudTest.

Namespace

Auth0\Tests\API

Code

public function testHttpOptions() {
  $options = $this->api
    ->getApiClient()
    ->get()
    ->getGuzzleOptions();
  $this
    ->assertArrayHasKey('base_uri', $options);
  $this
    ->assertEquals('https://' . $this->domain . '/api/v2/', $options['base_uri']);
}