/**
  * @return string
  */
 public function show()
 {
     $siteId = $this->currentSiteManager->getCurrentSiteId();
     $rootFolders = $this->folderRepository->findAllRootFolderBySiteId($siteId);
     return $this->render('OpenOrchestraMediaAdminBundle:Tree:showFolderTree.html.twig', array('folders' => $rootFolders));
 }
 /**
  * @param string $siteId
  * @param int    $count
  *
  * @dataProvider provideSiteIdAndFolderCount
  */
 public function testFindAllRootFolderBySiteId($siteId, $count)
 {
     $result = $this->repository->findAllRootFolderBySiteId($siteId);
     $this->assertLessThanOrEqual($count, count($result));
 }