mediawiki-extensions-Echo/tests/phpunit
Daimona Eaytoy 9f44f98e81 Do not assume what user IDs might be in DiscussionParserTest
The test was assuming that the ID 1 belongs to a user other than the one
being created in the test. This is not necessarily the case, so make it
use an ID that is guaranteed to be different.

Also rename the test fail to avoid a PHPUnit deprecation of test class
name not matching file name.

Bug: T342428
Change-Id: Ied1869e380b023c1a726a5be610e1de1b68c78c0
2023-08-07 16:27:28 +02:00
..
Api Avoid DB access in non-Database tests 2023-08-04 02:31:24 +02:00
Cache Namespace Cache 2022-11-02 16:37:48 -06:00
Controller tests: Make PHPUnit data providers static 2023-05-20 20:36:33 +02:00
Formatters Replace deprecated Language::factory 2022-12-28 20:19:01 +01:00
integration Avoid DB access in non-Database tests 2023-08-04 02:31:24 +02:00
maintenance Avoid DB access in non-Database tests 2023-08-04 02:31:24 +02:00
Mapper Replace remaining usages of deprecated MWException 2023-06-09 02:23:08 +02:00
Model Mock DB services in NotificationTest::testNewFromRowWithException 2023-08-06 22:48:58 +02:00
revision_txt
unit Replace remaining usages of deprecated MWException 2023-06-09 02:23:08 +02:00
ContainmentSetTest.php Fix and disable some phpcs exclusions 2022-11-12 17:58:13 +00:00
EchoDiscussionParserTest.php Do not assume what user IDs might be in DiscussionParserTest 2023-08-07 16:27:28 +02:00
EchoHooksTest.php Convert 9 hooks subscribers to HookHandlers 2022-10-31 17:15:17 -06:00
EchoSummaryParserTest.php tests: Make PHPUnit data providers static 2023-05-20 20:36:33 +02:00
MWEchoDbFactoryTest.php Avoid DB access in non-Database tests 2023-08-04 02:31:24 +02:00
MWEchoNotifUserTest.php Avoid DB access in non-Database tests 2023-08-04 02:31:24 +02:00
NotificationsTest.php Namespace Model 2022-11-10 14:25:42 -07:00
NotificationStructureTest.php tests: Make PHPUnit data providers static 2023-05-20 20:36:33 +02:00
ServiceWiringTest.php Avoid DB access in non-Database tests 2023-08-04 02:31:24 +02:00
TalkPageFunctionalTest.php tests: Call editPage() with WikiPage when used for same page 2023-07-15 22:32:16 +02:00
ThankYouEditTest.php tests: Call editPage() with WikiPage when used for same page 2023-07-15 22:32:16 +02:00
UnreadWikisTest.php Use PHPUnit's shortcuts where it makes sense 2022-10-26 11:53:57 +02:00
UserLocatorTest.php tests: Make PHPUnit data providers static 2023-05-20 20:36:33 +02:00