protected function setUp()
{
parent::setUp();
$this->encoderFactory = $this->getMock('Symfony\\Component\\Security\\Core\\Encoder\\EncoderFactoryInterface');
$repository = $this->repository = $this->getMock('eZ\\Publish\\API\\Repository\\Repository');
$this->authProvider = new RepositoryAuthenticationProvider($this->getMock('Symfony\\Component\\Security\\Core\\User\\UserProviderInterface'), $this->getMock('Symfony\\Component\\Security\\Core\\User\\UserCheckerInterface'), 'foo', $this->encoderFactory);
$this->authProvider->setRepository($repository);
}