Fix DatabaseSqlite IDEA warnings
[mediawiki.git] / tests / phpunit / includes / api / ApiUnblockTest.php
blobb63bf2ea313121b518ca38b03ba9f5777fdcf41c
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(
22 'action' => 'unblock',
23 'user' => 'UTApiBlockee',
24 'reason' => 'Some reason',
26 null,
27 false,
28 self::$users['sysop']->getUser()