mediawiki-extensions-Echo/tests
Kunal Mehta 61f1754d14 Unbreak the unit tests
Not all installations will have a user with the id of 2,
like jenkins. At some point User::getOption is called, which
requires loading the user from the database, except it
doesn't exist. At which point the user id is reset to 0,
so it becomes an anonymous user, breaking the test.

Since the MediaWiki test runner automatically
creates a test user, we can safely assume that there is
a user with the id 1.

The other failure was due to that $wgUser may not
always be 127.0.0.1. The test now directly just
calls $wgUser to avoid issues if another test has
altered the global state.

Change-Id: Iacf904d04f1ff5aaf584cb98c3083ef6d7d89cea
2013-11-01 08:13:11 +00:00
..
BatchRowUpdateTest.php Database updates for respecting oversight within Echo 2013-06-10 14:52:18 -07:00
ContainmentSetTest.php Notification agent whitelist and blacklist 2013-05-20 16:36:28 -07:00
DiffParserTest.php Better detection of multiple changes in a document 2013-05-24 16:37:00 -07:00
DiscussionParserTest.php user talk and mention notification improvement 2013-07-29 18:07:43 -07:00
EmailFormatterTest.php Unbreak the unit tests 2013-11-01 08:13:11 +00:00
NotificationFormatterTest.php Unbreak the unit tests 2013-11-01 08:13:11 +00:00
NotifUserTest.php Add HTML email support to Echo notification 2013-07-23 13:20:33 +02:00
SupressionMaintenanceTest.php Database updates for respecting oversight within Echo 2013-06-10 14:52:18 -07:00
TalkPageFunctionalTest.php Link directly to the edited section from edit-user-talk events 2013-05-16 17:13:16 -07:00