mediawiki-extensions-Echo/tests/phpunit
Siddharth VP e27f4937ff Add API module for sending notifications
Allows users to send notifications to themselves (T306211). For sending
notifications to others, a new permission is created (echo-create),
assigned only to bots by default. For now, only one user can be notified
in one API request.

If the email flag is set in the API params, the notification is also
sent as an email, provided the user hasn't disabled email notifications
for the "api-triggered" category.

This feature is behind a feature flag. Set $wgEchoEnableApiEvents = true
to use.

Adapted from If0267a38be7d454e3d284d30f93c93a828288dd7.
Co-authored-by: TheresNoTime <starling-ctr@wikimedia.org>

Bug: T58362
Bug: T306211
Change-Id: I94642bff5dcb075cb9db862206d59c19edad9fd1
2024-05-04 17:43:39 +03:00
..
Api Add API module for sending notifications 2024-05-04 17:43:39 +03:00
Cache Inject services into TitleLocalCache 2024-03-17 21:22:00 +00:00
Controller Use namespaced classes 2023-12-11 16:39:00 +01:00
Formatters Replace deprecated Language::factory 2022-12-28 20:19:01 +01:00
integration Remove $this->tablesUsed from PHPUnit tests 2024-01-14 04:48:27 -08:00
maintenance Use namespaced classes 2023-12-11 16:39:00 +01:00
Mapper Migrate to IReadableDatabase::newSelectQueryBuilder 2024-04-28 01:05:10 +02:00
Model Migrate to IReadableDatabase::newSelectQueryBuilder 2024-04-28 01:05:10 +02:00
revision_txt Ping users mentioned in edit summaries 2018-02-22 12:37:35 -08:00
unit Migrate to IReadableDatabase::newSelectQueryBuilder 2024-04-28 01:05:10 +02:00
ContainmentSetTest.php Namespace some more classes 2023-08-18 21:24:59 +01:00
DbFactoryTest.php Namespace classes that need aliases 2023-08-18 19:00:41 +01:00
DiscussionParserTest.php Fix casing of MediaWiki 2024-03-12 15:25:19 +00:00
EchoHooksTest.php Use dependency injection in hooks 2023-10-14 23:44:57 +05:30
NotificationsTest.php Use namespaced classes 2023-12-11 16:39:00 +01:00
NotificationStructureTest.php tests: Make PHPUnit data providers static 2023-05-20 20:36:33 +02:00
NotifUserTest.php Use namespaced classes 2023-12-11 16:39:00 +01:00
ServiceWiringTest.php Use $this->getServiceContainer() in maintenance and tests 2023-11-09 20:18:48 +00:00
SummaryParserTest.php Use namespaced classes 2023-12-11 16:39:00 +01:00
TalkPageFunctionalTest.php Migrate to IReadableDatabase::newSelectQueryBuilder 2024-04-28 01:05:10 +02:00
ThankYouEditTest.php Migrate to IDatabase::newDeleteQueryBuilder 2024-04-12 22:45:45 +02:00
UnreadWikisTest.php Use namespaced classes 2023-12-11 16:39:00 +01:00
UserLocatorTest.php Migrate to IDatabase::newInsertQueryBuilder/newUpdateQueryBuilder 2024-04-13 22:51:32 +02:00