Go to file
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
api Fix some notification badge related issue 2013-10-02 11:25:05 -07:00
controller Remove deprecated call to Job::insert 2013-10-07 14:23:19 -07:00
db_patches Respect revision suppression within Echo 2013-06-18 11:00:50 -07:00
formatters EchoBasicFormatter::formatFragment returns a Message object 2013-10-20 02:32:30 -07:00
includes Update to latest revision of Echo schema 2013-10-25 05:40:05 +00:00
jobs Adding Echo jobs to deferred update along with master wait 2013-09-04 17:32:54 -07:00
maintenance Remove invalid maintenance scripts 2013-07-03 12:09:45 -07:00
model Add hooks for EchoEvent's 2013-09-30 13:21:56 -07:00
modules Remove "Talk:" prefix from "You have new messages" 2013-10-21 11:56:20 -07:00
special Replace wfMessage calls with $this->msg 2013-10-19 00:58:38 -07:00
tests Unbreak the unit tests 2013-11-01 08:13:11 +00:00
.gitignore Add .gitignore 2012-05-21 01:34:55 +01:00
.gitreview Add .gitreview file 2012-04-28 01:26:21 +10:00
.jshintrc Add .jshintrc 2013-04-18 00:36:08 +02:00
Echo.alias.php Localisation updates from http://translatewiki.net. 2013-10-09 19:35:55 +00:00
Echo.i18n.php Localisation updates from http://translatewiki.net. 2013-10-28 20:09:55 +00:00
Echo.php Merge "Remove class constant variable reference from Echo.php" 2013-10-29 05:10:07 +00:00
echo.sql Remove inappropiate executable flag on Echo.php and echo.sql 2013-07-18 17:19:05 +02:00
Hooks.php Actually run all the unit tests. 2013-11-01 04:31:12 +00:00
Notifier.php (bug 48821) Echo badge count always lags by 1 2013-05-25 19:44:09 -07:00