eZ\Publish\Core\MVC\Symfony\Security\Tests\Authentication\RepositoryAuthenticationProviderTest::setUp PHP Method

setUp() protected method

protected setUp ( )
    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);
    }