public function ClientsTest::testThatBasicGetAllRequestIsFormedProperly in Auth0 Single Sign On 8.2
Throws
\Exception
File
- vendor/
auth0/ auth0-php/ tests/ API/ Management/ ClientsTest.php, line 54
Class
- ClientsTest
- Class ClientsTest
Namespace
Auth0\Tests\API\ManagementCode
public function testThatBasicGetAllRequestIsFormedProperly() {
$api = new MockManagementApi([
new Response(200, self::$headers),
]);
$api
->call()
->clients()
->getAll();
$this
->assertEquals('GET', $api
->getHistoryMethod());
$this
->assertEquals('https://api.test.local/api/v2/clients', $api
->getHistoryUrl());
$headers = $api
->getHistoryHeaders();
$this
->assertEquals('Bearer __api_token__', $headers['Authorization'][0]);
$this
->assertEquals(self::$expectedTelemetry, $headers['Auth0-Client'][0]);
}