Import: Handle uploads with sha1 starting with 0 properly
[mediawiki.git] / tests / phpunit / includes / api / ApiUnblockTest.php
bloba374f0940b8fa8245451e4cb841786a1c04017b1
1 <?php
3 /**
4 * @group API
5 * @group Database
6 * @group medium
8 * @covers ApiUnblock
9 */
10 class ApiUnblockTest extends ApiTestCase {
11 protected function setUp() {
12 parent::setUp();
13 $this->doLogin();
16 /**
17 * @expectedException UsageException
19 public function testWithNoToken() {
20 $this->doApiRequest(
21 array(
22 'action' => 'unblock',
23 'user' => 'UTApiBlockee',
24 'reason' => 'Some reason',
26 null,
27 false,
28 self::$users['sysop']->getUser()