Go to the documentation of this file.
23 if (
$user->getId() == 0 ) {
24 $user->addToDatabase();
25 $user->setPassword(
'UTApiBlockeePassword' );
27 $user->saveSettings();
44 if ( !
$user->getId() ) {
45 $this->markTestIncomplete(
"The user UTApiBlockee does not exist" );
48 if ( !array_key_exists(
'blocktoken', $tokens ) ) {
49 $this->markTestIncomplete(
"No block token found" );
54 'user' =>
'UTApiBlockee',
55 'reason' =>
'Some reason',
56 'token' => $tokens[
'blocktoken'] ),
null,
false, self::$users[
'sysop']->
user );
60 $this->assertTrue( !is_null( $block ),
'Block is valid' );
62 $this->assertEquals(
'UTApiBlockee', (
string)$block->getTarget() );
63 $this->assertEquals(
'Some reason', $block->mReason );
64 $this->assertEquals(
'infinity', $block->mExpiry );
75 'user' =>
'UTApiBlockee',
76 'reason' =>
'Some reason',
80 self::$users[
'sysop']->
user
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
testMakeNormalBlock()
This test has probably always been broken and use an invalid token Bug tracking brokenness is https:/...
getTokenList( $user, $session=null)
static newFromTarget( $specificTarget, $vagueTarget=null, $fromMaster=false)
Given a target and the target's type, get an existing Block object if possible.
static newFromName( $name, $validate='valid')
Static factory method for creation from username.
@group API @group Database @group medium
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
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
please add to it if you re going to add events to the MediaWiki code where normally authentication against an external auth plugin would be creating a account $user
doApiRequest(array $params, array $session=null, $appendModule=false, User $user=null)
Does the API request and returns the result.
testBlockingActionWithNoToken()
@expectedException UsageException @expectedExceptionMessage The token parameter must be set