MediaWiki
REL1_22
|
Tests for page dumps of BackupDumper. More...
Public Member Functions | |
addDBData () | |
Stub. | |
testCurrentStubGzip () | |
testCurrentStubPlain () | |
testFullStubPlain () | |
testFullTextPlain () | |
testXmlDumpsBackupUseCase () | |
Public Attributes | |
$pageId2 | |
$pageId3 | |
$pageId4 | |
$pageId5 | |
$pageTitle2 | |
$pageTitle3 | |
$pageTitle4 | |
$pageTitle5 | |
$revId2_2 | |
$revId2_4 | |
$revId3_2 | |
$talk_namespace | |
$textId1_1 | |
$textId2_1 | |
$textId2_2 | |
$textId2_3 | |
$textId2_4 | |
$textId3_1 | |
$textId3_2 | |
$textId4_1 | |
Protected Member Functions | |
setUp () | |
Default set up function. | |
Private Attributes | |
$namespace | |
$pageId1 | |
$pageTitle1 | |
$revId1_1 | |
$revId2_1 | |
$revId2_3 | |
$revId3_1 | |
$revId4_1 |
Tests for page dumps of BackupDumper.
Database Dump
Definition at line 8 of file backup_PageTest.php.
Stub.
If a test needs to add additional data to the database, it should implement this method and do so
Reimplemented from MediaWikiTestCase.
Definition at line 21 of file backup_PageTest.php.
References DumpTestCase\addRevision(), array(), WikiPage\factory(), Language\factory(), list, Title\newFromText(), and MediaWikiTestCase\setMwGlobals().
BackupDumperPageTest::setUp | ( | ) | [protected] |
Default set up function.
Clears $wgUser, and reports errors from addDBData to PHPUnit
Reimplemented from DumpTestCase.
Definition at line 84 of file backup_PageTest.php.
References array().
Definition at line 232 of file backup_PageTest.php.
References $dumper, $fname, array(), DumpTestCase\assertDumpEnd(), DumpTestCase\assertDumpStart(), DumpTestCase\assertPageEnd(), DumpTestCase\assertPageStart(), DumpTestCase\assertRevision(), MediaWikiTestCase\checkHasGzip(), WikiExporter\CURRENT, MediaWikiTestCase\getNewTempFile(), DumpTestCase\gunzip(), and WikiExporter\STUB.
Definition at line 193 of file backup_PageTest.php.
References $dumper, $fname, array(), DumpTestCase\assertDumpEnd(), DumpTestCase\assertDumpStart(), DumpTestCase\assertPageEnd(), DumpTestCase\assertPageStart(), DumpTestCase\assertRevision(), WikiExporter\CURRENT, MediaWikiTestCase\getNewTempFile(), and WikiExporter\STUB.
Definition at line 148 of file backup_PageTest.php.
References $dumper, $fname, array(), DumpTestCase\assertDumpEnd(), DumpTestCase\assertDumpStart(), DumpTestCase\assertPageEnd(), DumpTestCase\assertPageStart(), DumpTestCase\assertRevision(), WikiExporter\FULL, MediaWikiTestCase\getNewTempFile(), and WikiExporter\STUB.
Definition at line 97 of file backup_PageTest.php.
References $dumper, $fname, array(), DumpTestCase\assertDumpEnd(), DumpTestCase\assertDumpStart(), DumpTestCase\assertPageEnd(), DumpTestCase\assertPageStart(), DumpTestCase\assertRevision(), WikiExporter\FULL, MediaWikiTestCase\getNewTempFile(), and WikiExporter\TEXT.
Definition at line 275 of file backup_PageTest.php.
References $dumper, array(), DumpTestCase\assertDumpEnd(), DumpTestCase\assertDumpStart(), DumpTestCase\assertPageEnd(), DumpTestCase\assertPageStart(), DumpTestCase\assertRevision(), MediaWikiTestCase\checkHasGzip(), DumpTestCase\expectETAOutput(), fail, WikiExporter\FULL, MediaWikiTestCase\getNewTempFile(), DumpTestCase\gunzip(), and WikiExporter\STUB.
BackupDumperPageTest::$namespace [private] |
Definition at line 19 of file backup_PageTest.php.
BackupDumperPageTest::$pageId1 [private] |
Definition at line 12 of file backup_PageTest.php.
BackupDumperPageTest::$pageId2 |
Definition at line 12 of file backup_PageTest.php.
BackupDumperPageTest::$pageId3 |
Definition at line 12 of file backup_PageTest.php.
BackupDumperPageTest::$pageId4 |
Definition at line 12 of file backup_PageTest.php.
BackupDumperPageTest::$pageId5 |
Definition at line 12 of file backup_PageTest.php.
BackupDumperPageTest::$pageTitle1 [private] |
Definition at line 13 of file backup_PageTest.php.
BackupDumperPageTest::$pageTitle2 |
Definition at line 13 of file backup_PageTest.php.
BackupDumperPageTest::$pageTitle3 |
Definition at line 13 of file backup_PageTest.php.
BackupDumperPageTest::$pageTitle4 |
Definition at line 13 of file backup_PageTest.php.
BackupDumperPageTest::$pageTitle5 |
Definition at line 13 of file backup_PageTest.php.
BackupDumperPageTest::$revId1_1 [private] |
Definition at line 14 of file backup_PageTest.php.
BackupDumperPageTest::$revId2_1 [private] |
Definition at line 15 of file backup_PageTest.php.
BackupDumperPageTest::$revId2_2 |
Definition at line 15 of file backup_PageTest.php.
BackupDumperPageTest::$revId2_3 [private] |
Definition at line 16 of file backup_PageTest.php.
BackupDumperPageTest::$revId2_4 |
Definition at line 16 of file backup_PageTest.php.
BackupDumperPageTest::$revId3_1 [private] |
Definition at line 17 of file backup_PageTest.php.
BackupDumperPageTest::$revId3_2 |
Definition at line 17 of file backup_PageTest.php.
BackupDumperPageTest::$revId4_1 [private] |
Definition at line 18 of file backup_PageTest.php.
BackupDumperPageTest::$talk_namespace |
Definition at line 19 of file backup_PageTest.php.
BackupDumperPageTest::$textId1_1 |
Definition at line 14 of file backup_PageTest.php.
BackupDumperPageTest::$textId2_1 |
Definition at line 15 of file backup_PageTest.php.
BackupDumperPageTest::$textId2_2 |
Definition at line 15 of file backup_PageTest.php.
BackupDumperPageTest::$textId2_3 |
Definition at line 16 of file backup_PageTest.php.
BackupDumperPageTest::$textId2_4 |
Definition at line 16 of file backup_PageTest.php.
BackupDumperPageTest::$textId3_1 |
Definition at line 17 of file backup_PageTest.php.
BackupDumperPageTest::$textId3_2 |
Definition at line 17 of file backup_PageTest.php.
BackupDumperPageTest::$textId4_1 |
Definition at line 18 of file backup_PageTest.php.