Skip to content

Commit

Permalink
[Security/Http] Fix test relying on a private property
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Jul 22, 2015
1 parent 07b3fa9 commit 2d29ac1
Showing 1 changed file with 3 additions and 4 deletions.
Expand Up @@ -54,10 +54,9 @@ public function testHandleWithContextHavingNoToken()
$authenticationManager
->expects($this->once())
->method('authenticate')
->with(self::logicalAnd(
$this->isInstanceOf('Symfony\Component\Security\Core\Authentication\Token\AnonymousToken'),
$this->attributeEqualTo('key', 'TheKey')
))
->with($this->callback(function ($token) {
return 'TheKey' === $token->getKey();
}))
->will($this->returnValue($anonymousToken))
;

Expand Down

0 comments on commit 2d29ac1

Please sign in to comment.