mediawiki-extensions-Echo/tests/phpunit
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
..
api Hygiene: Echo/tests/phpunit/ directory structure should mimic Echo/ 2014-08-21 22:58:27 +00:00
cache Update tests/phpunit for new directory structure 2015-06-15 11:36:02 -07:00
controller Hygiene: Move notification type detection to method 2014-08-22 14:05:47 -07:00
formatters Refactor and unify icon URL logic 2015-08-06 04:17:14 +00:00
gateway Update tests/phpunit for new directory structure 2015-06-15 11:36:02 -07:00
iterator Update tests/phpunit for new directory structure 2015-06-15 11:36:02 -07:00
maintenance Title::newFromText requires string argument. 2015-03-23 15:47:45 -07:00
mapper Update tests/phpunit for new directory structure 2015-06-15 11:36:02 -07:00
model Allow multiple target pages per event 2015-03-31 07:56:52 +00:00
revision_txt Add test case to demonstrate T68512 is fixed 2015-07-06 17:31:08 -07:00
AttributeManagerTest.php Update tests/phpunit for new directory structure 2015-06-15 11:36:02 -07:00
BatchRowUpdateTest.php Update tests/phpunit for new directory structure 2015-06-15 11:36:02 -07:00
ContainmentSetTest.php Update tests/phpunit for new directory structure 2015-06-15 11:36:02 -07:00
DiffParserTest.php Update tests/phpunit for new directory structure 2015-06-15 11:36:02 -07:00
DiscussionParserTest.php Add test case to demonstrate T68512 is fixed 2015-07-06 17:31:08 -07:00
EchoDbFactoryTest.php Update tests/phpunit for new directory structure 2015-06-15 11:36:02 -07:00
EmailFormatterTest.php Update tests/phpunit for new directory structure 2015-06-15 11:36:02 -07:00
NotifUserTest.php Update tests/phpunit for new directory structure 2015-06-15 11:36:02 -07:00
TalkPageFunctionalTest.php Update tests/phpunit for new directory structure 2015-06-15 11:36:02 -07:00
UserLocatorTest.php Update tests/phpunit for new directory structure 2015-06-15 11:36:02 -07:00