public refreshUser ( Symfony\Component\Security\Core\User\UserInterface $user ) | ||
$user | Symfony\Component\Security\Core\User\UserInterface |
public function refreshUser(UserInterface $user)
{
throw new UnsupportedUserException('Cannot refresh a Contao user.');
}
/** * Tests refreshing a user. * * @expectedException \Symfony\Component\Security\Core\Exception\UnsupportedUserException */ public function testRefreshUser() { $container = new Container(); $container->addScope(new Scope(ContaoCoreBundle::SCOPE_FRONTEND)); $container->enterScope(ContaoCoreBundle::SCOPE_FRONTEND); $provider = new ContaoUserProvider($container, $this->framework); $provider->refreshUser(new User('foo', 'bar')); }