Removed dead code

This commit is contained in:
Alex Bilbie 2014-06-20 14:31:17 +01:00
parent 9af1d2a201
commit 92639fbbd6

View File

@ -221,19 +221,9 @@ class ClientCredentialsGrantTest extends \PHPUnit_Framework_TestCase
$sessionStorage = M::mock('League\OAuth2\Server\Storage\SessionInterface'); $sessionStorage = M::mock('League\OAuth2\Server\Storage\SessionInterface');
$sessionStorage->shouldReceive('setServer'); $sessionStorage->shouldReceive('setServer');
// $sessionStorage->shouldReceive('create')->andreturn(123);
// $sessionStorage->shouldReceive('getScopes')->shouldReceive('getScopes')->andReturn([
// (new ScopeEntity($server))->setId('foo')
// ]);
// $sessionStorage->shouldReceive('associateScope');
$accessTokenStorage = M::mock('League\OAuth2\Server\Storage\AccessTokenInterface'); $accessTokenStorage = M::mock('League\OAuth2\Server\Storage\AccessTokenInterface');
$accessTokenStorage->shouldReceive('setServer'); $accessTokenStorage->shouldReceive('setServer');
// $accessTokenStorage->shouldReceive('create');
// $accessTokenStorage->shouldReceive('getScopes')->andReturn([
// (new ScopeEntity($server))->setId('foo')
// ]);
// $accessTokenStorage->shouldReceive('associateScope');
$scopeStorage = M::mock('League\OAuth2\Server\Storage\ScopeInterface'); $scopeStorage = M::mock('League\OAuth2\Server\Storage\ScopeInterface');
$scopeStorage->shouldReceive('setServer'); $scopeStorage->shouldReceive('setServer');