Skip to content

Commit

Permalink
Remove mock id_token. Need better way to check coverage of createReso…
Browse files Browse the repository at this point in the history
…urceOwner (TODO).
  • Loading branch information
terrencegf committed Jan 7, 2021
1 parent 4e76943 commit 7420110
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions test/src/Provider/ORCIDTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,16 +218,7 @@ public function testUserData()
->andReturn($postResponse, $userResponse);
$this->provider->setHttpClient($client);







$token = $this->provider->getAccessToken(
'authorization_code',
['code' => 'mock_authorization_code', 'id_token' => 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL29yY2lkLm9yZyIsImlhdCI6MTYxMDA1MjU1MSwiZXhwIjoxNjQxNTg4NTUxLCJhdWQiOiJBUFAtMTIzNDU2Nzg5Iiwic3ViIjoiMDAwMC0wMDAxLTIzNDUtNjc4OSIsImdpdmVuX25hbWUiOiJKb2hubnkiLCJmYW1pbHlfbmFtZSI6IlJvY2tldCIsImFtciI6InB3ZCJ9.OV30pUx9s-VfjVSB6s_PTG4nCYXU8DiBnWccybUzXSQ']
);
$token = $this->provider->getAccessToken('authorization_code', ['code' => 'mock_authorization_code']);
$user = $this->provider->getResourceOwner($token);

$this->assertEquals($uri, $user->getId());
Expand Down

0 comments on commit 7420110

Please sign in to comment.