Skip to content
This repository
Browse code

Update tests

  • Loading branch information...
commit da0462e96f68faf730843dd37db2dae650785f35 1 parent 85d69d6
Alexander asm89 authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 Tests/EventListener/CommentBlamerListenerTest.php
4 Tests/EventListener/CommentBlamerListenerTest.php
@@ -36,7 +36,7 @@ public function testAnonymousUserIsNotBlamed()
36 36 $event = new CommentEvent($comment);
37 37 $securityContext = $this->getSecurityContext();
38 38 $securityContext->expects($this->once())->method('getToken')->will($this->returnValue('some non-null'));
39   - $securityContext->expects($this->once())->method('isGranted')->with('IS_AUTHENTICATED_FULLY')->will($this->returnValue(false));
  39 + $securityContext->expects($this->once())->method('isGranted')->with('IS_AUTHENTICATED_REMEMBERED')->will($this->returnValue(false));
40 40 $listener = new CommentBlamerListener($securityContext);
41 41 $listener->blame($event);
42 42 }
@@ -50,7 +50,7 @@ public function testAuthenticatedUserIsBlamed()
50 50 $token = $this->getMock('Symfony\Component\Security\Core\Authentication\Token\TokenInterface');
51 51 $token->expects($this->once())->method('getUser')->will($this->returnValue($this->getMock('Symfony\Component\Security\Core\User\UserInterface')));
52 52 $securityContext = $this->getSecurityContext();
53   - $securityContext->expects($this->once())->method('isGranted')->with('IS_AUTHENTICATED_FULLY')->will($this->returnValue(true));
  53 + $securityContext->expects($this->once())->method('isGranted')->with('IS_AUTHENTICATED_REMEMBERED')->will($this->returnValue(true));
54 54 $securityContext->expects($this->exactly(2))->method('getToken')->will($this->returnValue($token));
55 55
56 56 $listener = new CommentBlamerListener($securityContext);

0 comments on commit da0462e

Please sign in to comment.
Something went wrong with that request. Please try again.