mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-15 01:36:02 +05:30
Test for setRefreshTokenTTL
This commit is contained in:
parent
0b927ddfbb
commit
037fd6e4f7
@ -20,6 +20,14 @@ class Refresh_Token_test extends PHPUnit_Framework_TestCase
|
||||
return new OAuth2\AuthServer($this->client, $this->session, $this->scope);
|
||||
}
|
||||
|
||||
public function test_setRefreshTokenTTL()
|
||||
{
|
||||
$a = $this->returnDefault();
|
||||
$rt = new OAuth2\Grant\RefreshToken($a);
|
||||
$rt->setRefreshTokenTTL(30);
|
||||
$this->assertEquals(30, $rt->getRefreshTokenTTL());
|
||||
}
|
||||
|
||||
public function test_issueAccessToken_with_refresh_token()
|
||||
{
|
||||
$this->client->shouldReceive('getClient')->andReturn(array(
|
||||
|
Loading…
Reference in New Issue
Block a user