Ejemplo n.º 1
0
 /**
  * @expectedException \Symfony\Component\Security\Core\Exception\UnsupportedUserException
  * @expectedExceptionMessage Expected an instance of Oro\Bundle\UserBundle\Entity\UserInterface, but got
  */
 public function testRefreshUserNotOroUser()
 {
     $user = $this->getMock('Symfony\\Component\\Security\\Core\\User\\UserInterface');
     $userManager = new BaseUserManager('Symfony\\Component\\Security\\Core\\User\\UserInterface', $this->registry, $this->ef);
     $userManager->refreshUser($user);
 }
Ejemplo n.º 2
0
 /**
  * {@inheritDoc}
  */
 public function refreshUser(SecurityUserInterface $user)
 {
     return $this->userManager->refreshUser($user);
 }