/**
  * @param array $themes
  */
 protected function setUpThemeManager(array $themes)
 {
     $map = [];
     foreach ($themes as $themeName => $theme) {
         $map[] = [$themeName, $theme];
     }
     $this->themeManager->expects($this->any())->method('getTheme')->willReturnMap($map);
 }