Skip to content

Commit

Permalink
Update the CryptoTokenServiceFactoryTest to match change from PR #1
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlundrigan committed Mar 28, 2015
1 parent 11a2380 commit 5fdd7c1
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ public function testExecuteDelegatorFactory()
$name = 'ZF\OAuth2\Service\OAuth2Server';
$callback = function () {
$mock = \Mockery::mock('OAuth2\Server');
$mock->shouldReceive('addStorage')->with(\Mockery::type('OAuth2\Storage\CryptoToken'), 'access_token');
$mock->shouldReceive('addResponseType')->with(\Mockery::type('OAuth2\ResponseType\CryptoToken'));
$mock->shouldReceive('addStorage')->with(\Mockery::type('OAuth2\Storage\JwtAccessToken'), 'access_token');
$mock->shouldReceive('addResponseType')->with(\Mockery::type('OAuth2\ResponseType\JwtAccessToken'));

return $mock;
};
Expand All @@ -39,8 +39,8 @@ public function testExecuteDelegatorFactoryConfiguredToInjectExistingStorage()
$name = 'ZF\OAuth2\Service\OAuth2Server';
$callback = function () {
$mock = \Mockery::mock('OAuth2\Server');
$mock->shouldReceive('addStorage')->with(\Mockery::type('OAuth2\Storage\CryptoToken'), 'access_token');
$mock->shouldReceive('addResponseType')->with(\Mockery::type('OAuth2\ResponseType\CryptoToken'));
$mock->shouldReceive('addStorage')->with(\Mockery::type('OAuth2\Storage\JwtAccessToken'), 'access_token');
$mock->shouldReceive('addResponseType')->with(\Mockery::type('OAuth2\ResponseType\JwtAccessToken'));

return $mock;
};
Expand Down

0 comments on commit 5fdd7c1

Please sign in to comment.