public function ConnectionsTestMocked::testConnectionsGet in Auth0 Single Sign On 8.2
Test a basic get request.
Return value
void
Throws
\Exception Unsuccessful HTTP call.
File
- vendor/
auth0/ auth0-php/ tests/ API/ Management/ ConnectionsMockedTest.php, line 199
Class
- ConnectionsTestMocked
- Class ConnectionsTestMocked.
Namespace
Auth0\Tests\API\ManagementCode
public function testConnectionsGet() {
$api = new MockManagementApi([
new Response(200, self::$headers),
]);
$id = 'con_testConnection10';
$api
->call()
->connections()
->get($id);
$this
->assertEquals('GET', $api
->getHistoryMethod());
$this
->assertEquals('https://api.test.local/api/v2/connections/' . $id, $api
->getHistoryUrl());
$this
->assertEmpty($api
->getHistoryQuery());
}