public static function ClientGrantsTest::setUpBeforeClass in Auth0 Single Sign On 8.2
Throws
\Auth0\SDK\Exception\ApiException
\Exception
File
- vendor/
auth0/ auth0-php/ tests/ API/ Management/ ClientGrantsTest.php, line 44
Class
- ClientGrantsTest
- Class ClientGrantsTest. Tests the Auth0\SDK\API\Management\ClientGrants class.
Namespace
Auth0\Tests\APICode
public static function setUpBeforeClass() {
self::getEnv();
$api = new Management(self::$env['API_TOKEN'], self::$env['DOMAIN']);
self::$api = $api
->clientGrants();
$create_data = [
'name' => 'TEST_PHP_SDK_CREATE_' . uniqid(),
'token_lifetime' => rand(10000, 20000),
'signing_alg' => 'RS256',
];
self::$apiIdentifier = 'TEST_PHP_SDK_CLIENT_GRANT_API_' . uniqid();
$api
->resourceServers()
->create(self::$apiIdentifier, $create_data);
usleep(AUTH0_PHP_TEST_INTEGRATION_SLEEP);
}