r62866 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r62865‎ | r62866 | r62867 >
Date:06:55, 23 February 2010
Author:mah
Status:ok
Tags:
Comment:
set password the correct way for apitests
Modified paths:
  • /trunk/phase3/maintenance/tests/ApiSetup.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/tests/ApiSetup.php
@@ -27,12 +27,10 @@
2828 self::$user = User::newFromName(self::$userName);
2929 if ( !self::$user->getID() ) {
3030 self::$user = User::createNew(self::$userName, array(
31 - "password" => self::$passWord,
3231 "email" => "test@example.com",
3332 "real_name" => "Test User"));
34 - } else {
35 - self::$user->setPassword(self::$passWord);
3633 }
 34+ self::$user->setPassword(self::$passWord);
3735 self::$user->saveSettings();
3836 }
3937 }

Status & tagging log