X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fmaintenance%2FbackupTextPassTest.php;h=6cdba85d894b32b6cc3f6a1c00d4aab7b351ed3d;hb=d04b8ceea67660485245beaa4aca1625cf2170aa;hp=0dade60774cb5eaa0a240e8fe7d30f3b9868927a;hpb=3f9d7a7eb32daa5cc1055c5fda3a9349aed301a8;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/maintenance/backupTextPassTest.php b/tests/phpunit/maintenance/backupTextPassTest.php index 0dade60774..6cdba85d89 100644 --- a/tests/phpunit/maintenance/backupTextPassTest.php +++ b/tests/phpunit/maintenance/backupTextPassTest.php @@ -1,7 +1,6 @@ assertPageStart( $this->pageId2, NS_MAIN, "BackupDumperTestP2" ); $this->assertRevision( $this->revId2_1, "BackupDumperTestP2Summary1", $this->textId2_1, false, "jprywrymfhysqllua29tj3sc7z39dl2", - "BackupDumperTestP2Text1" ); + "BackupDumperTestP2Text1", $this->revId2_2 ); $this->assertRevision( $this->revId2_2, "BackupDumperTestP2Summary2", $this->textId2_2, false, "b7vj5ks32po5m1z1t1br4o7scdwwy95", - "BackupDumperTestP2Text2" ); + "BackupDumperTestP2Text2", $this->revId2_3 ); $this->assertRevision( $this->revId2_3, "BackupDumperTestP2Summary3", $this->textId2_3, false, "jfunqmh1ssfb8rs43r19w98k28gg56r", - "BackupDumperTestP2Text3" ); + "BackupDumperTestP2Text3", $this->revId2_4 ); $this->assertRevision( $this->revId2_4, "BackupDumperTestP2Summary4 extra", $this->textId2_4, false, "6o1ciaxa6pybnqprmungwofc4lv00wv", "BackupDumperTestP2Text4 some additional Text" ); @@ -179,15 +178,15 @@ class TextPassDumperTest extends DumpTestCase { $this->assertPageStart( $this->pageId2, NS_MAIN, "BackupDumperTestP2" ); $this->assertRevision( $this->revId2_1, "BackupDumperTestP2Summary1", $this->textId2_1, false, "jprywrymfhysqllua29tj3sc7z39dl2", - "BackupDumperTestP2Text1" ); + "BackupDumperTestP2Text1", $this->revId2_2 ); $this->assertRevision( $this->revId2_2, "BackupDumperTestP2Summary2", $this->textId2_2, false, "b7vj5ks32po5m1z1t1br4o7scdwwy95", - "BackupDumperTestP2Text2" ); + "BackupDumperTestP2Text2", $this->revId2_3 ); // Prefetch kicks in. This is still the SHA-1 of the original text, // But the actual text (with different SHA-1) comes from prefetch. $this->assertRevision( $this->revId2_3, "BackupDumperTestP2Summary3", $this->textId2_3, false, "jfunqmh1ssfb8rs43r19w98k28gg56r", - "Prefetch_________2Text3" ); + "Prefetch_________2Text3", $this->revId2_4 ); $this->assertRevision( $this->revId2_4, "BackupDumperTestP2Summary4 extra", $this->textId2_4, false, "6o1ciaxa6pybnqprmungwofc4lv00wv", "BackupDumperTestP2Text4 some additional Text" ); @@ -331,13 +330,13 @@ class TextPassDumperTest extends DumpTestCase { "BackupDumperTestP2" ); $this->assertRevision( $this->revId2_1, "BackupDumperTestP2Summary1", $this->textId2_1, false, "jprywrymfhysqllua29tj3sc7z39dl2", - "BackupDumperTestP2Text1" ); + "BackupDumperTestP2Text1", $this->revId2_2 ); $this->assertRevision( $this->revId2_2, "BackupDumperTestP2Summary2", $this->textId2_2, false, "b7vj5ks32po5m1z1t1br4o7scdwwy95", - "BackupDumperTestP2Text2" ); + "BackupDumperTestP2Text2", $this->revId2_3 ); $this->assertRevision( $this->revId2_3, "BackupDumperTestP2Summary3", $this->textId2_3, false, "jfunqmh1ssfb8rs43r19w98k28gg56r", - "BackupDumperTestP2Text3" ); + "BackupDumperTestP2Text3", $this->revId2_4 ); $this->assertRevision( $this->revId2_4, "BackupDumperTestP2Summary4 extra", $this->textId2_4, false, "6o1ciaxa6pybnqprmungwofc4lv00wv", @@ -429,10 +428,10 @@ class TextPassDumperTest extends DumpTestCase { if ( $fname === null ) { $fname = $this->getNewTempFile(); } - $header = ' + . 'xsi:schemaLocation="http://www.mediawiki.org/xml/export-0.7/ ' + . 'http://www.mediawiki.org/xml/export-0.7.xsd" version="0.7" xml:lang="en"> wikisvn http://localhost/wiki-svn/index.php/Main_Page @@ -478,8 +477,8 @@ class TextPassDumperTest extends DumpTestCase { 127.0.0.1 BackupDumperTestP1Summary1 - 0bolhl6ol7i6x0e7yq91gxgaan39j87 + '; @@ -489,33 +488,36 @@ class TextPassDumperTest extends DumpTestCase { ' . ( $this->pageId2 + $i * 4 ) . ' ' . $this->revId2_1 . ' + ' . $this->revId2_2 . ' 2012-04-01T16:46:05Z 127.0.0.1 BackupDumperTestP2Summary1 - jprywrymfhysqllua29tj3sc7z39dl2 + ' . $this->revId2_2 . ' + ' . $this->revId2_3 . ' 2012-04-01T16:46:05Z 127.0.0.1 BackupDumperTestP2Summary2 - b7vj5ks32po5m1z1t1br4o7scdwwy95 + ' . $this->revId2_3 . ' + ' . $this->revId2_4 . ' 2012-04-01T16:46:05Z 127.0.0.1 BackupDumperTestP2Summary3 - jfunqmh1ssfb8rs43r19w98k28gg56r + ' . $this->revId2_4 . ' @@ -524,8 +526,8 @@ class TextPassDumperTest extends DumpTestCase { 127.0.0.1 BackupDumperTestP2Summary4 extra - 6o1ciaxa6pybnqprmungwofc4lv00wv + '; @@ -542,8 +544,8 @@ class TextPassDumperTest extends DumpTestCase { 127.0.0.1 Talk BackupDumperTestP1 Summary1 - nktofwzd0tl192k3zfepmlzxoax1lpe + ';