wiki.techinc.nl/tests/phpunit/includes/api/ApiUnblockTest.php
Aryeh Gregor ed40e8ec53 Get rid of ApiTestCase::doLogin
The function is entirely unnecessary.

Change-Id: I805520e5355119e872e602d0bfc93be26f227128
2018-04-11 20:17:52 +03:00

23 lines
352 B
PHP

<?php
/**
* @group API
* @group Database
* @group medium
*
* @covers ApiUnblock
*/
class ApiUnblockTest extends ApiTestCase {
/**
* @expectedException ApiUsageException
*/
public function testWithNoToken() {
$this->doApiRequest(
[
'action' => 'unblock',
'user' => 'UTApiBlockee',
'reason' => 'Some reason',
]
);
}
}