Merge "DatabaseMssql: Don't duplicate body of makeList()"
[mediawiki.git] / tests / phpunit / includes / api / ApiUnblockTest.php
blob2c2370a8eb718b5492dc3b7213e044b387d66bab
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']->user