wiki.techinc.nl/tests/phpunit/includes/api/ApiUnblockTest.php
Vivek Ghaisas 9f5b6f5aeb Fix whitespace issues around parentheses
Fix issues found by MediaWiki.WhiteSpace.SpaceyParenthesis sniff.

Bug: T102617
Change-Id: Iec7f71e64081659fba373ec20d9d2006306a98f4
2015-06-16 22:14:02 +03:00

31 lines
478 B
PHP

<?php
/**
* @group API
* @group Database
* @group medium
*
* @covers ApiUnblock
*/
class ApiUnblockTest extends ApiTestCase {
protected function setUp() {
parent::setUp();
$this->doLogin();
}
/**
* @expectedException UsageException
*/
public function testWithNoToken() {
$this->doApiRequest(
array(
'action' => 'unblock',
'user' => 'UTApiBlockee',
'reason' => 'Some reason',
),
null,
false,
self::$users['sysop']->user
);
}
}