Skip to content
This repository was archived by the owner on Jan 13, 2022. It is now read-only.

Commit 6a8580e

Browse files
Correctly return an AccessToken instance
The method (in OAuth2Client) is expected to return an AccessToken instance
1 parent 6eb970d commit 6a8580e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/Fixtures/FooRedirectLoginOAuth2Client.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@
2323
*/
2424
namespace Facebook\Tests\Fixtures;
2525

26+
use Facebook\Authentication\AccessToken;
2627
use Facebook\Authentication\OAuth2Client;
2728

2829
class FooRedirectLoginOAuth2Client extends OAuth2Client
2930
{
3031
public function getAccessTokenFromCode($code, $redirectUri = '', $machineId = null)
3132
{
32-
return 'foo_token_from_code|' . $code . '|' . $redirectUri;
33+
return new AccessToken('foo_token_from_code|' . $code . '|' . $redirectUri);
3334
}
3435
}

0 commit comments

Comments
 (0)