protected function setUp()
 {
     $this->setupFile = dirname(__FILE__) . '/../PortableInfobox.setup.php';
     parent::setUp();
     $this->imageFilenameSanitizer = \Wikia\PortableInfobox\Helpers\ImageFilenameSanitizer::getInstance();
 }
Beispiel #2
0
 private function getImageAsTitleObject($imageName)
 {
     global $wgContLang;
     $title = \Title::newFromText(ImageFilenameSanitizer::getInstance()->sanitizeImageFileName($imageName, $wgContLang), NS_FILE);
     return $title;
 }