Move ResultWrapper subclasses to Rdbms
[mediawiki.git] / tests / phpunit / includes / api / ApiUnblockTest.php
blob971b63c3d4bc4d0b8d9c6152dec08923736aa875
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 ApiUsageException
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()