MediaWiki
1.33.0
|
Public Member Functions | |
assertSitesEqual ( $expected, $actual, $message='') | |
provideImportFromXML () | |
testImportFromFile () | |
testImportFromXML ( $xml, array $expectedSites, $errorCount=0) | |
provideImportFromXML More... | |
testImportFromXML_malformed () | |
Private Member Functions | |
getSerializedSiteList ( $sites) | |
newSiteImporter (array $expectedSites, $errorCount) | |
Definition at line 30 of file SiteImporterTest.php.
SiteImporterTest::assertSitesEqual | ( | $expected, | |
$actual, | |||
$message = '' |
|||
) |
Definition at line 58 of file SiteImporterTest.php.
References getSerializedSiteList().
Referenced by newSiteImporter().
|
private |
Site[] | $sites |
Definition at line 188 of file SiteImporterTest.php.
References $data, $serialized, as, and unserialize().
Referenced by assertSitesEqual().
|
private |
Definition at line 35 of file SiteImporterTest.php.
References any, assertSitesEqual(), class, and use.
Referenced by testImportFromFile(), and testImportFromXML().
SiteImporterTest::provideImportFromXML | ( | ) |
Definition at line 66 of file SiteImporterTest.php.
References Site\ID_EQUIVALENT, Site\ID_INTERWIKI, Site\newForType(), Site\PATH_LINK, MediaWikiSite\PATH_PAGE, Site\TYPE_MEDIAWIKI, and Site\TYPE_UNKNOWN.
SiteImporterTest::testImportFromFile | ( | ) |
Definition at line 157 of file SiteImporterTest.php.
References $file, Site\ID_EQUIVALENT, Site\ID_INTERWIKI, Site\newForType(), newSiteImporter(), Site\PATH_LINK, MediaWikiSite\PATH_PAGE, Site\TYPE_MEDIAWIKI, and Site\TYPE_UNKNOWN.
SiteImporterTest::testImportFromXML | ( | $xml, | |
array | $expectedSites, | ||
$errorCount = 0 |
|||
) |
provideImportFromXML
Definition at line 144 of file SiteImporterTest.php.
References newSiteImporter().
SiteImporterTest::testImportFromXML_malformed | ( | ) |
Definition at line 149 of file SiteImporterTest.php.
References class.