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