Skip to content

Commit

Permalink
Improve test
Browse files Browse the repository at this point in the history
  • Loading branch information
vEnCa-X committed Mar 12, 2021
1 parent e1892f9 commit 8261aff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/tests/InstanceTest.phpt
Expand Up @@ -86,6 +86,10 @@ class InstanceTest extends Tester\TestCase
$this->socialLogin->twitter->getLoginUrl();
}, Abraham\TwitterOAuth\TwitterOAuthException::class, '{"errors":[{"code":32,"message":"Could not authenticate you."}]}');

Assert::exception(function () {
$this->socialLogin->twitter->getMe('oauthToken', 'oauthVerifier');
}, \Exception::class, 'Twitter token is old. Try again login');

Assert::same(false, $this->socialLogin->twitter->isThisServiceLastLogin());
}
}
Expand Down

0 comments on commit 8261aff

Please sign in to comment.