Skip to content

Commit

Permalink
update error in refresh_token test
Browse files Browse the repository at this point in the history
  • Loading branch information
aaemnnosttv committed Nov 14, 2019
1 parent bd0526d commit 0414e74
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ public function test_refresh_token() {

$client->refresh_token();

// Google client must be initialized first
$this->assertEquals( 'refresh_token_not_exist', get_user_option( OAuth_Client::OPTION_ERROR_CODE, $user_id ) );
$this->assertEquals( 'access_token_not_received', get_user_option( OAuth_Client::OPTION_ERROR_CODE, $user_id ) );

$client->get_client()->setHttpClient( new FakeHttpClient() );
$client->refresh_token();
Expand Down

0 comments on commit 0414e74

Please sign in to comment.