Index: trunk/phase3/tests/phpunit/includes/upload/UploadFromUrlTest.php |
— | — | @@ -76,7 +76,7 @@ |
77 | 77 | * @depends testClearQueue |
78 | 78 | */ |
79 | 79 | public function testSetupUrlDownload( $data ) { |
80 | | - $token = $this->user->editToken(); |
| 80 | + $token = $this->user->getEditToken(); |
81 | 81 | $exception = false; |
82 | 82 | |
83 | 83 | try { |
— | — | @@ -150,7 +150,7 @@ |
151 | 151 | * @depends testClearQueue |
152 | 152 | */ |
153 | 153 | public function testAsyncUpload( $data ) { |
154 | | - $token = $this->user->editToken(); |
| 154 | + $token = $this->user->getEditToken(); |
155 | 155 | |
156 | 156 | $this->user->addGroup( 'users' ); |
157 | 157 | |
— | — | @@ -169,7 +169,7 @@ |
170 | 170 | * @depends testClearQueue |
171 | 171 | */ |
172 | 172 | public function testAsyncUploadWarning( $data ) { |
173 | | - $token = $this->user->editToken(); |
| 173 | + $token = $this->user->getEditToken(); |
174 | 174 | |
175 | 175 | $this->user->addGroup( 'users' ); |
176 | 176 | |
— | — | @@ -200,7 +200,7 @@ |
201 | 201 | * @depends testClearQueue |
202 | 202 | */ |
203 | 203 | public function testSyncDownload( $data ) { |
204 | | - $token = $this->user->editToken(); |
| 204 | + $token = $this->user->getEditToken(); |
205 | 205 | |
206 | 206 | $job = Job::pop(); |
207 | 207 | $this->assertFalse( $job, 'Starting with an empty jobqueue' ); |
— | — | @@ -224,7 +224,7 @@ |
225 | 225 | } |
226 | 226 | |
227 | 227 | public function testLeaveMessage() { |
228 | | - $token = $this->user->user->editToken(); |
| 228 | + $token = $this->user->user->getEditToken(); |
229 | 229 | |
230 | 230 | $talk = $this->user->user->getTalkPage(); |
231 | 231 | if ( $talk->exists() ) { |