Exemplo n.º 1
0
 protected function setUp()
 {
     parent::setUp();
     $this->om = $this->mock('Claroline\\CoreBundle\\Persistence\\ObjectManager');
     //workspace properties
     $this->workspacePropertiesImporter = $this->mock('Claroline\\CoreBundle\\Library\\Transfert\\ConfigurationBuilders\\WorkspacePropertiesImporter', array($this->om));
     //users importer
     $this->usersImporter = $this->mock('Claroline\\CoreBundle\\Library\\Transfert\\ConfigurationBuilders\\UsersImporter', array($this->om));
     //groups importer
     $this->groupsImporter = $this->mock('Claroline\\CoreBundle\\Library\\Transfert\\ConfigurationBuilders\\GroupsImporter', array($this->om));
     //roles importer
     $this->rolesImporter = $this->mock('Claroline\\CoreBundle\\Library\\Transfert\\ConfigurationBuilders\\RolesImporter', array($this->om));
     //roles importer
     $this->toolsImporter = $this->mock('Claroline\\CoreBundle\\Library\\Transfert\\ConfigurationBuilders\\ToolsImporter', array($this->om));
     //roles importer
     $this->ownerImporter = $this->mock('Claroline\\CoreBundle\\Library\\Transfert\\ConfigurationBuilders\\OwnerImporter', array($this->om));
     $this->manager = new TransfertManager();
     $homeImporter = new HomeImporter();
     $textImporter = new TextImporter();
     $resourceImporter = new ResourceManagerImporter();
     $this->manager->addImporter($homeImporter);
     $this->manager->addImporter($textImporter);
     $this->manager->addImporter($resourceImporter);
     $this->manager->addImporter($this->workspacePropertiesImporter);
     $this->manager->addImporter($this->usersImporter);
     $this->manager->addImporter($this->rolesImporter);
     $this->manager->addImporter($this->groupsImporter);
     $this->manager->addImporter($this->toolsImporter);
     $this->manager->addImporter($this->ownerImporter);
 }
Exemplo n.º 2
0
 public function setUp()
 {
     parent::setUp();
     vfsStream::setup('template');
     $this->homeTabManager = $this->mock('Claroline\\CoreBundle\\Manager\\HomeTabManager');
     $this->roleManager = $this->mock('Claroline\\CoreBundle\\Manager\\RoleManager');
     $this->toolManager = $this->mock('Claroline\\CoreBundle\\Manager\\ToolManager');
     $this->resourceManager = $this->mock('Claroline\\CoreBundle\\Manager\\ResourceManager');
     $this->orderedToolRepo = $this->mock('Claroline\\CoreBundle\\Repository\\OrderedToolRepository');
     $this->resourceNodeRepo = $this->mock('Claroline\\CoreBundle\\Repository\\ResourceNodeRepository');
     $this->resourceRightsRepo = $this->mock('Claroline\\CoreBundle\\Repository\\ResourceRightsRepository');
     $this->resourceTypeRepo = $this->mock('Claroline\\CoreBundle\\Repository\\ResourceTypeRepository');
     $this->workspaceFavouriteRepo = $this->mock('ClarolineCoreBundle\\Repository\\WorkspaceFavouriteRepository');
     $this->userRepo = $this->mock('Claroline\\CoreBundle\\Repository\\UserRepository');
     $this->roleRepo = $this->mock('Claroline\\CoreBundle\\Repository\\RoleRepository');
     $this->workspaceRepo = $this->mock('Claroline\\CoreBundle\\Repository\\WorkspaceRepository');
     $this->rightsRepo = $this->mock('Claroline\\CoreBundle\\Repository\\ResourceRightsRepository');
     $this->strictDispatcher = $this->mock('Claroline\\CoreBundle\\Event\\StrictDispatcher');
     $this->om = $this->mock('Claroline\\CoreBundle\\Persistence\\ObjectManager');
     $this->ut = $this->mock('Claroline\\CoreBundle\\Library\\Utilities\\ClaroUtilities');
     $this->templateDir = vfsStream::url('template');
     $this->pagerFactory = $this->mock('Claroline\\CoreBundle\\Pager\\PagerFactory');
     $this->maskManager = $this->mock('Claroline\\CoreBundle\\Manager\\MaskManager');
     $this->security = $this->mock('Symfony\\Component\\Security\\Core\\SecurityContextInterface');
 }
Exemplo n.º 3
0
 protected function setUp()
 {
     parent::setUp();
     $this->writer = $this->mock('Claroline\\CoreBundle\\Library\\Resource\\QueryStringWriter');
     $this->accessor = $this->mock('Claroline\\CoreBundle\\Library\\Resource\\ModeAccessor');
     $this->handler = new QueryStringHandler($this->accessor, $this->writer);
 }
Exemplo n.º 4
0
 public function setUp()
 {
     parent::setUp();
     $this->om = $this->mock('Claroline\\CoreBundle\\Persistence\\ObjectManager');
     $this->homeTabRepo = $this->mock('Claroline\\CoreBundle\\Repository\\HomeTabRepository');
     $this->homeTabConfigRepo = $this->mock('Claroline\\CoreBundle\\Repository\\HomeTabConfigRepository');
     $this->widgetHomeTabConfigRepo = $this->mock('Claroline\\CoreBundle\\Repository\\WidgetHomeTabConfigRepository');
     $this->widgetDisplayConfigRepo = $this->mock('Claroline\\CoreBundle\\Repository\\DisplayConfigRepository');
 }
Exemplo n.º 5
0
 protected function setUp()
 {
     parent::setUp();
     $this->plugin = $this->mock('Claroline\\CoreBundle\\Library\\PluginBundle');
     $this->validator = $this->mock('Claroline\\CoreBundle\\Library\\Installation\\Plugin\\Validator');
     $this->recorder = $this->mock('Claroline\\CoreBundle\\Library\\Installation\\Plugin\\Recorder');
     $this->baseInstaller = $this->mock('Claroline\\InstallationBundle\\Manager\\InstallationManager');
     $this->installer = new Installer($this->validator, $this->recorder, $this->baseInstaller);
 }
 protected function setUp()
 {
     $this->markTestSkipped();
     parent::setUp();
     $this->formFactory = $this->mock('Claroline\\CoreBundle\\Form\\Factory\\FormFactory');
     $this->homeTabManager = $this->mock('Claroline\\CoreBundle\\Manager\\HomeTabManager');
     $this->request = $this->mock('Symfony\\Component\\HttpFoundation\\Request');
     $this->widgetManager = $this->mock('Claroline\\CoreBundle\\Manager\\WidgetManager');
 }
 protected function setUp()
 {
     parent::setUp();
     $writer = $this->mock('Claroline\\CoreBundle\\Library\\Resource\\QueryStringWriter');
     $accessor = $this->mock('Claroline\\CoreBundle\\Library\\Resource\\ModeAccessor');
     $this->generator = $this->mock('Symfony\\Component\\Routing\\Generator\\UrlGeneratorInterface');
     $writer->shouldReceive('getQueryString')->andReturnValues(array('', 'a=1&b=2'));
     $this->extension = new ResourceModeExtension($this->generator, $writer, $accessor);
 }
 protected function setUp()
 {
     parent::setUp();
     $this->request = $this->mock('Symfony\\Component\\HttpFoundation\\Request');
     $this->userManager = $this->mock('Claroline\\CoreBundle\\Manager\\UserManager');
     $this->configHandler = $this->mock('Claroline\\CoreBundle\\Library\\Configuration\\PlatformConfigurationHandler');
     $this->validator = $this->mock('Symfony\\Component\\Validator\\ValidatorInterface');
     $this->roleManager = $this->mock('Claroline\\CoreBundle\\Manager\\RoleManager');
     $this->controller = new RegistrationController($this->request, $this->userManager, $this->configHandler, $this->validator, $this->roleManager);
 }
Exemplo n.º 9
0
 public function setUp()
 {
     parent::setUp();
     $this->om = $this->mock('Claroline\\CoreBundle\\Persistence\\ObjectManager');
     $this->userRepo = $this->mock('Claroline\\CoreBundle\\Repository\\UserRepository');
     $this->om->shouldReceive('getRepository')->with('ClarolineCoreBundle:User')->andReturn($this->userRepo);
     $this->sc = $this->mock('Symfony\\Component\\Security\\Core\\SecurityContextInterface');
     $this->encoderFactory = $this->mock('Symfony\\Component\\Security\\Core\\Encoder\\EncoderFactoryInterface');
     $this->authenticator = new Authenticator($this->om, $this->sc, $this->encoderFactory);
 }
Exemplo n.º 10
0
 public function setUp()
 {
     parent::setUp();
     $this->roleRepo = m::mock('Claroline\\CoreBundle\\Repository\\RoleRepository');
     $this->userRepo = m::mock('Claroline\\CoreBundle\\Repository\\UserRepository');
     $this->groupRepo = m::mock('Claroline\\CoreBundle\\Repository\\GroupRepository');
     $this->securityContext = m::mock('Symfony\\Component\\Security\\Core\\SecurityContextInterface');
     $this->om = m::mock('Claroline\\CoreBundle\\Persistence\\ObjectManager');
     $this->dispatcher = m::mock('Claroline\\CoreBundle\\Event\\StrictDispatcher');
 }
Exemplo n.º 11
0
 public function setUp()
 {
     parent::setUp();
     $this->om = $this->mock('Claroline\\CoreBundle\\Persistence\\ObjectManager');
     $this->groupRepo = $this->mock('Claroline\\CoreBundle\\Repository\\GroupRepository');
     $this->userRepo = $this->mock('Claroline\\CoreBundle\\Repository\\UserRepository');
     $this->pagerFactory = $this->mock('Claroline\\CoreBundle\\Pager\\PagerFactory');
     $this->translator = $this->mock('Symfony\\Component\\Translation\\Translator');
     $this->eventDispatcher = $this->mock('Claroline\\CoreBundle\\Event\\StrictDispatcher');
 }
Exemplo n.º 12
0
 public function setUp()
 {
     parent::setUp();
     $this->maskRepo = $this->mock('Doctrine\\ORM\\EntityRepository');
     $this->menuRepo = $this->mock('Doctrine\\ORM\\EntityRepository');
     $this->om = $this->mock('Claroline\\CoreBundle\\Persistence\\ObjectManager');
     $this->om->shouldReceive('getRepository')->with('ClarolineCoreBundle:Resource\\MaskDecoder')->andReturn($this->maskRepo);
     $this->om->shouldReceive('getRepository')->with('ClarolineCoreBundle:Resource\\MenuAction')->andReturn($this->menuRepo);
     $this->manager = new MaskManager($this->om);
 }
Exemplo n.º 13
0
 protected function setUp()
 {
     parent::setUp();
     $this->accessor = $this->mock('Claroline\\CoreBundle\\Library\\Resource\\ModeAccessor');
     $this->container = $this->mock('Symfony\\Component\\DependencyInjection\\ContainerInterface');
     $this->query = $this->mock('Symfony\\Component\\HttpFoundation\\ParameterBag');
     $request = $this->mock('Symfony\\Component\\HttpFoundation\\Request');
     $request->query = $this->query;
     $this->container->shouldReceive('get')->with('request')->andReturn($request);
 }
 protected function setUp()
 {
     $this->markTestSkipped();
     parent::setUp();
     $this->om = $this->mock('Claroline\\CoreBundle\\Persistence\\ObjectManager');
     $this->formFactory = $this->mock('Claroline\\CoreBundle\\Form\\Factory\\FormFactory');
     $this->security = $this->mock('Symfony\\Component\\Security\\Core\\SecurityContextInterface');
     $this->request = $this->mock('Symfony\\Component\\HttpFoundation\\Request');
     $this->roleManager = $this->mock('Claroline\\CoreBundle\\Manager\\RoleManager');
 }
Exemplo n.º 15
0
 protected function setUp()
 {
     parent::setUp();
     $this->formFactory = $this->mock('Symfony\\Component\\Form\\FormFactoryInterface');
     $this->factory = new FormFactory($this->formFactory);
     $rFactory = new \ReflectionClass($this->factory);
     $rTypes = $rFactory->getProperty('types');
     $rTypes->setAccessible(true);
     $rTypes->setValue(null, array('fooType' => array('formType' => 'DOMDocument', 'entity' => 'stdClass')));
 }
Exemplo n.º 16
0
 public function setUp()
 {
     parent::setUp();
     $this->em = $this->mock("Doctrine\\ORM\\EntityManager");
     $this->translator = $this->mock("Symfony\\Component\\Translation\\Translator");
     $this->ut = $this->mock("Claroline\\CoreBundle\\Library\\Security\\Utilities");
     $this->maskManager = $this->mock("Claroline\\CoreBundle\\Manager\\MaskManager");
     $this->repository = $this->mock("Claroline\\CoreBundle\\Repository\\ResourceRightsRepository");
     $this->em->shouldReceive('getRepository')->once()->with('ClarolineCoreBundle:Resource\\ResourceRights')->andReturn($this->repository);
     $this->voter = new ResourceVoter($this->em, $this->translator, $this->ut, $this->maskManager);
 }
Exemplo n.º 17
0
 public function setUp()
 {
     parent::setUp();
     $this->importer = new ToolsImporter();
     $this->importers = new ArrayCollection();
     $this->homeImporter = $this->mock('Claroline\\CoreBundle\\Library\\Transfert\\ConfigurationBuilders\\Tools\\HomeImporter');
     $this->homeImporter->shouldReceive('getName')->andReturn('home');
     $this->homeImporter->shouldReceive('validate')->andReturn(true);
     $this->importers->add($this->homeImporter);
     $this->importer->setListImporters($this->importers);
 }
Exemplo n.º 18
0
 protected function setUp()
 {
     parent::setUp();
     $this->importer = new HomeImporter($this->om);
     $simpleTextImporter = $this->mock('Claroline\\CoreBundle\\Library\\Transfert\\ConfigurationBuilders\\Tools\\Widgets\\TextImporter');
     $simpleTextImporter->shouldReceive('getName')->andReturn('simple_text');
     $simpleTextImporter->shouldReceive('validate')->andReturn(true);
     $this->importers = new ArrayCollection();
     $this->importers->add($simpleTextImporter);
     $this->importer->setListImporters($this->importers);
 }
Exemplo n.º 19
0
 public function setUp()
 {
     parent::setUp();
     $this->thumbnailCreator = $this->mock('Claroline\\CoreBundle\\Library\\Utilities\\ThumbnailCreator');
     $this->repo = $this->mock('Claroline\\CoreBundle\\Repository\\ResourceIconRepository');
     $this->fileDir = 'path/to/filedir';
     $this->thumbDir = 'path/to/thumbdir';
     $this->rootDor = 'path/to/rootDir';
     $this->ut = $this->mock('Claroline\\CoreBundle\\Library\\Utilities\\ClaroUtilities');
     $this->om = $this->mock('Claroline\\CoreBundle\\Persistence\\ObjectManager');
 }
Exemplo n.º 20
0
 protected function setUp()
 {
     parent::setUp();
     $resourceTypeRepo = $this->mock('Claroline\\CoreBundle\\Repository\\ResourceTypeRepository');
     $resourceTypeRepo->shouldReceive('findAll')->andReturn(array());
     $toolRepo = $this->mock('Claroline\\CoreBundle\\Repository\\ToolRepository');
     $toolRepo->shouldReceive('findAll')->andReturn(array());
     $em = $this->mock('Doctrine\\ORM\\EntityManager');
     $em->shouldReceive('getRepository')->with('ClarolineCoreBundle:Resource\\ResourceType')->andReturn($resourceTypeRepo);
     $em->shouldReceive('getRepository')->with('ClarolineCoreBundle:Tool\\Tool')->andReturn($toolRepo);
     $this->checker = new ConfigurationChecker(new Parser(), $em);
 }
Exemplo n.º 21
0
 public function setUp()
 {
     $this->markTestSkipped('Needs to be fixed');
     parent::setUp();
     $this->orderedToolRepo = $this->mock('Claroline\\CoreBundle\\Repository\\OrderedToolRepository');
     $this->toolRepo = $this->mock('Claroline\\CoreBundle\\Repository\\ToolRepository');
     $this->ed = $this->mock('Claroline\\CoreBundle\\Event\\StrictDispatcher');
     $this->utilities = $this->mock('Claroline\\CoreBundle\\Library\\Utilities\\ClaroUtilities');
     $this->roleRepo = $this->mock('Claroline\\CoreBundle\\Repository\\RoleRepository');
     $this->translator = $this->mock('Symfony\\Component\\Translation\\Translator');
     $this->om = $this->mock('Claroline\\CoreBundle\\Persistence\\ObjectManager');
     $this->roleManager = $this->mock('Claroline\\CoreBundle\\Manager\\RoleManager');
 }
Exemplo n.º 22
0
 public function setUp()
 {
     parent::setUp();
     $this->roleManager = $this->mock('Claroline\\CoreBundle\\Manager\\RoleManager');
     $this->userManager = $this->mock('Claroline\\CoreBundle\\Manager\\UserManager');
     $this->groupManager = $this->mock('Claroline\\CoreBundle\\Manager\\GroupManager');
     $this->resourceManager = $this->mock('Claroline\\CoreBundle\\Manager\\ResourceManager');
     $this->security = $this->mock('Symfony\\Component\\Security\\Core\\SecurityContextInterface');
     $this->formFactory = $this->mock('Claroline\\CoreBundle\\Form\\Factory\\FormFactory');
     $this->router = $this->mock('Symfony\\Component\\Routing\\Generator\\UrlGeneratorInterface');
     $this->request = $this->mock('Symfony\\Component\\HttpFoundation\\Request');
     $this->controller = new RolesController($this->roleManager, $this->userManager, $this->groupManager, $this->resourceManager, $this->security, $this->formFactory, $this->router, $this->request);
 }
Exemplo n.º 23
0
 public function setUp()
 {
     parent::setUp();
     $this->rightsRepo = $this->mock('Claroline\\CoreBundle\\Repository\\ResourceRightsRepository');
     $this->maskManager = $this->mock('Claroline\\CoreBundle\\Manager\\MaskManager');
     $this->roleManager = $this->mock('Claroline\\CoreBundle\\Manager\\RoleManager');
     $this->resourceNodeRepo = $this->mock('Claroline\\CoreBundle\\Repository\\ResourceNodeRepository');
     $this->roleRepo = $this->mock('Claroline\\CoreBundle\\Repository\\RoleRepository');
     $this->resourceTypeRepo = $this->mock('Claroline\\CoreBundle\\Repository\\ResourceTypeRepository');
     $this->translator = $this->mock('Symfony\\Component\\Translation\\Translator');
     $this->dispatcher = $this->mock('Claroline\\CoreBundle\\Event\\StrictDispatcher');
     $this->om = $this->mock('Claroline\\CoreBundle\\Persistence\\ObjectManager');
 }
Exemplo n.º 24
0
 public function setUp()
 {
     parent::setUp();
     $this->type = $this->mock('Claroline\\CoreBundle\\Entity\\Home\\Type');
     $this->region = $this->mock('Claroline\\CoreBundle\\Entity\\Home\\Region');
     $this->content = $this->mock('Claroline\\CoreBundle\\Entity\\Content');
     $this->manager = $this->mock('Claroline\\CoreBundle\\Manager\\HomeManager');
     $this->request = $this->mock('Symfony\\Component\\HttpFoundation\\Request');
     $this->security = $this->mock('Symfony\\Component\\Security\\Core\\SecurityContextInterface');
     $this->templating = $this->mock('Symfony\\Bundle\\TwigBundle\\Debug\\TimedTwigEngine');
     $this->homeService = $this->mock('Claroline\\CoreBundle\\Library\\Home\\HomeService');
     $this->controller = new HomeController($this->manager, $this->request, $this->security, $this->templating, $this->homeService);
 }
 protected function setUp()
 {
     parent::setUp();
     $this->om = $this->mock('Claroline\\CoreBundle\\Persistence\\ObjectManager');
     $this->importer = new ResourceManagerImporter($this->om);
     $this->fileImporter = $this->mock('Claroline\\CoreBundle\\Library\\Transfert\\ConfigurationBuilders\\Tools\\Resources\\FileImporter');
     $this->fileImporter->shouldReceive('getName')->andReturn('file');
     $this->textImporter = $this->mock('Claroline\\CoreBundle\\Library\\Transfert\\ConfigurationBuilders\\Tools\\Resources\\TextImporter');
     $this->textImporter->shouldReceive('getName')->andReturn('text');
     $this->importers = new ArrayCollection();
     $this->importers->add($this->fileImporter);
     $this->importers->add($this->textImporter);
     $this->importer->setListImporters($this->importers);
 }
Exemplo n.º 26
0
 protected function setUp()
 {
     parent::setUp();
     $this->em = $this->mock('Doctrine\\ORM\\EntityManager');
     $this->eventDispatcher = $this->mock('Claroline\\CoreBundle\\Event\\StrictDispatcher');
     $this->formFactory = $this->mock('Claroline\\CoreBundle\\Form\\Factory\\FormFactory');
     $this->homeTabManager = $this->mock('Claroline\\CoreBundle\\Manager\\HomeTabManager');
     $this->request = $this->mock('Symfony\\Component\\HttpFoundation\\Request');
     $this->roleManager = $this->mock('Claroline\\CoreBundle\\Manager\\RoleManager');
     $this->securityContext = $this->mock('Symfony\\Component\\Security\\Core\\SecurityContextInterface');
     $this->toolManager = $this->mock('Claroline\\CoreBundle\\Manager\\ToolManager');
     $this->widgetManager = $this->mock('Claroline\\CoreBundle\\Manager\\WidgetManager');
     $this->markTestSkipped();
 }
 protected function setUp()
 {
     parent::setUp();
     $this->request = $this->mock('Symfony\\Component\\HttpFoundation\\Request');
     $this->userManager = $this->mock('Claroline\\CoreBundle\\Manager\\UserManager');
     $this->encoderFactory = $this->mock('Symfony\\Component\\Security\\Core\\Encoder\\EncoderFactory');
     $this->om = $this->mock('Claroline\\CoreBundle\\Persistence\\ObjectManager');
     $this->mailManager = $this->mock('Claroline\\CoreBundle\\Manager\\MailManager');
     $this->translator = $this->mock('Symfony\\Component\\Translation\\Translator');
     $this->formFactory = $this->mock('Claroline\\CoreBundle\\Form\\Factory\\FormFactory');
     $this->authenticator = $this->mock('Claroline\\CoreBundle\\Library\\Security\\Authenticator');
     $this->router = $this->mock('Symfony\\Component\\Routing\\RouterInterface');
     $this->controller = new AuthenticationController($this->request, $this->userManager, $this->encoderFactory, $this->om, $this->translator, $this->formFactory, $this->authenticator, $this->mailManager, $this->router);
 }
Exemplo n.º 28
0
 public function setUp()
 {
     parent::setUp();
     $this->sc = $this->mock('Symfony\\Component\\Security\\Core\\SecurityContext');
     $this->resourceManager = $this->mock('Claroline\\CoreBundle\\Manager\\ResourceManager');
     $this->rightsManager = $this->mock('Claroline\\CoreBundle\\Manager\\RightsManager');
     $this->roleManager = $this->mock('Claroline\\CoreBundle\\Manager\\RoleManager');
     $this->translator = $this->mock('Symfony\\Component\\Translation\\Translator');
     $this->request = $this->mock('Symfony\\Component\\HttpFoundation\\Request');
     $this->dispatcher = $this->mock('Claroline\\CoreBundle\\Event\\StrictDispatcher');
     $this->maskManager = $this->mock('Claroline\\CoreBundle\\Manager\\MaskManager');
     $this->twigEngine = $this->mock('Symfony\\Bundle\\TwigBundle\\TwigEngine');
     $this->logManager = $this->mock('Claroline\\CoreBundle\\Manager\\LogManager');
 }
Exemplo n.º 29
0
 public function setUp()
 {
     parent::setUp();
     $this->om = $this->mock('Claroline\\CoreBundle\\Persistence\\ObjectManager');
     $this->im = $this->mock('Claroline\\CoreBundle\\Manager\\IconManager');
     $this->mm = $this->mock('Claroline\\CoreBundle\\Manager\\MaskManager');
     $this->fileSystem = $this->mock('Symfony\\Component\\Filesystem\\Filesystem');
     $this->kernel = $this->mock('Symfony\\Component\\HttpKernel\\KernelInterface');
     $this->templateDir = 'path/to/templateDir';
     $this->kernel->shouldReceive('getRootDir')->andReturn('kernelRootDir');
     $this->kernel->shouldReceive('getEnvironment')->andReturn('test');
     $this->kernelRootDir = 'kernelRootDir';
     $this->dbWriter = new DatabaseWriter($this->om, $this->im, $this->fileSystem, $this->kernel, $this->mm, $this->templateDir);
 }
Exemplo n.º 30
0
 public function setUp()
 {
     parent::setUp();
     $this->rightsManager = $this->mock('Claroline\\CoreBundle\\Manager\\RightsManager');
     $this->resourceNodeRepo = $this->mock('Claroline\\CoreBundle\\Repository\\ResourceNodeRepository');
     $this->resourceTypeRepo = $this->mock('Claroline\\CoreBundle\\Repository\\ResourceTypeRepository');
     $this->shortcutRepo = $this->mock('Claroline\\CoreBundle\\Repository\\ResourceShortcutRepository');
     $this->roleRepo = $this->mock('Claroline\\CoreBundle\\Repository\\RoleRepository');
     $this->roleManager = $this->mock('Claroline\\CoreBundle\\Manager\\RoleManager');
     $this->rightsRepo = $this->mock('Claroline\\CoreBundle\\Repository\\ResourceRightsRepository');
     $this->iconManager = $this->mock('Claroline\\CoreBundle\\Manager\\IconManager');
     $this->eventDispatcher = $this->mock('Claroline\\CoreBundle\\Event\\StrictDispatcher');
     $this->om = $this->mock('Claroline\\CoreBundle\\Persistence\\ObjectManager');
     $this->ut = $this->mock('Claroline\\CoreBundle\\Library\\Utilities\\ClaroUtilities');
     $this->sc = $this->mock('Symfony\\Component\\Security\\Core\\SecurityContextInterface');
 }