MediaWiki  1.23.13
ApiUnblockTest.php
Go to the documentation of this file.
1 <?php
2 
10 class ApiUnblockTest extends ApiTestCase {
11  protected function setUp() {
12  parent::setUp();
13  $this->doLogin();
14  }
15 
19  public function testWithNoToken( ) {
20  $this->doApiRequest(
21  array(
22  'action' => 'unblock',
23  'user' => 'UTApiBlockee',
24  'reason' => 'Some reason',
25  ),
26  null,
27  false,
28  self::$users['sysop']->user
29  );
30  }
31 }
php
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Definition: skin.txt:62
ApiUnblockTest\testWithNoToken
testWithNoToken()
@expectedException UsageException
Definition: ApiUnblockTest.php:19
array
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
ApiUnblockTest
@group API @group Database @group medium
Definition: ApiUnblockTest.php:10
user
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such and we might be restricted by PHP settings such as safe mode or open_basedir We cannot assume that the software even has read access anywhere useful Many shared hosts run all users web applications under the same user
Definition: distributors.txt:9
ApiTestCase
Definition: ApiTestCase.php:3
ApiUnblockTest\setUp
setUp()
Definition: ApiUnblockTest.php:11
ApiTestCase\doLogin
doLogin( $user='sysop')
Definition: ApiTestCase.php:141
ApiTestCase\doApiRequest
doApiRequest(array $params, array $session=null, $appendModule=false, User $user=null)
Does the API request and returns the result.
Definition: ApiTestCase.php:74