mediawiki-extensions-Popups/tests/phpunit
Piotr Miazga 9590284c70 Sanitize gadget name
MediaWikiGadgetsDefinition does some basic gadget name sanitization
and we have to do the same when checking "is gadget enabled for user"

Changes:
 - sanitize gadget name same way as
   MediaWikiGadgetsDefinitionRepo::newFromDefinition() does.
 - add try{} catch() when loading gadget as getGadget might throw an
   exception

Bug: T160081
Change-Id: Ia7a57e9dcfa3b25129d6d2bf75795372fad2b251
2017-04-17 17:29:32 +00:00
..
PopupsContextTest.php Hygiene: Rename isEnabledByUser to shouldSendModuleToUser 2017-02-10 10:07:28 -08:00
PopupsContextTestWrapper.php Move conflicting NavPopups gadget name into config var 2017-01-12 18:07:20 +01:00
PopupsGadgetsIntegrationTest.php Sanitize gadget name 2017-04-17 17:29:32 +00:00
PopupsHooksTest.php Log events to statsv for monitoring PagePreviews performance 2017-03-14 08:51:10 +00:00