eZ\Publish\Core\MVC\Symfony\Security\Tests\User\ProviderTest::setUp PHP Method

setUp() protected method

protected setUp ( )
    protected function setUp()
    {
        parent::setUp();
        $this->userService = $this->getMock('eZ\\Publish\\API\\Repository\\UserService');
        $this->repository = $this->getMock('eZ\\Publish\\API\\Repository\\Repository');
        $this->repository->expects($this->any())->method('getUserService')->will($this->returnValue($this->userService));
        $this->userProvider = new Provider($this->repository);
    }