From 28f85e3bea50cb715d5c2282831dcb9d26263a91 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Wed, 27 Mar 2013 13:29:11 +0000 Subject: [PATCH] Fixed broken unit test. Fixes #28 --- tests/authorization/ClientCredentialsGrantTest.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/authorization/ClientCredentialsGrantTest.php b/tests/authorization/ClientCredentialsGrantTest.php index 18d07a8c..8ea1af20 100644 --- a/tests/authorization/ClientCredentialsGrantTest.php +++ b/tests/authorization/ClientCredentialsGrantTest.php @@ -300,7 +300,6 @@ class Client_Credentials_Grant_Test extends PHPUnit_Framework_TestCase $a = $this->returnDefault(); $a->addGrantType(new OAuth2\Grant\ClientCredentials($a)); - $a->addGrantType(new OAuth2\Grant\RefreshToken($a)); $a->requireScopeParam(false); $_POST['grant_type'] = 'client_credentials'; @@ -316,7 +315,6 @@ class Client_Credentials_Grant_Test extends PHPUnit_Framework_TestCase $this->assertArrayHasKey('token_type', $v); $this->assertArrayHasKey('expires', $v); $this->assertArrayHasKey('expires_in', $v); - $this->assertArrayHasKey('refresh_token', $v); $this->assertEquals($a->getExpiresIn(), $v['expires_in']); $this->assertEquals(time()+$a->getExpiresIn(), $v['expires']);