r108336 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r108335‎ | r108336 | r108337 >
Date:23:26, 7 January 2012
Author:platonides
Status:ok
Tags:
Comment:
Calls to editToken() that r103294 missed.
Modified paths:
  • /trunk/phase3/tests/phpunit/includes/upload/UploadFromUrlTest.php (modified) (history)

Diff [purge]

Index: trunk/phase3/tests/phpunit/includes/upload/UploadFromUrlTest.php
@@ -76,7 +76,7 @@
7777 * @depends testClearQueue
7878 */
7979 public function testSetupUrlDownload( $data ) {
80 - $token = $this->user->editToken();
 80+ $token = $this->user->getEditToken();
8181 $exception = false;
8282
8383 try {
@@ -150,7 +150,7 @@
151151 * @depends testClearQueue
152152 */
153153 public function testAsyncUpload( $data ) {
154 - $token = $this->user->editToken();
 154+ $token = $this->user->getEditToken();
155155
156156 $this->user->addGroup( 'users' );
157157
@@ -169,7 +169,7 @@
170170 * @depends testClearQueue
171171 */
172172 public function testAsyncUploadWarning( $data ) {
173 - $token = $this->user->editToken();
 173+ $token = $this->user->getEditToken();
174174
175175 $this->user->addGroup( 'users' );
176176
@@ -200,7 +200,7 @@
201201 * @depends testClearQueue
202202 */
203203 public function testSyncDownload( $data ) {
204 - $token = $this->user->editToken();
 204+ $token = $this->user->getEditToken();
205205
206206 $job = Job::pop();
207207 $this->assertFalse( $job, 'Starting with an empty jobqueue' );
@@ -224,7 +224,7 @@
225225 }
226226
227227 public function testLeaveMessage() {
228 - $token = $this->user->user->editToken();
 228+ $token = $this->user->user->getEditToken();
229229
230230 $talk = $this->user->user->getTalkPage();
231231 if ( $talk->exists() ) {

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r103294Following r100264, update usages in corejohnduhart04:37, 16 November 2011

Status & tagging log