mediawiki-extensions-Echo/tests/phpunit/api
Dmitry Brant 6c5a88107c Turn push notification token list into a circular buffer.
At the moment we support a maximum of 10 tokens per user for subscribing
to push notifications, stored as a basic list that runs out when the
limit is reached.  There may, however, be some edge cases where an app
registers a token and then forgets to unregister it (and repeats this 10
times), after which time it will be unable to register any new token.

This changes the token list to behave more like a circular buffer, by
simply deleting the oldest token before inserting the new one. This way
an app could register a new token even in the rare case of forgetting
the previous ten.

Change-Id: I387de63460882e4e56d1aa6db1f78d73a0495208
2021-07-29 17:22:57 -04:00
..
Push Turn push notification token list into a circular buffer. 2021-07-29 17:22:57 -04:00
ApiEchoMarkReadTest.php Use ApiTestBase::doRequestWithToken 2021-04-20 13:53:16 -07:00
ApiEchoNotificationsTest.php Merge "Use absolute class names in @covers tags" 2019-10-24 18:37:15 +00:00