r90170 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r90169‎ | r90170 | r90171 >
Date:21:32, 15 June 2011
Author:platonides
Status:ok
Tags:
Comment:
Followup 90161 (which breaks the test). Need to hack around to avoid a reload from db.
Modified paths:
  • /trunk/phase3/tests/phpunit/includes/LanguageConverterTest.php (modified) (history)

Diff [purge]

Index: trunk/phase3/tests/phpunit/includes/LanguageConverterTest.php
@@ -61,8 +61,8 @@
6262 global $wgUser;
6363
6464 $wgUser = new User;
65 - $wgUser->setId( 1 );
66 - $wgUser->mFrom = 'defaults';
 65+ $wgUser->load(); // from 'defaults'
 66+ $wgUser->mId = 1;
6767 $wgUser->mDataLoaded = true;
6868 $wgUser->mOptionsLoaded = true;
6969 $wgUser->setOption( 'variant', 'tg-latn' );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r90161r87164 removed mDataLoaded and broke this test databaseless nature.platonides21:22, 15 June 2011

Status & tagging log