File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change 24
24
header ('Location: ' .$ provider ->getAuthorizationURL ($ PARAMS ));
25
25
}
26
26
// step 3: receive the access token
27
- elseif (isset ($ _GET ['oauth_token ' ]) && isset ( $ _GET ['oauth_verifier ' ])){
27
+ elseif (isset ($ _GET ['oauth_token ' ], $ _GET ['oauth_verifier ' ])){
28
28
$ token = $ provider ->getAccessToken ($ _GET ['oauth_token ' ], $ _GET ['oauth_verifier ' ]);
29
29
30
30
// save the token [...]
Original file line number Diff line number Diff line change @@ -98,15 +98,13 @@ public function testParseTokenResponseNoTokenException():void{
98
98
* access token
99
99
*/
100
100
101
-
102
101
public function testGetAccessToken ():void {
103
102
$ this ->setMockResponse ($ this ->streamFactory ->createStream ($ this ::TEST_TOKEN ));
104
103
105
104
$ token = $ this ->provider ->getAccessToken ('code ' );
106
105
107
106
$ this ->assertSame ('sk ' , $ token ->accessToken );
108
107
$ this ::assertSame ('lfm-user ' , $ token ->extraParams ['session ' ]['name ' ]);
109
-
110
108
}
111
109
112
110
public function testGetAccessTokenRequestBodyParams ():void {
You can’t perform that action at this time.
0 commit comments