Change-Id: I23982bfa0548c9ea3bdb432be7982f1563930715
41 files changed:
* @return string
*/
public function __toString() {
* @return string
*/
public function __toString() {
- if ( $this->mConn instanceof Mysqli ) {
+ if ( $this->mConn instanceof mysqli ) {
return (string)$this->mConn->thread_id;
} else {
// mConn might be false or something.
return (string)$this->mConn->thread_id;
} else {
// mConn might be false or something.
$this->mClass .= 'mw-searchInput';
// return the HTMLTextField html
$this->mClass .= 'mw-searchInput';
// return the HTMLTextField html
- return parent::getInputHtml( $value );
+ return parent::getInputHTML( $value );
}
protected function getDataAttribs() {
}
protected function getDataAttribs() {
$this->mClass .= ' mw-autocomplete-user';
// return parent html
$this->mClass .= ' mw-autocomplete-user';
// return parent html
- return parent::getInputHtml( $value );
+ return parent::getInputHTML( $value );
$normalFields = [ 'sitename', 'base', 'generator', 'case' ];
while ( $this->reader->read() ) {
$normalFields = [ 'sitename', 'base', 'generator', 'case' ];
while ( $this->reader->read() ) {
- if ( $this->reader->nodeType == XmlReader::END_ELEMENT &&
+ if ( $this->reader->nodeType == XMLReader::END_ELEMENT &&
$this->reader->localName == 'siteinfo' ) {
break;
}
$this->reader->localName == 'siteinfo' ) {
break;
}
public function execute() {
// Pop up a dialog box, to make it difficult for the user to forget
// to download the file
public function execute() {
// Pop up a dialog box, to make it difficult for the user to forget
// to download the file
- $lsUrl = $this->getVar( 'wgServer' ) . $this->parent->getURL( [ 'localsettings' => 1 ] );
+ $lsUrl = $this->getVar( 'wgServer' ) . $this->parent->getUrl( [ 'localsettings' => 1 ] );
if ( isset( $_SERVER['HTTP_USER_AGENT'] ) &&
strpos( $_SERVER['HTTP_USER_AGENT'], 'MSIE' ) !== false
) {
// JS appears to be the only method that works consistently with IE7+
if ( isset( $_SERVER['HTTP_USER_AGENT'] ) &&
strpos( $_SERVER['HTTP_USER_AGENT'], 'MSIE' ) !== false
) {
// JS appears to be the only method that works consistently with IE7+
- $this->addHtml( "\n<script>jQuery( function () { location.href = " .
+ $this->addHTML( "\n<script>jQuery( function () { location.href = " .
Xml::encodeJsVar( $lsUrl ) . "; } );</script>\n" );
} else {
$this->parent->request->response()->header( "Refresh: 0;url=$lsUrl" );
Xml::encodeJsVar( $lsUrl ) . "; } );</script>\n" );
} else {
$this->parent->request->response()->header( "Refresh: 0;url=$lsUrl" );
if ( $step == 'extension-tables' ) {
$this->endLiveBox();
}
if ( $step == 'extension-tables' ) {
$this->endLiveBox();
}
- $msg = $status->isOk() ? 'config-install-step-done' : 'config-install-step-failed';
+ $msg = $status->isOK() ? 'config-install-step-done' : 'config-install-step-failed';
$html = wfMessage( 'word-separator' )->escaped() . wfMessage( $msg )->escaped();
$html = wfMessage( 'word-separator' )->escaped() . wfMessage( $msg )->escaped();
- if ( !$status->isOk() ) {
+ if ( !$status->isOK() ) {
$html = "<span class=\"error\">$html</span>";
}
$this->addHTML( $html . "</li>\n" );
$html = "<span class=\"error\">$html</span>";
}
$this->addHTML( $html . "</li>\n" );
'label' => '', // @todo Needs a label?
'attribs' => [ 'readonly' => 'readonly', 'class' => 'enabledByOther' ]
] ) .
'label' => '', // @todo Needs a label?
'attribs' => [ 'readonly' => 'readonly', 'class' => 'enabledByOther' ]
] ) .
- $this->getFieldSetStart( 'config-admin-box' ) .
+ $this->getFieldsetStart( 'config-admin-box' ) .
$this->parent->getTextBox( [
'var' => '_AdminName',
'label' => 'config-admin-name',
$this->parent->getTextBox( [
'var' => '_AdminName',
'label' => 'config-admin-name',
'label' => 'config-subscribe',
'help' => $this->parent->getHelpBox( 'config-subscribe-help' )
] ) .
'label' => 'config-subscribe',
'help' => $this->parent->getHelpBox( 'config-subscribe-help' )
] ) .
- $this->getFieldSetEnd() .
+ $this->getFieldsetEnd() .
$this->parent->getInfoBox( wfMessage( 'config-almost-done' )->text() ) .
// getRadioSet() builds a set of labeled radio buttons.
// For grep: The following messages are used as the item labels:
$this->parent->getInfoBox( wfMessage( 'config-almost-done' )->text() ) .
// getRadioSet() builds a set of labeled radio buttons.
// For grep: The following messages are used as the item labels:
$this->parent->getHelpBox( 'config-license-help' ) .
# E-mail
$this->parent->getHelpBox( 'config-license-help' ) .
# E-mail
- $this->getFieldSetStart( 'config-email-settings' ) .
+ $this->getFieldsetStart( 'config-email-settings' ) .
$this->parent->getCheckBox( [
'var' => 'wgEnableEmail',
'label' => 'config-enable-email',
$this->parent->getCheckBox( [
'var' => 'wgEnableEmail',
'label' => 'config-enable-email',
] ) .
$this->parent->getHelpBox( 'config-email-auth-help' ) .
"</div>" .
] ) .
$this->parent->getHelpBox( 'config-email-auth-help' ) .
"</div>" .
- $this->getFieldSetEnd()
+ $this->getFieldsetEnd()
);
$skins = $this->parent->findExtensions( 'skins' );
);
$skins = $this->parent->findExtensions( 'skins' );
- $skinHtml = $this->getFieldSetStart( 'config-skins' );
+ $skinHtml = $this->getFieldsetStart( 'config-skins' );
$skinNames = array_map( 'strtolower', $skins );
$chosenSkinName = $this->getVar( 'wgDefaultSkin', $this->parent->getDefaultSkin( $skinNames ) );
$skinNames = array_map( 'strtolower', $skins );
$chosenSkinName = $this->getVar( 'wgDefaultSkin', $this->parent->getDefaultSkin( $skinNames ) );
foreach ( array_chunk( $titles, $cSize ) as $titleBatch ) {
$pages = [];
foreach ( $titleBatch as $tl ) {
foreach ( array_chunk( $titles, $cSize ) as $titleBatch ) {
$pages = [];
foreach ( $titleBatch as $tl ) {
- $pages[$tl->getArticleId()] = [ $tl->getNamespace(), $tl->getDBKey() ];
+ $pages[$tl->getArticleID()] = [ $tl->getNamespace(), $tl->getDBkey() ];
}
$jobs[] = new $class(
$title, // maintain parent job title
}
$jobs[] = new $class(
$title, // maintain parent job title
return new TransformParameterError( $params );
}
return new TransformParameterError( $params );
}
- return new ThumbnailImage( $image, $image->getURL(), $image->getLocalRefPath(), $params );
+ return new ThumbnailImage( $image, $image->getUrl(), $image->getLocalRefPath(), $params );
// Treat the given time in the wiki timezone and get a UTC timestamp for the database lookup
$timestamp = MWTimestamp::getInstance( "${ymd}000000" );
// Treat the given time in the wiki timezone and get a UTC timestamp for the database lookup
$timestamp = MWTimestamp::getInstance( "${ymd}000000" );
- $timestamp->setTimeZone( $this->getConfig()->get( 'Localtimezone' ) );
+ $timestamp->setTimezone( $this->getConfig()->get( 'Localtimezone' ) );
$this->mOffset = $this->mDb->timestamp( $timestamp->getTimestamp() );
}
$this->mOffset = $this->mDb->timestamp( $timestamp->getTimestamp() );
}
global $wgRequest;
// idhash seem to mean 'page id' + 'rendering hash' (r3710)
global $wgRequest;
// idhash seem to mean 'page id' + 'rendering hash' (r3710)
- $pageid = $article->getID();
+ $pageid = $article->getId();
$renderkey = (int)( $wgRequest->getVal( 'action' ) == 'render' );
$key = wfMemcKey( 'pcache', 'idhash', "{$pageid}-{$renderkey}!{$hash}" );
$renderkey = (int)( $wgRequest->getVal( 'action' ) == 'render' );
$key = wfMemcKey( 'pcache', 'idhash', "{$pageid}-{$renderkey}!{$hash}" );
* @return mixed|string
*/
protected function getOptionsKey( $article ) {
* @return mixed|string
*/
protected function getOptionsKey( $article ) {
- $pageid = $article->getID();
+ $pageid = $article->getId();
return wfMemcKey( 'pcache', 'idoptions', "{$pageid}" );
}
return wfMemcKey( 'pcache', 'idoptions', "{$pageid}" );
}
- $id = $userObj->getID();
+ $id = $userObj->getId();
if ( $this->opts['contribs'] != 'newbie' ) {
$target = $nt->getText();
if ( $this->opts['contribs'] != 'newbie' ) {
$target = $nt->getText();
}
$html[] = $this->closeList();
}
$html[] = $this->closeList();
- $this->getOutput()->addHtml( implode( "\n", $html ) );
+ $this->getOutput()->addHTML( implode( "\n", $html ) );
}
public function getQueryInfo() {
}
public function getQueryInfo() {
// Future version might include a list of the first 5 duplicates
// perhaps separated by an "↔".
$image1 = Title::makeTitle( $result->namespace, $result->title );
// Future version might include a list of the first 5 duplicates
// perhaps separated by an "↔".
$image1 = Title::makeTitle( $result->namespace, $result->title );
- $dupeSearch = SpecialPage::getTitleFor( 'FileDuplicateSearch', $image1->getDBKey() );
+ $dupeSearch = SpecialPage::getTitleFor( 'FileDuplicateSearch', $image1->getDBkey() );
$msg = $this->msg( 'listduplicatedfiles-entry' )
->params( $image1->getText() )
->numParams( $result->value - 1 )
$msg = $this->msg( 'listduplicatedfiles-entry' )
->params( $image1->getText() )
->numParams( $result->value - 1 )
- ->params( $dupeSearch->getPrefixedDBKey() );
+ ->params( $dupeSearch->getPrefixedDBkey() );
$outputPage = $this->getOutput();
$title = Title::newFromText( $target );
if ( !$title || $title->isExternal() ) {
$outputPage = $this->getOutput();
$title = Title::newFromText( $target );
if ( !$title || $title->isExternal() ) {
- $outputPage->addHtml( '<div class="errorbox">' . $this->msg( 'allpagesbadtitle' )
+ $outputPage->addHTML( '<div class="errorbox">' . $this->msg( 'allpagesbadtitle' )
->parse() . '</div>' );
return false;
->parse() . '</div>' );
return false;
return null;
}
// Default behavior: Use the direct link to the file.
return null;
}
// Default behavior: Use the direct link to the file.
- $url = $file->getURL();
+ $url = $file->getUrl();
$request = $this->getRequest();
$width = $request->getInt( 'width', -1 );
$height = $request->getInt( 'height', -1 );
$request = $this->getRequest();
$width = $request->getInt( 'width', -1 );
$height = $request->getInt( 'height', -1 );
// ... and we can
if ( $mto && !$mto->isError() ) {
// ... change the URL to point to a thumbnail.
// ... and we can
if ( $mto && !$mto->isError() ) {
// ... change the URL to point to a thumbnail.
$repo = RepoGroup::singleton()->getLocalRepo();
$tempRepo = $repo->getTempRepo();
$repo = RepoGroup::singleton()->getLocalRepo();
$tempRepo = $repo->getTempRepo();
- $dbr = $repo->getSlaveDb();
+ $dbr = $repo->getSlaveDB();
// how far back should this look for files to delete?
$cutoff = time() - $wgUploadStashMaxAge;
// how far back should this look for files to delete?
$cutoff = time() - $wgUploadStashMaxAge;
public function execute() {
$this->initParser();
public function execute() {
$this->initParser();
- print $this->render( $this->WikiText() );
+ print $this->render( $this->Wikitext() );
}
public function execute() {
}
public function execute() {
- $posFile = $this->getOption( 'p', 'searchUpdate.' . wfWikiId() . '.pos' );
+ $posFile = $this->getOption( 'p', 'searchUpdate.' . wfWikiID() . '.pos' );
$end = $this->getOption( 'e', wfTimestampNow() );
if ( $this->hasOption( 's' ) ) {
$start = $this->getOption( 's' );
$end = $this->getOption( 'e', wfTimestampNow() );
if ( $this->hasOption( 's' ) ) {
$start = $this->getOption( 's' );
function addDBData() {
$user = User::newFromName( 'UTBlockee' );
function addDBData() {
$user = User::newFromName( 'UTBlockee' );
- if ( $user->getID() == 0 ) {
+ if ( $user->getId() == 0 ) {
$user->addToDatabase();
TestUser::setPasswordForUser( $user, 'UTBlockeePassword' );
$user->addToDatabase();
TestUser::setPasswordForUser( $user, 'UTBlockeePassword' );
$blockOptions = [
'address' => 'UTBlockee',
$blockOptions = [
'address' => 'UTBlockee',
- 'user' => $user->getID(),
+ 'user' => $user->getId(),
'reason' => 'Parce que',
'expiry' => time() + 100500,
];
'reason' => 'Parce que',
'expiry' => time() + 100500,
];
* @covers FauxResponse::header
*/
public function testHeader() {
* @covers FauxResponse::header
*/
public function testHeader() {
- $this->assertEquals( null, $this->response->getheader( 'Location' ), 'Non-existing header' );
+ $this->assertEquals( null, $this->response->getHeader( 'Location' ), 'Non-existing header' );
$this->response->header( 'Location: http://localhost/' );
$this->assertEquals(
'http://localhost/',
$this->response->header( 'Location: http://localhost/' );
$this->assertEquals(
'http://localhost/',
- $this->response->getheader( 'Location' ),
+ $this->response->getHeader( 'Location' ),
'Set header'
);
$this->response->header( 'Location: http://127.0.0.1/' );
$this->assertEquals(
'http://127.0.0.1/',
'Set header'
);
$this->response->header( 'Location: http://127.0.0.1/' );
$this->assertEquals(
'http://127.0.0.1/',
- $this->response->getheader( 'Location' ),
+ $this->response->getHeader( 'Location' ),
'Same header'
);
$this->response->header( 'Location: http://127.0.0.2/', false );
$this->assertEquals(
'http://127.0.0.1/',
'Same header'
);
$this->response->header( 'Location: http://127.0.0.2/', false );
$this->assertEquals(
'http://127.0.0.1/',
- $this->response->getheader( 'Location' ),
+ $this->response->getHeader( 'Location' ),
'Same header with override disabled'
);
$this->response->header( 'Location: http://localhost/' );
$this->assertEquals(
'http://localhost/',
'Same header with override disabled'
);
$this->response->header( 'Location: http://localhost/' );
$this->assertEquals(
'http://localhost/',
- $this->response->getheader( 'LOCATION' ),
+ $this->response->getHeader( 'LOCATION' ),
'Get header case insensitive'
);
}
'Get header case insensitive'
);
}
$rev = new Revision( $props );
$rev = new Revision( $props );
- $dbw = wfgetDB( DB_MASTER );
+ $dbw = wfGetDB( DB_MASTER );
$rev->insertOn( $dbw );
return $rev;
$rev->insertOn( $dbw );
return $rev;
if ( !isset( $this->userUser ) || !( $this->userUser instanceof User ) ) {
$this->userUser = User::newFromName( $this->userName );
if ( !isset( $this->userUser ) || !( $this->userUser instanceof User ) ) {
$this->userUser = User::newFromName( $this->userName );
- if ( !$this->userUser->getID() ) {
+ if ( !$this->userUser->getId() ) {
$this->userUser = User::createNew( $this->userName, [
"email" => "test@example.com",
"real_name" => "Test User" ] );
$this->userUser = User::createNew( $this->userName, [
"email" => "test@example.com",
"real_name" => "Test User" ] );
}
$this->altUser = User::newFromName( $this->altUserName );
}
$this->altUser = User::newFromName( $this->altUserName );
- if ( !$this->altUser->getID() ) {
+ if ( !$this->altUser->getId() ) {
$this->altUser = User::createNew( $this->altUserName, [
"email" => "alttest@example.com",
"real_name" => "Test User Alt" ] );
$this->altUser = User::createNew( $this->altUserName, [
"email" => "alttest@example.com",
"real_name" => "Test User Alt" ] );
global $wgServer;
$user = self::$users['sysop'];
global $wgServer;
$user = self::$users['sysop'];
- $user->getUser()->logOut();
+ $user->getUser()->logout();
if ( !isset( $wgServer ) ) {
$this->markTestIncomplete( 'This test needs $wgServer to be set in LocalSettings.php' );
if ( !isset( $wgServer ) ) {
$this->markTestIncomplete( 'This test needs $wgServer to be set in LocalSettings.php' );
}
$user = self::$users['sysop'];
}
$user = self::$users['sysop'];
- $user->getUser()->logOut();
+ $user->getUser()->logout();
$ret = $this->doApiRequest( [
"action" => "login",
$ret = $this->doApiRequest( [
"action" => "login",
$this->password = $password;
$this->user = User::newFromName( $this->userName );
$this->password = $password;
$this->user = User::newFromName( $this->userName );
- if ( !$this->user->getID() ) {
+ if ( !$this->user->getId() ) {
$this->user = User::createNew( $this->userName, [
"email" => "test@example.com",
"real_name" => "Test User" ] );
$this->user = User::createNew( $this->userName, [
"email" => "test@example.com",
"real_name" => "Test User" ] );
$this->mergeMwGlobalArrayValue( 'wgDefaultUserOptions', [ 'gender' => 'unknown' ] );
$user = User::newFromName( 'UTMale' );
$this->mergeMwGlobalArrayValue( 'wgDefaultUserOptions', [ 'gender' => 'unknown' ] );
$user = User::newFromName( 'UTMale' );
- if ( $user->getID() == 0 ) {
+ if ( $user->getId() == 0 ) {
$user->addToDatabase();
TestUser::setPasswordForUser( $user, 'UTMalePassword' );
}
$user->addToDatabase();
TestUser::setPasswordForUser( $user, 'UTMalePassword' );
}
$user->saveSettings();
$user = User::newFromName( 'UTFemale' );
$user->saveSettings();
$user = User::newFromName( 'UTFemale' );
- if ( $user->getID() == 0 ) {
+ if ( $user->getId() == 0 ) {
$user->addToDatabase();
TestUser::setPasswordForUser( $user, 'UTFemalePassword' );
}
$user->addToDatabase();
TestUser::setPasswordForUser( $user, 'UTFemalePassword' );
}
$user->saveSettings();
$user = User::newFromName( 'UTDefaultGender' );
$user->saveSettings();
$user = User::newFromName( 'UTDefaultGender' );
- if ( $user->getID() == 0 ) {
+ if ( $user->getId() == 0 ) {
$user->addToDatabase();
TestUser::setPasswordForUser( $user, 'UTDefaultGenderPassword' );
}
$user->addToDatabase();
TestUser::setPasswordForUser( $user, 'UTDefaultGenderPassword' );
}
MediaWiki\Session\SessionManager::getGlobalSession()->getId(),
"Correct context session ID."
);
MediaWiki\Session\SessionManager::getGlobalSession()->getId(),
"Correct context session ID."
);
- if ( \MediaWiki\Session\PhpSessionHandler::isEnabled() ) {
+ if ( \MediaWiki\Session\PHPSessionHandler::isEnabled() ) {
$this->assertEquals( $sinfo['sessionId'], session_id(), "Correct context session ID." );
} else {
$this->assertEquals( $oldSessionId, session_id(), "Unchanged PHP session ID." );
$this->assertEquals( $sinfo['sessionId'], session_id(), "Correct context session ID." );
} else {
$this->assertEquals( $oldSessionId, session_id(), "Unchanged PHP session ID." );
*/
public function testGetHtml( array $expected, $content, $header ) {
$httpError = new HttpError( 500, $content, $header );
*/
public function testGetHtml( array $expected, $content, $header ) {
$httpError = new HttpError( 500, $content, $header );
- $errorHtml = $httpError->getHtml();
+ $errorHtml = $httpError->getHTML();
foreach ( $expected as $key => $html ) {
$this->assertContains( $html, $errorHtml, $key );
foreach ( $expected as $key => $html ) {
$this->assertContains( $html, $errorHtml, $key );
'name' => 'localtesting',
'lockManager' => LockManagerGroup::singleton()->get( 'fsLockManager' ),
'parallelize' => 'implicit',
'name' => 'localtesting',
'lockManager' => LockManagerGroup::singleton()->get( 'fsLockManager' ),
'parallelize' => 'implicit',
- 'wikiId' => wfWikiId() . wfRandomString(),
+ 'wikiId' => wfWikiID() . wfRandomString(),
'backends' => [
[
'name' => 'localmultitesting1',
'backends' => [
[
'name' => 'localmultitesting1',
'transformVia404' => false,
'backend' => new FSFileBackend( [
'name' => 'local-backend',
'transformVia404' => false,
'backend' => new FSFileBackend( [
'name' => 'local-backend',
- 'wikiId' => wfWikiId(),
+ 'wikiId' => wfWikiID(),
'containerPaths' => [
'cont1' => "/testdir/local-backend/tempimages/cont1",
'cont2' => "/testdir/local-backend/tempimages/cont2"
'containerPaths' => [
'cont1' => "/testdir/local-backend/tempimages/cont1",
'cont2' => "/testdir/local-backend/tempimages/cont2"
$this->backend = new FSFileBackend( [
'name' => 'localtesting',
$this->backend = new FSFileBackend( [
'name' => 'localtesting',
- 'wikiId' => wfWikiId(),
+ 'wikiId' => wfWikiID(),
'containerPaths' => $containers
] );
$this->repo = new FSRepo( $this->getRepoOptions() );
'containerPaths' => $containers
] );
$this->repo = new FSRepo( $this->getRepoOptions() );
'Password is shorter than minimal policy'
);
$this->assertTrue(
'Password is shorter than minimal policy'
);
$this->assertTrue(
'Password is shorter than minimal policy, not fatal'
);
}
'Password is shorter than minimal policy, not fatal'
);
}
'Password is shorter than minimum login policy'
);
$this->assertFalse(
'Password is shorter than minimum login policy'
);
$this->assertFalse(
'Password is shorter than minimum login policy, fatal'
);
}
'Password is shorter than minimum login policy, fatal'
);
}
$this->assertFalse( $statusLong->isGood(),
'Password is longer than maximal policy'
);
$this->assertFalse( $statusLong->isGood(),
'Password is longer than maximal policy'
);
- $this->assertFalse( $statusLong->isOk(),
+ $this->assertFalse( $statusLong->isOK(),
'Password is longer than maximal policy, fatal'
);
}
'Password is longer than maximal policy, fatal'
);
}
'user' // password
);
$this->assertFalse( $statusLong->isGood(), 'Password matches username' );
'user' // password
);
$this->assertFalse( $statusLong->isGood(), 'Password matches username' );
- $this->assertTrue( $statusLong->isOk(), 'Password matches username, not fatal' );
+ $this->assertTrue( $statusLong->isOK(), 'Password matches username, not fatal' );
$status = $upp->checkUserPassword( $user, $password );
$this->assertSame( $valid, $status->isGood(), $msg . ' - password valid' );
$status = $upp->checkUserPassword( $user, $password );
$this->assertSame( $valid, $status->isGood(), $msg . ' - password valid' );
- $this->assertSame( $ok, $status->isOk(), $msg . ' - can login' );
+ $this->assertSame( $ok, $status->isOK(), $msg . ' - can login' );
}
public function provideCheckUserPassword() {
}
public function provideCheckUserPassword() {
try {
$manager->getSessionForRequest( $request );
$this->fail( 'Expcected exception not thrown' );
try {
$manager->getSessionForRequest( $request );
$this->fail( 'Expcected exception not thrown' );
- } catch ( \OverFlowException $ex ) {
+ } catch ( \OverflowException $ex ) {
$this->assertStringStartsWith(
'Multiple sessions for this request tied for top priority: ',
$ex->getMessage()
$this->assertStringStartsWith(
'Multiple sessions for this request tied for top priority: ',
$ex->getMessage()
$this->assertTrue( $lookup->isAttached( $user1 ) );
$this->assertFalse( $lookup->isAttached( $user2 ) );
$this->assertTrue( $lookup->isAttached( $user1 ) );
$this->assertFalse( $lookup->isAttached( $user2 ) );
$this->assertTrue( $lookup->isAttached( $user1, $wiki ) );
$this->assertFalse( $lookup->isAttached( $user2, $wiki ) );
$this->assertTrue( $lookup->isAttached( $user1, $wiki ) );
$this->assertFalse( $lookup->isAttached( $user2, $wiki ) );
- $wiki = 'not-' . wfWikiId();
+ $wiki = 'not-' . wfWikiID();
$this->assertFalse( $lookup->isAttached( $user1, $wiki ) );
$this->assertFalse( $lookup->isAttached( $user2, $wiki ) );
}
$this->assertFalse( $lookup->isAttached( $user1, $wiki ) );
$this->assertFalse( $lookup->isAttached( $user2, $wiki ) );
}
$dumper = new TextPassDumper( [ "--stub=file:" . $nameStub,
"--output=file:" . $nameFull ] );
$dumper->reporting = false;
$dumper = new TextPassDumper( [ "--stub=file:" . $nameStub,
"--output=file:" . $nameFull ] );
$dumper->reporting = false;
- $dumper->setDb( $this->db );
+ $dumper->setDB( $this->db );
// Performing the dump
$dumper->dump( WikiExporter::FULL, WikiExporter::TEXT );
// Performing the dump
$dumper->dump( WikiExporter::FULL, WikiExporter::TEXT );
$dumper->loadWithArgv( [ '--full', '--quiet', '--output', 'file:' . $fname ] );
$dumper->startId = $this->pageId1;
$dumper->endId = $this->pageId4 + 1;
$dumper->loadWithArgv( [ '--full', '--quiet', '--output', 'file:' . $fname ] );
$dumper->startId = $this->pageId1;
$dumper->endId = $this->pageId4 + 1;
- $dumper->setDb( $this->db );
+ $dumper->setDB( $this->db );
// Performing the dump
$dumper->execute();
// Performing the dump
$dumper->execute();
* @covers SkinTemplate::addToSidebarPlain
*/
public function testExpandMessages() {
* @covers SkinTemplate::addToSidebarPlain
*/
public function testExpandMessages() {
[ 'Title' => [
[
'text' => 'Help',
[ 'Title' => [
[
'text' => 'Help',
'wgNoFollowDomainExceptions' => [],
'wgNoFollowNsExceptions' => [],
] );
'wgNoFollowDomainExceptions' => [],
'wgNoFollowNsExceptions' => [],
] );
[ 'Title' => [
# ** http://www.mediawiki.org/| Home
[
[ 'Title' => [
# ** http://www.mediawiki.org/| Home
[
RequestContext::getMain()->getConfig(),
] ) );
foreach ( $globals as $k => $v ) {
RequestContext::getMain()->getConfig(),
] ) );
foreach ( $globals as $k => $v ) {
- $this->setMWGlobals( "wg$k", $v );
+ $this->setMwGlobals( "wg$k", $v );
'transformVia404' => false,
'backend' => new FSFileBackend( [
'name' => 'local-backend',
'transformVia404' => false,
'backend' => new FSFileBackend( [
'name' => 'local-backend',
- 'wikiId' => wfWikiId(),
+ 'wikiId' => wfWikiID(),
'containerPaths' => [
'local-public' => "{$tmpDir}/test-repo/public",
'local-thumb' => "{$tmpDir}/test-repo/thumb",
'containerPaths' => [
'local-public' => "{$tmpDir}/test-repo/public",
'local-thumb' => "{$tmpDir}/test-repo/thumb",