mirror of
				https://github.com/elyby/oauth2-server.git
				synced 2025-05-31 14:12:07 +05:30 
			
		
		
		
	expires isn't part of the spec
				
					
				
			This commit is contained in:
		@@ -402,7 +402,6 @@ class PasswordGrantTest extends \PHPUnit_Framework_TestCase
 | 
			
		||||
        $this->assertTrue(array_key_exists('access_token', $response));
 | 
			
		||||
        $this->assertTrue(array_key_exists('token_type', $response));
 | 
			
		||||
        $this->assertTrue(array_key_exists('expires_in', $response));
 | 
			
		||||
        $this->assertTrue(array_key_exists('expires', $response));
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function testCompleteFlowRefreshToken()
 | 
			
		||||
@@ -470,6 +469,5 @@ class PasswordGrantTest extends \PHPUnit_Framework_TestCase
 | 
			
		||||
        // $this->assertTrue(array_key_exists('refresh_token', $response));
 | 
			
		||||
        $this->assertTrue(array_key_exists('token_type', $response));
 | 
			
		||||
        $this->assertTrue(array_key_exists('expires_in', $response));
 | 
			
		||||
        $this->assertTrue(array_key_exists('expires', $response));
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -11,7 +11,7 @@ use League\OAuth2\Server\Entity\RefreshTokenEntity;
 | 
			
		||||
use League\OAuth2\Server\AuthorizationServer;
 | 
			
		||||
use Mockery as M;
 | 
			
		||||
 | 
			
		||||
class RefreshTokenGreantTest extends \PHPUnit_Framework_TestCase
 | 
			
		||||
class RefreshTokenGrantTest extends \PHPUnit_Framework_TestCase
 | 
			
		||||
{
 | 
			
		||||
    public function testSetRefreshTokenTTL()
 | 
			
		||||
    {
 | 
			
		||||
@@ -212,7 +212,6 @@ class RefreshTokenGreantTest extends \PHPUnit_Framework_TestCase
 | 
			
		||||
        $this->assertTrue(array_key_exists('refresh_token', $response));
 | 
			
		||||
        $this->assertTrue(array_key_exists('token_type', $response));
 | 
			
		||||
        $this->assertTrue(array_key_exists('expires_in', $response));
 | 
			
		||||
        $this->assertTrue(array_key_exists('expires', $response));
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function testCompleteFlowRequestScopes()
 | 
			
		||||
@@ -284,7 +283,6 @@ class RefreshTokenGreantTest extends \PHPUnit_Framework_TestCase
 | 
			
		||||
        $this->assertTrue(isset($response['refresh_token']));
 | 
			
		||||
        $this->assertTrue(isset($response['token_type']));
 | 
			
		||||
        $this->assertTrue(isset($response['expires_in']));
 | 
			
		||||
        $this->assertTrue(isset($response['expires']));
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function testCompleteFlowRequestScopesInvalid()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user