mediawiki-extensions-Echo/tests/phpunit/Api
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
..
Push Remove $this->tablesUsed from PHPUnit tests 2024-01-14 04:48:27 -08:00
ApiEchoCreateEventTest.php Add API module for sending notifications 2024-05-04 17:43:39 +03:00
ApiEchoMarkReadTest.php Namespace Api classes 2022-10-03 00:05:21 +01:00
ApiEchoNotificationsTest.php Avoid DB access in non-Database tests 2023-08-04 02:31:24 +02:00