You are here

public function ResourceServersTest::testGet in Auth0 Single Sign On 8.2

Test getting a Resource Server.

Return value

void

Throws

CoreException Thrown if the identifier parameter or data field is empty or is not a string.

\Exception Thrown by the HTTP client when there is a problem with the API call.

File

vendor/auth0/auth0-php/tests/API/Management/ResourceServersTest.php, line 111

Class

ResourceServersTest
Class ResourceServersTest.

Namespace

Auth0\Tests\API\Management

Code

public function testGet() {
  $response = self::$api
    ->get(self::$serverIdentifier);
  usleep(AUTH0_PHP_TEST_INTEGRATION_SLEEP);
  $this
    ->assertNotEmpty($response);
  $this
    ->assertEquals(self::$serverIdentifier, $response['identifier']);
}