r101127 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r101126‎ | r101127 | r101128 >
Date:12:18, 28 October 2011
Author:ialex
Status:ok
Tags:
Comment:
Pass the (correct) session doApiRequest()
Modified paths:
  • /trunk/phase3/tests/phpunit/includes/api/ApiTest.php (modified) (history)

Diff [purge]

Index: trunk/phase3/tests/phpunit/includes/api/ApiTest.php
@@ -96,7 +96,7 @@
9797 "lgtoken" => $token,
9898 "lgname" => $user->username,
9999 "lgpassword" => "badnowayinhell",
100 - )
 100+ ), $ret[2]
101101 );
102102
103103 $result = $ret[0];
@@ -137,7 +137,7 @@
138138 "lgtoken" => $token,
139139 "lgname" => $user->username,
140140 "lgpassword" => $user->password,
141 - )
 141+ ), $ret[2]
142142 );
143143
144144 $result = $ret[0];
@@ -230,7 +230,7 @@
231231 'action' => 'login',
232232 "lgtoken" => $token,
233233 "lgname" => $sysopUser->username,
234 - "lgpassword" => $sysopUser->password ), $data );
 234+ "lgpassword" => $sysopUser->password ), $data[2] );
235235
236236 $this->assertArrayHasKey( "login", $data[0] );
237237 $this->assertArrayHasKey( "result", $data[0]['login'] );

Status & tagging log