Obtain Credential Object based on UserId provided.
public getCredentialObject ( null $userId = null ) : |
||
$userId | null | |
Résultat |
/** * @test */ public function testGetRestCredentialObject() { $cred = $this->object->getCredentialObject('acct1'); $this->assertNotNull($cred); $this->assertAttributeEquals($this->config['acct1.ClientId'], 'clientId', $cred); $this->assertAttributeEquals($this->config['acct1.ClientSecret'], 'clientSecret', $cred); }