mediawiki-extensions-Discus.../tests/phpunit
Bartosz Dziewoński 47510a22f3 EventDispatcher: Fix ignoring level 3+ headings
The code (prior to d25825a754) assumed
that level 3+ headings would always follow a level 2 heading or the
placeholder heading, but we don't generate a placeholder heading if
there are no comments in section zero.

Add more tests to confirm that comments under level 3+ headings (that
are not sub-headings of level 2), and level 1 headings, are ignored
when generating notifications, and do not mess with normal headings.

Bug: T288775
Change-Id: Ic57b56752a4797cb01234f66e0ed7b849752bd70
2021-08-16 15:42:06 +00:00
..
unit Use DOMCompat::newDocument() to create a new Document 2021-07-30 18:15:11 -04:00
CommentFormatterTest.php build: Updating dependencies 2021-07-22 16:29:04 +00:00
CommentModifierTest.php Deal with document body consistently 2021-08-03 15:12:55 +02:00
CommentParserTest.php Deal with document body consistently 2021-08-03 15:12:55 +02:00
DataTest.php build: Updating dependencies 2021-07-22 16:29:04 +00:00
EventDispatcherTest.php EventDispatcher: Fix ignoring level 3+ headings 2021-08-16 15:42:06 +00:00
IntegrationTestCase.php build: Updating dependencies 2021-07-22 16:29:04 +00:00
MockCommentFormatter.php Don't refer directly to PHP dom extension classes; avoid nonstandard behavior 2021-07-30 18:15:40 -04:00
MockEventDispatcher.php Add PHPUnit integration tests for EventDispatcher 2021-07-24 05:28:04 +02:00
MockSubscriptionStore.php build: Updating dependencies 2021-07-22 16:29:04 +00:00
TestUtils.php Remove pointless uses of preserveWhiteSpace property 2021-08-09 23:45:48 +02:00
ThreadItemTest.php Deal with document body consistently 2021-08-03 15:12:55 +02:00