Browse files

Update tests

  • Loading branch information...
1 parent 85d69d6 commit da0462e96f68faf730843dd37db2dae650785f35 @asm89 asm89 committed Apr 10, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 Tests/EventListener/CommentBlamerListenerTest.php
View
4 Tests/EventListener/CommentBlamerListenerTest.php
@@ -36,7 +36,7 @@ public function testAnonymousUserIsNotBlamed()
$event = new CommentEvent($comment);
$securityContext = $this->getSecurityContext();
$securityContext->expects($this->once())->method('getToken')->will($this->returnValue('some non-null'));
- $securityContext->expects($this->once())->method('isGranted')->with('IS_AUTHENTICATED_FULLY')->will($this->returnValue(false));
+ $securityContext->expects($this->once())->method('isGranted')->with('IS_AUTHENTICATED_REMEMBERED')->will($this->returnValue(false));
$listener = new CommentBlamerListener($securityContext);
$listener->blame($event);
}
@@ -50,7 +50,7 @@ public function testAuthenticatedUserIsBlamed()
$token = $this->getMock('Symfony\Component\Security\Core\Authentication\Token\TokenInterface');
$token->expects($this->once())->method('getUser')->will($this->returnValue($this->getMock('Symfony\Component\Security\Core\User\UserInterface')));
$securityContext = $this->getSecurityContext();
- $securityContext->expects($this->once())->method('isGranted')->with('IS_AUTHENTICATED_FULLY')->will($this->returnValue(true));
+ $securityContext->expects($this->once())->method('isGranted')->with('IS_AUTHENTICATED_REMEMBERED')->will($this->returnValue(true));
$securityContext->expects($this->exactly(2))->method('getToken')->will($this->returnValue($token));
$listener = new CommentBlamerListener($securityContext);

0 comments on commit da0462e

Please sign in to comment.