Exemplo n.º 1
0
 /**
  * @inheritdoc
  */
 public function authenticateWith(UserInterface $user)
 {
     $this->currentState->setAuthenticated($user);
 }
Exemplo n.º 2
0
 public function test_setAuthenticated()
 {
     $this->setExpectedException('Trismegiste\\PortalBundle\\Model\\State\\InvalidTransitionException');
     $user = $this->getMock('Symfony\\Component\\Security\\Core\\User\\UserInterface');
     $this->sut->setAuthenticated($user);
 }