MediaWiki  master
ImportTest Class Reference

Test class for Import methods. More...

Inheritance diagram for ImportTest:
Collaboration diagram for ImportTest:

Public Member Functions

 getRedirectXML ()
 
 getSiteInfoXML ()
 
 getUnknownTagsXML ()
 
 testHandlePageContainsRedirect ( $xml, $redirectTitle)
 WikiImporter::handlePage getRedirectXML. More...
 
 testSiteInfoContainsNamespaces ( $xml, $namespaces)
 WikiImporter::handleSiteInfo getSiteInfoXML. More...
 
 testUnknownUserHandling ( $assign, $create)
 provideUnknownUserHandling WikiImporter::setUsernamePrefix ExternalUserNames::addPrefix ExternalUserNames::applyPrefix More...
 
 testUnknownXMLTags ( $xml, $text, $title)
 WikiImporter getUnknownTagsXML. More...
 

Static Public Member Functions

static provideUnknownUserHandling ()
 

Additional Inherited Members

- Protected Member Functions inherited from MediaWikiLangTestCase
 setUp ()
 

Detailed Description

Test class for Import methods.

Database

Author
Sebastian Br├╝ckner < sebas.nosp@m.tian.nosp@m..brue.nosp@m.ckne.nosp@m.r@stu.nosp@m.dent.nosp@m..hpi..nosp@m.uni-.nosp@m.potsd.nosp@m.am.d.nosp@m.e >

Definition at line 12 of file ImportTest.php.

Member Function Documentation

◆ getRedirectXML()

ImportTest::getRedirectXML ( )

Definition at line 101 of file ImportTest.php.

References format, null, page, redirect, revision, text, title, version, and wiki.

◆ getSiteInfoXML()

ImportTest::getSiteInfoXML ( )

Definition at line 184 of file ImportTest.php.

References key, namespaces, Special, and version.

◆ getUnknownTagsXML()

ImportTest::getUnknownTagsXML ( )

Definition at line 36 of file ImportTest.php.

References format, page, revision, text, title, version, and wiki.

◆ provideUnknownUserHandling()

static ImportTest::provideUnknownUserHandling ( )
static

Definition at line 321 of file ImportTest.php.

References false, and true.

◆ testHandlePageContainsRedirect()

ImportTest::testHandlePageContainsRedirect (   $xml,
  $redirectTitle 
)

WikiImporter::handlePage getRedirectXML.

Parameters
string$xml
string | null$redirectTitle

Definition at line 80 of file ImportTest.php.

References $source, $title, null, and use.

◆ testSiteInfoContainsNamespaces()

ImportTest::testSiteInfoContainsNamespaces (   $xml,
  $namespaces 
)

WikiImporter::handleSiteInfo getSiteInfoXML.

Parameters
string$xml
array | null$namespaces

Definition at line 166 of file ImportTest.php.

References $namespaces, $source, null, and use.

◆ testUnknownUserHandling()

ImportTest::testUnknownUserHandling (   $assign,
  $create 
)

◆ testUnknownXMLTags()

ImportTest::testUnknownXMLTags (   $xml,
  $text,
  $title 
)

WikiImporter getUnknownTagsXML.

Parameters
string$xml
string$text
string$title

Definition at line 21 of file ImportTest.php.

References $source, $title, WikiPage\factory(), and Title\newFromText().


The documentation for this class was generated from the following file: