mediawiki-extensions-Echo/tests
Kunal Mehta 5e2da7627b Refactor and unify icon URL logic
The logic to get the URL for an icon was duplicated in the
EmailFormatter and BasicFormatter. It is now in the abstract
NotificationFormatter, which EmailFormatter and BasicFormatter now
use.

Changes in logic:
* Throw an exception if an invalid notification type is provided instead
of a PHP notice
* icons using 'url' may have different ltr/rtl icons
* Throw exception if icon is supposed to have different icons for
ltr/rtl, but doesn't, instead of debug logging

The new function is static so it can be used in EmailFormatter as it
does not inherit from NotificationFormatter.

Bug: T60726
Change-Id: Ia3c01c35f58eed8cc2c039249ab1ec1a80a8abbb
2015-08-06 04:17:14 +00:00
..
browser/features Fix typo in scenario name 2015-06-11 23:02:12 -04:00
externals Add ability to run QUnit tests 2014-08-01 15:55:22 -07:00
phpunit Refactor and unify icon URL logic 2015-08-06 04:17:14 +00:00
qunit/overlay Use mw.Api.postWithToken to automatically re-try badtoken errors 2015-06-07 18:11:48 -07:00
bootstrap.php Directory reshuffle, add dev tools 2014-08-01 22:38:41 +00:00
echo.suite.xml Directory reshuffle, add dev tools 2014-08-01 22:38:41 +00:00
NotificationsTest.php Start tests for the built-in notification types 2015-01-30 18:09:04 +00:00