mediawiki-extensions-Discus.../tests/phpunit
Kosta Harlan c6c7dd2fb0 overflow menu: Add hooks for registering and interacting with items
Why:

- We want to allow extensions to register interactive menu items in the
  overflow menu.

What:

- Create a PHP hook to allow extensions to provide menu items
  for rendering in the overflow menu
  - The hook allows for registering resource loader modules required by
    the menu item
  - The hook passes in some contextual information, like the thread
    item data, context source object, and if the page is editable
- Create a JS hook that fires when a user selects one of the menu items
- Example implementation: Ie9afbedb4f24cbd75eb48bb21dc9f6d8d732d853

Misc:

- Remove b/c code that existed to handle a transitional period where
  JSON encoded overflow menu data did not necessarily exist in the
  parser cache
- Rename code instances of ellipsis button / data / menu to refer to
  "overflow menu"
  - Some renames will have to wait until parser cache is updated; these
    are noted with TODOs

Bug: T342251
Change-Id: I5f2a51791f8ba7619d1399a4b93111e9bb44e172
2023-10-05 15:50:33 +01:00
..
integration Use namespaced Title 2023-08-19 20:16:15 +02:00
unit Create HookRunner class and the hook handler interface 2023-06-04 20:12:56 +02:00
CommentFormatterTest.php overflow menu: Add hooks for registering and interacting with items 2023-10-05 15:50:33 +01:00
CommentModifierTest.php tests: Make PHPUnit data providers static 2023-05-20 15:57:13 +02:00
CommentParserTest.php Add various, more specific type hints 2023-06-09 13:44:42 +02:00
CommentUtilsTest.php tests: Make PHPUnit data providers static 2023-05-20 15:57:13 +02:00
ContentThreadItemTest.php tests: Make PHPUnit data providers static 2023-05-20 15:57:13 +02:00
EventDispatcherTest.php Avoid DB access in non-database tests 2023-08-07 21:46:14 +02:00
IntegrationTestCase.php Turn comment timestamps into permalinks 2023-10-02 14:53:47 +01:00
LanguageDataTest.php tests: Make PHPUnit data providers static 2023-05-20 15:57:13 +02:00
MockCommentFormatter.php Use PHP 7.4 property types 2022-10-28 21:56:38 +02:00
MockEventDispatcher.php Use namespaced Title 2023-08-19 20:16:15 +02:00
MockLanguageData.php Use PHP 7.4 property types 2022-10-28 21:56:38 +02:00
MockSubscriptionStore.php Add various, more specific type hints 2023-06-09 13:44:42 +02:00
ServiceWiringTest.php tests: Make PHPUnit data providers static 2023-05-20 15:57:13 +02:00
TestUtils.php Make use of named MainConfigNames::… constants 2023-05-19 12:12:32 +02:00
ThreadItemStoreTest.php Always use === in PHP 2023-07-26 14:29:40 +01:00