From 037fd6e4f74497778a8c8c9a683590cd5f891696 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Wed, 8 May 2013 10:44:03 -0700 Subject: [PATCH] Test for setRefreshTokenTTL --- tests/authorization/RefreshTokenTest.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/authorization/RefreshTokenTest.php b/tests/authorization/RefreshTokenTest.php index 9d9c4ea0..ea3c688d 100644 --- a/tests/authorization/RefreshTokenTest.php +++ b/tests/authorization/RefreshTokenTest.php @@ -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(