summaryrefslogtreecommitdiff
path: root/www/wiki/tests/phpunit/includes/api/ApiUnblockTest.php
blob: d20de0dc2259bdcaaf17fa9dfb86bcd3320b2c2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php

/**
 * @group API
 * @group Database
 * @group medium
 *
 * @covers ApiUnblock
 */
class ApiUnblockTest extends ApiTestCase {
	/**
	 * @expectedException ApiUsageException
	 */
	public function testWithNoToken() {
		$this->doApiRequest(
			[
				'action' => 'unblock',
				'user' => 'UTApiBlockee',
				'reason' => 'Some reason',
			]
		);
	}
}