Auth0\Tests\AuthApiTest::testImpersonation PHP Method

testImpersonation() public method

public testImpersonation ( )
    public function testImpersonation()
    {
        $env = $this->getEnv();
        $api = new Authentication($env['DOMAIN'], $env['GLOBAL_CLIENT_ID'], $env['GLOBAL_CLIENT_SECRET']);
        $url = $api->impersonate('facebook|1434903327', "oauth2", 'auth0|56b110b8d9d327e705e1d2da', 'ycynBrUeQUnFqNacG3GAsaTyDhG4h0qT', ["response_type" => "code"]);
        $this->assertStringStartsWith("https://" . $env['DOMAIN'], $url);
    }