/** * @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); }
/** * {@inheritDoc} */ public function refreshUser(SecurityUserInterface $user) { return $this->userManager->refreshUser($user); }