/**
  * @param ContentTypeRepositoryInterface       $contentTypeRepository
  * @param ContextManager                       $contextManager
  * @param string                               $parent
  * @param int                                  $weight
  * @param array                                $dataParameter
  * @param TranslatorInterface                  $translator
  * @param MultiLanguagesChoiceManagerInterface $multiLanguagesChoiceManager
  */
 public function __construct(ContentTypeRepositoryInterface $contentTypeRepository, ContextManager $contextManager, $parent, $weight, array $dataParameter, TranslatorInterface $translator, MultiLanguagesChoiceManagerInterface $multiLanguagesChoiceManager)
 {
     $this->contentTypes = $contentTypeRepository->findAllNotDeletedInLastVersion($contextManager->getCurrentLocale());
     $this->multiLanguagesChoiceManager = $multiLanguagesChoiceManager;
     parent::__construct('content_type_for_content', $weight, $parent, self::ROLE_ACCESS_CONTENT_TYPE_FOR_CONTENT, $dataParameter, $translator);
 }
 /**
  * @param $site  $site
  * @param array  $languages
  *
  * @dataProvider siteLanguagesProvider
  */
 public function testGetCurrentSiteLanguages(array $site, array $languages)
 {
     Phake::when($this->session)->get(Phake::anyParameters())->thenReturn($site);
     $this->assertEquals($languages, $this->contextManager->getCurrentSiteLanguages());
     Phake::verify($this->session, Phake::times(1))->get(ContextManager::KEY_SITE);
 }